Interface HandleState


public interface HandleState
An 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 final int
    An integer that represents the activation of an item.
    static final int
    An integer that represents the display of an item.
    static final int
    An integer that represents the selection of an item.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the state of the item as an integer value.
    void
    setStateValue(int state)
    Set the state of the item as an integer value.
  • Field Details

    • STATE_ACTIVE

      static final int STATE_ACTIVE
      An integer that represents the activation of an item.
      See Also:
    • STATE_SELECTED

      static final int STATE_SELECTED
      An integer that represents the selection of an item.
      See Also:
    • STATE_DISPLAYED

      static final int STATE_DISPLAYED
      An integer that represents the display of an item.
      See Also:
  • Method Details

    • 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.