jpicedt
Class JPicEdt.FileSaveAction
java.lang.Object
javax.swing.AbstractAction
jpicedt.graphic.toolkit.PEAction
jpicedt.JPicEdt.FileSaveAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Enclosing class:
- JPicEdt
public static class JPicEdt.FileSaveAction
- extends PEAction
save a frame content to disk, performing I/O operations in a separate thread
- Since:
- PicEdt 1.3.2
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
KEY
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
This is a default implementation of the "actionPerformed" method suited for undoable actions :
we first call "beginUndoableUpdate" with "actionName" as the presentation name,
then delegate to "undoableActionPerformed", finally mark the undoable-update as ended. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final java.lang.String KEY
- See Also:
- Constant Field Values
JPicEdt.FileSaveAction
public JPicEdt.FileSaveAction()
- save the content of the active board.
JPicEdt.FileSaveAction
public JPicEdt.FileSaveAction(PEDrawingBoard board)
- save the content of the given board
This is useful when closing a frame, where we know the name of the frame to be saved.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Description copied from class:
PEAction
- This is a default implementation of the "actionPerformed" method suited for undoable actions :
we first call "beginUndoableUpdate" with "actionName" as the presentation name,
then delegate to "undoableActionPerformed", finally mark the undoable-update as ended.
Action that don't want to be undoable should simply override this method as usual.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class PEAction
Submit a bug : syd@jpicedt.org