ARoad0.gDMak
Class ActionOpenMainFrame
java.lang.Object
javax.swing.AbstractAction
ARoad0.gDMak.ActionOpenMainFrame
- All Implemented Interfaces:
- Singleton, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ActionOpenMainFrame
- extends javax.swing.AbstractAction
- implements Singleton
An action that opens the main frame of an Access Control System
or a View selected in the main menu, if it is closed.
- See Also:
- Serialized Form
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 |
ActionOpenMainFrame()
with this private constructor, the compiler won't generate
a default public constructor. |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent _ev)
Manages opening commands from one source:
- from 'Open Main Frame' in the main menu when, in the explorer,
an ACS or a view node is selected
Call openACSmainFrame(). |
static ActionOpenMainFrame |
getInstance()
To get an instance. |
static javax.swing.JInternalFrame |
openACSmainFrame(ImmutableName _name,
java.util.Map _m_GUIconfig)
To open the ACS main frame. |
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 |
instance__
private static ActionOpenMainFrame instance__
ActionOpenMainFrame
private ActionOpenMainFrame()
- with this private constructor, the compiler won't generate
a default public constructor.
getInstance
public static ActionOpenMainFrame getInstance()
- To get an instance.
- Returns:
- ActionOpenMainFrame. This is the unique mean to get
an instance.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent _ev)
- Manages opening commands from one source:
- from 'Open Main Frame' in the main menu when, in the explorer,
an ACS or a view node is selected
Call openACSmainFrame(). Do not handle 'Architecture' view.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Parameters:
_ev
- ActionEvent produced by the click for "Open Main Frame".
openACSmainFrame
public static javax.swing.JInternalFrame openACSmainFrame(ImmutableName _name,
java.util.Map _m_GUIconfig)
- To open the ACS main frame. Called by actionPerformed() and Desktop.restoreLastGUI().
Restore the main frame location.
- Parameters:
_name
- is the acs name_m_GUIconfig
- is the GUI configuration map. May be null.
- Returns:
- the acs main frame