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 TypeMethodDescriptionbooleanGet if the object can be selected.booleanGet if the object is selected.voidsetStateSelectable(boolean selectable) Set if the object can be selected.voidsetStateSelected(boolean selected) Set if the object is selected.
-
Method Details
-
isStateSelected
boolean isStateSelected()Get if the object is selected.- Returns:
trueif the object is selected andfalseotherwise.- See Also:
-
setStateSelected
void setStateSelected(boolean selected) Set if the object is selected. This method has to modify the selection state only if itsselectabilityis set totrue.- Parameters:
selected-trueif the object can be selected andfalseotherwise.- See Also:
-
isStateSelectable
boolean isStateSelectable()Get if the object can be selected.- Returns:
trueif the object selection state can be modified andfalseotherwise.- See Also:
-
setStateSelectable
void setStateSelectable(boolean selectable) Set if the object can be selected.- Parameters:
selectable-trueif the object selection state can be modified andfalseotherwise.- See Also:
-