Interface IActivatable


  • public interface IActivatable
    An IActivatable represents an entity that can be activated ( activate()) and deactivated (deactivate()) as required.

    The current activation state of an IActivatable (whether the entity is active or not) can be queried by clients (isActive()) and changes to it can be observed via the active property

    Any client implementing this interface may internally use an ActivatableSupport as a delegate to easily realize the required functionality.

    • Method Detail

      • activeProperty

        javafx.beans.property.ReadOnlyBooleanProperty activeProperty()
        A read-only property providing information about the active state if this IActivatable.
        Returns:
        A read-only boolean property which is true in case the IActivatable is active, false otherwise.
      • deactivate

        void deactivate()
        Deactivates the IActivatable. It is expected that a call to isActive() return false after this method has been called (unless {activate() is called to re-activate the IAdaptable.
      • isActive

        boolean isActive()
        Reports whether this IActivatable is active or inactive, which resembles the value of the active property.
        Returns:
        true in case the IActivatable is active, false otherwise.