- All Implemented Interfaces:
EventListener,javafx.event.EventHandler<javafx.event.ActionEvent>,Action,PropertyBean,Disableable
- Direct Known Subclasses:
SaveFileAsAction
Saves the changes in the active view. If the active view has not an URI, an
URIChooser is presented.- 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.file.AbstractSaveFileAction
SAVE_CHOOSER_FACTORY_KEY, SAVE_CHOOSER_KEYFields 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
ConstructorsConstructorDescriptionCreates a new instance.SaveFileAction(@NonNull FileBasedActivity view, boolean saveAs) Creates a new instance.SaveFileAction(@NonNull FileBasedActivity view, String id, boolean saveAs) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonSaveSucceeded(@NonNull FileBasedActivity v, @NonNull URI uri, javafx.scene.input.DataFormat format) Methods inherited from class org.jhotdraw8.application.action.file.AbstractSaveFileAction
createOptionsDialog, getChooser, onActionPerformed, saveFileChooseOptions, saveFileChooseUri, saveFileToUriMethods 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
-
SaveFileAction
Creates a new instance.- Parameters:
view- the view
-
SaveFileAction
Creates a new instance.- Parameters:
view- the viewsaveAs- whether to force a file dialog
-
SaveFileAction
Creates a new instance.- Parameters:
view- the viewid- the idsaveAs- whether to force a file dialog
-
-
Method Details
-
onSaveSucceeded
protected void onSaveSucceeded(@NonNull FileBasedActivity v, @NonNull URI uri, javafx.scene.input.DataFormat format) - Specified by:
onSaveSucceededin classAbstractSaveFileAction
-