Interface HandleSelection


public interface HandleSelection
An interface that describe an object that can handle selection state.
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)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get if the object can be selected.
    boolean
    Get if the object is selected.
    void
    setStateSelectable(boolean selectable)
    Set if the object can be selected.
    void
    setStateSelected(boolean selected)
    Set if the object is selected.
  • Method Details

    • isStateSelected

      boolean isStateSelected()
      Get if the object is selected.
      Returns:
      true if the object is selected and false otherwise.
      See Also:
    • setStateSelected

      void setStateSelected(boolean selected)
      Set if the object is selected. This method has to modify the selection state only if its selectability is set to true.
      Parameters:
      selected - true if the object can be selected and false otherwise.
      See Also:
    • isStateSelectable

      boolean isStateSelectable()
      Get if the object can be selected.
      Returns:
      true if the object selection state can be modified and false otherwise.
      See Also:
    • setStateSelectable

      void setStateSelectable(boolean selectable)
      Set if the object can be selected.
      Parameters:
      selectable - true if the object selection state can be modified and false otherwise.
      See Also: