ARoad0.gDMak
Class ActionOpenACSyst

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

public class ActionOpenACSyst
extends javax.swing.AbstractAction
implements Singleton

An action that opens one or several Access Control System selected in the main menu.

Since:
0.5.0
See Also:
Serialized Form

Field Summary
private static java.lang.String currentDir__
           
private  javax.swing.JDialog dialog_
           
private static java.lang.String fileSepar__
           
private static ActionOpenACSyst instance__
           
private  javax.swing.JList jlist_
           
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 ActionOpenACSyst()
          with this private constructor, the compiler won't generate a default public constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent _ev)
          Handles the click on the menu item "Open ACS".
protected  void displayOneACS(ACS _acs)
          Displays an open ACS, with all its objects.
static ActionOpenACSyst getInstance()
          To get an instance.
 void openACS(java.lang.Object[] _l_names)
          Invoked by actionPerformed(), Desktop.restoreLastGUI(), ActionImportACS and ActionNewACSyst.
private  void openOneACS(ImmutableName _name)
          Opens the selected ACS, to display their resources in trees, to update the explorer, the beamer and the 'Architecture' view.
 
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 ActionOpenACSyst instance__

currentDir__

private static java.lang.String currentDir__

userDir__

private static java.lang.String userDir__

fileSepar__

private static java.lang.String fileSepar__

lineSepar__

private static java.lang.String lineSepar__

dialog_

private javax.swing.JDialog dialog_

jlist_

private javax.swing.JList jlist_
Constructor Detail

ActionOpenACSyst

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

Method Detail

getInstance

public static ActionOpenACSyst getInstance()
To get an instance.

Returns:
ActionOpenACSyst. This is the unique mean to get an instance.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent _ev)
Handles the click on the menu item "Open ACS". Builds a new frame for the ACS in the desktop (one or more). Refuses ACS main frame creation if there is more than 20 open frames, but the ACS is created. Refuses frame creation if it is a second call.

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

openACS

public void openACS(java.lang.Object[] _l_names)
Invoked by actionPerformed(), Desktop.restoreLastGUI(), ActionImportACS and ActionNewACSyst. Opens first the ancestor nodes in the IS, including the ACS. Calls openOneACS(). Opens the explorer first. Opens the tied ACS children.

Parameters:
_l_names - of acs to open

openOneACS

private void openOneACS(ImmutableName _name)
Opens the selected ACS, to display their resources in trees, to update the explorer, the beamer and the 'Architecture' view. ACSTreeBaseListenerImpl is not still created, then no fired event to the GUI. Called by openACS(). Calls ACS_Facade.openOrGetACS().

Parameters:
_name - of the ACS to open

displayOneACS

protected void displayOneACS(ACS _acs)
Displays an open ACS, with all its objects. Sets the ACS node at the right place into the explorer, following the order of the IS in the base and the order of the ACS into the relevant NameISTree. Updates the beamer and the 'Architecture' view. The explorer has to be open. ACSTreeBaseListenerImpl is not still created, then no fired event to the GUI. Called by openOneACS() and ActionNewACSyst.endACScreation(). Calls BaseManagerImpl..getM_ISTrees(), NameTree.getDepthFirstIndexInNameTree().

Parameters:
_acs - opened ACS to display