java.lang.Object
org.jhotdraw8.application.AbstractDisableable
- All Implemented Interfaces:
Disableable
- Direct Known Subclasses:
AbstractAction,AbstractActivity
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 Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanPropertyHolds the disabled state. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javafx.beans.property.ReadOnlyBooleanWrapperHolds the disabled state.protected final javafx.collections.ObservableSet<Object> Holds the disablers.Fields inherited from interface org.jhotdraw8.fxbase.control.Disableable
DISABLED_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyBooleanPropertyHolds the disabled state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.fxbase.control.Disableable
addDisabler, isDisabled, removeDisabler
-
Property Details
-
disabled
public javafx.beans.property.ReadOnlyBooleanProperty disabledPropertyHolds the disabled state.This field is protected, so that it can be bound to or-combinations of disablers.
- Specified by:
disabledPropertyin interfaceDisableable- See Also:
-
-
Field Details
-
disablers
Holds the disablers.This field is protected, so that it can be accessed by subclasses.
-
disabled
protected final javafx.beans.property.ReadOnlyBooleanWrapper disabledHolds 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:
disabledPropertyin interfaceDisableable- Returns:
- the
disabledproperty
-
disablers
- Specified by:
disablersin interfaceDisableable
-