Interface Selectable

All Known Implementing Classes:
DefaultSelectable

public interface Selectable
Selectable is an interface indicating something is selectable.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Inverts the selection status.
    boolean
    Checks if selection change is allowed.
    boolean
    Gets the selected status.
    void
    setEnabled(boolean enabled)
    Enabled selection change.
    void
    setSelected(boolean selected)
    Sets it as selected.
  • Method Details

    • setSelected

      void setSelected(boolean selected)
      Sets it as selected.
      Parameters:
      selected -
    • isSelected

      boolean isSelected()
      Gets the selected status.
      Returns:
      true if it is selected. Otherwise, false.
    • invertSelected

      void invertSelected()
      Inverts the selection status.
    • setEnabled

      void setEnabled(boolean enabled)
      Enabled selection change. Enabled false doesn't mean selected is false. If it is selected before, setEnable(false) won't make selected become false. In the other word, setEnabled won't change the the value of isSelected().
      Parameters:
      enabled -
    • isEnabled

      boolean isEnabled()
      Checks if selection change is allowed.
      Returns:
      true if selection change is allowed.