
org.jorigin.state.HandleState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcommon Show documentation
Show all versions of jcommon Show documentation
A java common package that enable to deal with various functionalities
package org.jorigin.state;
import org.jorigin.Common;
/**
* An interface that describe an object that can handle various states.
* @author Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon ([email protected])
* @version {@value Common#version} - b{@value Common#BUILD}
* @since 1.0.11
*/
public interface HandleState {
/**
* An integer that represents the activation of an item.
*/
public static int STATE_ACTIVE = 1;
/**
* An integer that represents the selection of an item.
*/
public static int STATE_SELECTED = 2;
/**
* An integer that represents the display of an item.
*/
public static int STATE_DISPLAYED = 4;
/**
* Get the state of the item as an integer value.
* This integer can be the combination of various states.
* @return the state of the item as an integer value.
*/
public int getStateValue();
/**
* Set the state of the item as an integer value.
* This integer can be the combination of various states.
* @param state the state of the item as an integer value.
*/
public void setStateValue(int state);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy