Class AbstractDisableable

java.lang.Object
org.jhotdraw8.application.AbstractDisableable
All Implemented Interfaces:
Disableable
Direct Known Subclasses:
AbstractAction, AbstractActivity

public class AbstractDisableable extends Object implements Disableable
AbstractDisableable.

Binds disabled to disablers.emptyProperty().not().

If a subclass wants to bind disabled to additional reasons, it must unbind disabled first.

Author:
Werner Randelshofer
  • Property Details

    • disabled

      public javafx.beans.property.ReadOnlyBooleanProperty disabledProperty
      Holds the disabled state.

      This field is protected, so that it can be bound to or-combinations of disablers.

      Specified by:
      disabledProperty in interface Disableable
      See Also:
  • Field Details

    • disablers

      protected final javafx.collections.ObservableSet<Object> disablers
      Holds the disablers.

      This field is protected, so that it can be accessed by subclasses.

    • disabled

      protected final javafx.beans.property.ReadOnlyBooleanWrapper disabled
      Holds the disabled state.

      This field is protected, so that it can be bound to or-combinations of disablers.

  • Constructor Details

    • AbstractDisableable

      public AbstractDisableable()
  • Method Details

    • disabledProperty

      public javafx.beans.property.ReadOnlyBooleanProperty disabledProperty()
      Holds the disabled state.

      This field is protected, so that it can be bound to or-combinations of disablers.

      Specified by:
      disabledProperty in interface Disableable
      Returns:
      the disabled property
    • disablers

      public @NonNull javafx.collections.ObservableSet<Object> disablers()
      Specified by:
      disablers in interface Disableable