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.

  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ReadOnlyBooleanProperty
    A read-only property providing information about the active state if this IActivatable.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the active property.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Activates the IActivatable.
    javafx.beans.property.ReadOnlyBooleanProperty
    A read-only property providing information about the active state if this IActivatable.
    void
    Deactivates the IActivatable.
    boolean
    Reports whether this IActivatable is active or inactive, which resembles the value of the active property.
  • Property Details

    • active

      javafx.beans.property.ReadOnlyBooleanProperty activeProperty
      A read-only property providing information about the active state if this IActivatable.
      See Also:
  • Field Details

  • Method Details

    • activate

      void activate()
      Activates the IActivatable. It is expected that a call to isActive() returns true after this method has been called (unless deactivate() is called to deactivate the IActivatable).
    • activeProperty

      javafx.beans.property.ReadOnlyBooleanProperty activeProperty()
      A read-only property providing information about the active state if this IActivatable.
      See Also:
    • 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.