public interface HandleActivation
An interface that describe an object that can be activated.
- 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 activated.booleanGet if the object is activated.voidsetStateActivable(boolean activable) Set if the object can be activated.voidsetStateActivated(boolean activated) Set if the object is activated.
-
Method Details
-
isStateActivated
boolean isStateActivated()Get if the object is activated.- Returns:
trueif the object is activated andfalseotherwise.- See Also:
-
setStateActivated
void setStateActivated(boolean activated) Set if the object is activated. This method has to modify the activation state only if itsactivabilityis set totrue- Parameters:
activated-trueif the object can be activated andfalseotherwise.- See Also:
-
isStateActivable
boolean isStateActivable()Get if the object can be activated.- Returns:
trueif the object activation state can be modified andfalseotherwise.- See Also:
-
setStateActivable
void setStateActivable(boolean activable) Set if the object can be activated.- Parameters:
activable-trueif the object activation state can be modified andfalseotherwise.- See Also:
-