Module org.jhotdraw8.application
Class CloseFileAction
java.lang.Object
org.jhotdraw8.application.AbstractDisableable
org.jhotdraw8.application.action.AbstractAction
org.jhotdraw8.application.action.AbstractApplicationAction
org.jhotdraw8.application.action.AbstractActivityAction<FileBasedActivity>
org.jhotdraw8.application.action.AbstractSaveUnsavedChangesAction
org.jhotdraw8.application.action.file.CloseFileAction
- All Implemented Interfaces:
EventListener,javafx.event.EventHandler<javafx.event.ActionEvent>,Action,PropertyBean,Disableable
Closes the active view after letting the user save unsaved changes.
- 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
FieldsFields 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
ConstructorsConstructorDescriptionCloseFileAction(@NonNull FileBasedActivity activity) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull CompletionStage<Void> doIt(@Nullable FileBasedActivity view) Methods inherited from class org.jhotdraw8.application.action.AbstractSaveUnsavedChangesAction
getChooser, getFocusOwner, onActionOnViewPerformed, onActionPerformed, saveView, saveViewToURIMethods inherited from class org.jhotdraw8.application.action.AbstractActivityAction
getActivity, onActionPerformedMethods 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
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
CloseFileAction
Creates a new instance.- Parameters:
activity- the view
-
-
Method Details
-
doIt
- Specified by:
doItin classAbstractSaveUnsavedChangesAction
-