ARoad0.gDMak
Class ActionOpenArchitecture

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ARoad0.gDMak.ActionOpenArchitecture
All Implemented Interfaces:
Singleton, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ActionOpenArchitecture
extends javax.swing.AbstractAction
implements Singleton

UNUSED - An action that opens a GraphicView displaying all the open ACS with their bridge links.

See Also:
Serialized Form

Field Summary
static Name ARCHI_VIEW_NAME
           
static java.lang.String ARCHI_VIEW_STRING
           
private static javax.swing.ImageIcon icon__
           
private static ActionOpenArchitecture instance__
           
 
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 ActionOpenArchitecture()
          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 'Display Architecture' in the main menu.
static ActionOpenArchitecture getInstance()
          Only method to get an instance.
static ViewInBase openArchitecture(java.util.Map _acsMap, java.util.Map _m_GUIconfig)
          Invoked by actionPerformed(), Desktop and ActionOpenMainFrame.actionPerformed() to display the 'Architecture' 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
 

Field Detail

instance__

private static ActionOpenArchitecture instance__

ARCHI_VIEW_STRING

public static final java.lang.String ARCHI_VIEW_STRING
See Also:
Constant Field Values

ARCHI_VIEW_NAME

public static final Name ARCHI_VIEW_NAME

icon__

private static javax.swing.ImageIcon icon__
Constructor Detail

ActionOpenArchitecture

private ActionOpenArchitecture()
with this private constructor, the compiler won't generate a default public constructor

Method Detail

getInstance

public static ActionOpenArchitecture getInstance()
Only method to get an instance.

Returns:
ActionOpenArchitecture

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent _ev)
Manages opening commands from one source: - from 'Display Architecture' in the main menu.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
_ev - ActionEvent produced by the click on "Open Architecture".

openArchitecture

public static ViewInBase openArchitecture(java.util.Map _acsMap,
                                          java.util.Map _m_GUIconfig)
Invoked by actionPerformed(), Desktop and ActionOpenMainFrame.actionPerformed() to display the 'Architecture' frame. Noop if the architecture main frame is already displayed in the GUI, but it may be opened in the explorer without main frame, and then, this method creates the main frame. If it is not opened in the explorer, the view is displayed in it and the main frame is created.

Parameters:
_acsMap - of the ACS to display; the name is the key and the acs is the value
_m_GUIconfig - is the map from the GUI saving, to get the frame disposition. May be null.
Returns:
the 'Architecture' view in all cases