|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
ARoad0.gDMak.ActionSave
public class ActionSave
An action that saves the object (ACS, view) associated to the active frame in the GUI.
Field Summary | |
---|---|
private static java.lang.String |
currentDir__
|
private static java.lang.String |
fileSepar__
|
private static ActionSave |
instance__
|
private static java.lang.String |
lineSepar__
|
private static java.lang.String |
userDir__
|
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 |
Constructor Summary | |
---|---|
private |
ActionSave()
With this private constructor, the compiler won't generate a default public constructor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent _ev)
Save the selected frame object. |
static ActionSave |
getInstance()
The only mean to get the instance. |
void |
save(java.lang.String _type,
ImmutableName _name,
java.util.Map _m_GUIconfig,
boolean _withGraphicViewListeningRestoration)
Save an opened ACS or ViewInBase, which will be restored by Gui1.Desktop at the next opening. |
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 |
Field Detail |
---|
private static ActionSave instance__
private static java.lang.String currentDir__
private static java.lang.String userDir__
private static java.lang.String fileSepar__
private static java.lang.String lineSepar__
Constructor Detail |
---|
private ActionSave()
Method Detail |
---|
public static ActionSave getInstance()
public void actionPerformed(java.awt.event.ActionEvent _ev)
- from 'Save' in the main menu when the main frame is activated in the desktop
- from 'Save' in the main menu when, in the explorer, an ACS or view node is selected
A control validates the selected frame or node by verifying that it is associated to an ACS.
actionPerformed
in interface java.awt.event.ActionListener
_ev
- ActionEventpublic void save(java.lang.String _type, ImmutableName _name, java.util.Map _m_GUIconfig, boolean _withGraphicViewListeningRestoration)
_type
- equals to 'acs' or 'view'. Noop otherwise._name
- of the object to save_m_GUIconfig
- is the GUI configuration map. May be null. If not, it is
updated and saved by this method._withGraphicViewListeningRestoration
- true to restore, after the saving
of an ACS, the listening of events from the base by the GraphicViewBaseListeners.
Set to false only when the acs or the program is closing. No use if _type
is 'view'.Desktop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |