- All Superinterfaces:
Disableable,javafx.event.EventHandler<javafx.event.ActionEvent>,EventListener,PropertyBean
- All Known Implementing Classes:
AboutAction,AbstractAction,AbstractActivityAction,AbstractApplicationAction,AbstractFindAction,AbstractFocusOwnerAction,AbstractOpenFileAction,AbstractPreferencesAction,AbstractSaveFileAction,AbstractSaveUnsavedChangesAction,AbstractSelectionAction,BrowseFileDirectoryAction,ClearFileAction,ClearRecentFilesMenuAction,ClearSelectionAction,CloseFileAction,CopyAction,CutAction,DeleteAction,DuplicateAction,ExitAction,ExportFileAction,NewFileAction,NewWindowAction,OpenFileAction,OpenRecentFileAction,PasteAction,PrintFileAction,RedoAction,RevertFileAction,SaveFileAction,SaveFileAsAction,ScreenMenuBarProxyAction,SelectAllAction,ToggleBooleanAction,ToggleViewPropertyAction,UndoAction
public interface Action
extends javafx.event.EventHandler<javafx.event.ActionEvent>, PropertyBean, Disableable
Action.
- Author:
- Werner Randelshofer
-
Property Summary
PropertiesTypePropertyDescription@NonNull javafx.beans.property.BooleanPropertyTheBooleanthat corresponds to the selected state.Properties inherited from interface org.jhotdraw8.fxbase.control.Disableable
disabled -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.input.KeyCombination> The key used for storing aKeyCombinationto be used as the accelerator for the action.static final org.jhotdraw8.fxcollection.typesafekey.NullableKey<String> The key used for storing the action in an action map, and for accessing resources in resource bundles.static final org.jhotdraw8.fxcollection.typesafekey.NullableKey<String> The key used for storing theStringname for the action, used for a menu or button.static final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.Node> The key used for large icon, such asImageView.static final org.jhotdraw8.fxcollection.typesafekey.NullableKey<String> The key used for storing a longerStringdescription for the action, could be used for context-sensitive help.static final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.input.KeyCombination> The key used for storing aKeyCombinationto be used as the mnemonic for the action.static final StringThe selected property.static final org.jhotdraw8.fxcollection.typesafekey.NullableKey<String> The key used for storing a shortStringdescription for the action, used for tooltip text.static final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.Node> The key used for storing a small icon, such asImageView.Fields inherited from interface org.jhotdraw8.fxbase.control.Disableable
DISABLED_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiongetId()The name of the action for use in action maps and for resource bundles.getLabel()The localized name of the action for use in controls.default booleanGets the value of theselectedproperty.@NonNull javafx.beans.property.BooleanPropertyTheBooleanthat corresponds to the selected state.default voidsetSelected(boolean newValue) Sets the value of theselectedproperty.Methods inherited from interface org.jhotdraw8.fxbase.control.Disableable
addDisabler, disabledProperty, disablers, isDisabled, removeDisablerMethods inherited from interface javafx.event.EventHandler
handleMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
get, getNonNull, getProperties, getProperty, put, remove, set, setNonNull, valueAt
-
Property Details
-
selected
@NonNull javafx.beans.property.BooleanProperty selectedPropertyTheBooleanthat corresponds to the selected state. This is typically used only for actions that have a meaningful selection state.- See Also:
-
-
Field Details
-
ID_KEY
The key used for storing the action in an action map, and for accessing resources in resource bundles. -
LABEL
The key used for storing theStringname for the action, used for a menu or button. -
SHORT_DESCRIPTION
The key used for storing a shortStringdescription for the action, used for tooltip text. -
LONG_DESCRIPTION
The key used for storing a longerStringdescription for the action, could be used for context-sensitive help. -
SMALL_ICON
static final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.Node> SMALL_ICONThe key used for storing a small icon, such asImageView. This is typically used with menus. -
ACCELERATOR_KEY
static final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.input.KeyCombination> ACCELERATOR_KEYThe key used for storing aKeyCombinationto be used as the accelerator for the action. -
MNEMONIC_KEY
static final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.input.KeyCombination> MNEMONIC_KEYThe key used for storing aKeyCombinationto be used as the mnemonic for the action.- Since:
- 1.3
-
LARGE_ICON_KEY
static final org.jhotdraw8.fxcollection.typesafekey.Key<javafx.scene.Node> LARGE_ICON_KEYThe key used for large icon, such asImageView. This is typically used by buttons. -
SELECTED_PROPERTY
The selected property.- See Also:
-
-
Method Details
-
getLabel
The localized name of the action for use in controls.- Returns:
- The name
-
getId
The name of the action for use in action maps and for resource bundles.- Returns:
- The instance
-
selectedProperty
@NonNull javafx.beans.property.BooleanProperty selectedProperty()TheBooleanthat corresponds to the selected state. This is typically used only for actions that have a meaningful selection state.- Returns:
- the property
- See Also:
-
setSelected
default void setSelected(boolean newValue) Sets the value of theselectedproperty.- Property description:
- The
Booleanthat corresponds to the selected state. This is typically used only for actions that have a meaningful selection state. - Parameters:
newValue- the value for theselectedproperty- See Also:
-
isSelected
default boolean isSelected()Gets the value of theselectedproperty.- Property description:
- The
Booleanthat corresponds to the selected state. This is typically used only for actions that have a meaningful selection state. - Returns:
- the value of the
selectedproperty - See Also:
-