Class AbstractSaveFileAction

All Implemented Interfaces:
EventListener, javafx.event.EventHandler<javafx.event.ActionEvent>, Action, PropertyBean, Disableable
Direct Known Subclasses:
ExportFileAction, SaveFileAction

public abstract class AbstractSaveFileAction extends AbstractActivityAction<FileBasedActivity>
Saves the changes in the active view. If the active view has not an URI, an URIChooser is presented.
Author:
Werner Randelshofer
  • Field Details

    • SAVE_CHOOSER_KEY

      public static final org.jhotdraw8.fxcollection.typesafekey.Key<URIChooser> SAVE_CHOOSER_KEY
    • SAVE_CHOOSER_FACTORY_KEY

      public static final org.jhotdraw8.fxcollection.typesafekey.Key<Supplier<URIChooser>> SAVE_CHOOSER_FACTORY_KEY
  • Constructor Details

    • AbstractSaveFileAction

      public AbstractSaveFileAction(FileBasedActivity activity, String id, boolean saveAs)
      Creates a new instance.
      Parameters:
      activity - the view
      id - the id
      saveAs - whether to force a file dialog
    • AbstractSaveFileAction

      public AbstractSaveFileAction(FileBasedActivity activity, String id, boolean saveAs, Resources resources)
      Creates a new instance.
      Parameters:
      activity - the view
      id - the id
      saveAs - whether to force a file dialog
      resources - the resources are used for setting labels and icons for the action
  • Method Details