-
public interface HandleStateAn interface that describe an object that can handle various states.- Since:
- 1.0.11
- Version:
- "1.0.14" - b202111241200L
- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATE_ACTIVEAn integer that represents the activation of an item.static intSTATE_DISPLAYEDAn integer that represents the display of an item.static intSTATE_SELECTEDAn integer that represents the selection of an item.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetStateValue()Get the state of the item as an integer value.voidsetStateValue(int state)Set the state of the item as an integer value.
-
-
-
Field Detail
-
STATE_ACTIVE
static final int STATE_ACTIVE
An integer that represents the activation of an item.- See Also:
- Constant Field Values
-
STATE_SELECTED
static final int STATE_SELECTED
An integer that represents the selection of an item.- See Also:
- Constant Field Values
-
STATE_DISPLAYED
static final int STATE_DISPLAYED
An integer that represents the display of an item.- See Also:
- Constant Field Values
-
-
Method Detail
-
getStateValue
int getStateValue()
Get the state of the item as an integer value. This integer can be the combination of various states.- Returns:
- the state of the item as an integer value.
-
setStateValue
void setStateValue(int state)
Set the state of the item as an integer value. This integer can be the combination of various states.- Parameters:
state- the state of the item as an integer value.
-
-