Module org.jhotdraw8.application
Class AbstractSelectionAction
java.lang.Object
org.jhotdraw8.application.AbstractDisableable
org.jhotdraw8.application.action.AbstractAction
org.jhotdraw8.application.action.AbstractApplicationAction
org.jhotdraw8.application.action.edit.AbstractSelectionAction
- All Implemented Interfaces:
EventListener,javafx.event.EventHandler<javafx.event.ActionEvent>,Action,PropertyBean,Disableable
- Direct Known Subclasses:
ClearSelectionAction,CopyAction,CutAction,DeleteAction,DuplicateAction,PasteAction,SelectAllAction
AbstractSelectionAction acts on the selection of a target component
or of the currently focused component in the application.- Author:
- Werner Randelshofer
-
Property Summary
Properties inherited from class org.jhotdraw8.application.action.AbstractAction
selectedProperties inherited from class org.jhotdraw8.application.AbstractDisableable
disabledProperties inherited from interface org.jhotdraw8.fxbase.control.Disableable
disabled -
Field Summary
Fields inherited from class org.jhotdraw8.application.action.AbstractApplicationAction
appFields inherited from class org.jhotdraw8.application.action.AbstractAction
propertiesFields 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
ConstructorsConstructorDescriptionAbstractSelectionAction(@NonNull Application application) Creates a new instance.AbstractSelectionAction(@NonNull Application application, @Nullable javafx.scene.Node target) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidonActionPerformed(@NonNull javafx.event.ActionEvent event, @NonNull Application application) This method is invoked when the action is not disabled and the event is not consumed.protected abstract voidonActionPerformed(javafx.event.ActionEvent event, EditableComponent ec) Methods inherited from class org.jhotdraw8.application.action.AbstractApplicationAction
createAlert, createErrorMessage, getApplication, onActionPerformedMethods inherited from class org.jhotdraw8.application.action.AbstractAction
getProperties, handle, selectedPropertyMethods 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
-
Constructor Details
-
AbstractSelectionAction
Creates a new instance.- Parameters:
application- the application
-
AbstractSelectionAction
public AbstractSelectionAction(@NonNull Application application, @Nullable javafx.scene.Node target) Creates a new instance.- Parameters:
application- the applicationtarget- the target node
-
-
Method Details
-
getEditableComponent
-
onActionPerformed
protected final void onActionPerformed(@NonNull javafx.event.ActionEvent event, @NonNull Application application) Description copied from class:AbstractApplicationActionThis method is invoked when the action is not disabled and the event is not consumed.- Specified by:
onActionPerformedin classAbstractApplicationAction- Parameters:
event- the action eventapplication- the applicatoin
-
onActionPerformed
-