public static class JPicEdt.FileSaveAction extends PEAction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY |
| Constructor and Description |
|---|
FileSaveAction()
save the content of the active board.
|
FileSaveAction(PEDrawingBoard board)
save the content of the given board
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getCanvas, getDrawing, getEditorKit, getSelectedObject, setAttribute, undoableActionPerformedpublic static final java.lang.String KEY
public FileSaveAction()
public FileSaveAction(PEDrawingBoard board)
This is useful when closing a frame, where we know the name of the frame to be saved.
public void actionPerformed(java.awt.event.ActionEvent e)
PEActionAction that don't want to be undoable should simply override this method as usual.
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class PEActionSubmit a bug : syd@jpicedt.org