java.lang.Object
org.jhotdraw8.application.AbstractDisableable
org.jhotdraw8.application.action.AbstractAction
- All Implemented Interfaces:
EventListener,javafx.event.EventHandler<javafx.event.ActionEvent>,Action,PropertyBean,Disableable
- Direct Known Subclasses:
AbstractApplicationAction,ScreenMenuBarProxyAction
AbstractAction.
- Author:
- Werner Randelshofer
-
Property Summary
PropertiesTypePropertyDescription@NonNull javafx.beans.property.BooleanPropertyTheBooleanthat corresponds to the selected state.Properties inherited from class org.jhotdraw8.application.AbstractDisableable
disabledProperties inherited from interface org.jhotdraw8.fxbase.control.Disableable
disabled -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>, Object> Holds the properties.Fields inherited from class org.jhotdraw8.application.AbstractDisableable
disabled, disablersFields inherited from interface org.jhotdraw8.application.action.Action
ACCELERATOR_KEY, ID_KEY, LABEL, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, SELECTED_PROPERTY, SHORT_DESCRIPTION, SMALL_ICONFields inherited from interface org.jhotdraw8.fxbase.control.Disableable
DISABLED_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @NonNull javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>, Object> final voidInvokesonActionPerformed(javafx.event.ActionEvent)if the action is not disabled and the event is not consumed.protected abstract voidonActionPerformed(@NonNull javafx.event.ActionEvent event) This method is invoked when the action is not disabled and the event is not consumed.@NonNull javafx.beans.property.BooleanPropertyTheBooleanthat corresponds to the selected state.Methods inherited from class org.jhotdraw8.application.AbstractDisableable
disabledProperty, disablersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.application.action.Action
getId, getLabel, isSelected, setSelectedMethods inherited from interface org.jhotdraw8.fxbase.control.Disableable
addDisabler, disabledProperty, disablers, isDisabled, removeDisablerMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
get, getNonNull, getProperty, put, remove, set, setNonNull, valueAt
-
Property Details
-
selected
- Specified by:
selectedPropertyin interfaceAction- Returns:
- the property
- See Also:
-
-
Field Details
-
properties
protected final javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>,Object> propertiesHolds the properties.
-
-
Constructor Details
-
AbstractAction
public AbstractAction()Creates a new instance. Bindsdisabledtodisable. -
AbstractAction
Creates a new instance. Bindsdisabledtodisable.- Parameters:
id- the id of the action
-
-
Method Details
-
getProperties
public final @NonNull javafx.collections.ObservableMap<org.jhotdraw8.fxcollection.typesafekey.Key<?>,Object> getProperties()- Specified by:
getPropertiesin interfacePropertyBean
-
handle
InvokesonActionPerformed(javafx.event.ActionEvent)if the action is not disabled and the event is not consumed. Consumes the event after invokinghandleActionPerformed.- Specified by:
handlein interfacejavafx.event.EventHandler<javafx.event.ActionEvent>- Parameters:
event- the action event
-
onActionPerformed
This method is invoked when the action is not disabled and the event is not consumed.- Parameters:
event- the action event
-
selectedProperty
Description copied from interface:ActionTheBooleanthat corresponds to the selected state. This is typically used only for actions that have a meaningful selection state.- Specified by:
selectedPropertyin interfaceAction- Returns:
- the
selectedproperty
-