ARoad0.gDMak
Class ActionOpenGlobalStructure

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

public class ActionOpenGlobalStructure
extends javax.swing.AbstractAction
implements Singleton, javax.swing.event.TreeSelectionListener

An action that opens the main frame of the IS structure for all the information systems. The tree of information systems with their nodes is displayed in a dedicated window where the properties of the selected node, in the tree, are displayed in a tabbed pane on the top of the IS structure window. This displaying works quite like the beamer, and this is why BeamerManager.setJTabbedPane() delivers the proper tabbed pane for the Is structure window. Nonetheless, the beamer displays BaseObjects and the IS structure displays NameISTrees. A NameISTree has no BeanInfo class to set how it has to be displayed. This is the responsability of the method getISnodePropertyDescriptors.

See Also:
Serialized Form

Field Summary
private static javax.swing.ImageIcon icon__
           
private static ActionOpenGlobalStructure instance__
           
static Name LOCATION_STRUCTURE_NAME
           
static java.lang.String LOCATION_STRUCTURE_STRING
           
private  java.util.Map m_currentPropertyEditors_
          Current CommonPropertyEditors in the user dialog.
private  javax.swing.JTabbedPane tabbedPane__
          The tabbed pane of the upper panel where the properties of the node are displayed.
 
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 ActionOpenGlobalStructure()
          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 'IS Structure' in the main menu Call openFrame().
(package private)  void finalizePropertyEditors()
          Finalizes the current property editors and removes the children of tabbedPane__.
static ActionOpenGlobalStructure getInstance()
          To get an instance.
private static java.beans.PropertyDescriptor[] getISnodePropertyDescriptors(ImmutableName _name)
          Constructs the property descriptors for the currently selected node in the IS structure.
 void openFrame(java.util.Map _m_GUIconfig)
          Opens the IS structure frame.
 void valueChanged(javax.swing.event.TreeSelectionEvent _ev)
          Manages the displaying of the properties of a node when, in the IS structure tree, a new node is selected or the IS has been updated.
 
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

LOCATION_STRUCTURE_STRING

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

LOCATION_STRUCTURE_NAME

public static final Name LOCATION_STRUCTURE_NAME

icon__

private static javax.swing.ImageIcon icon__

m_currentPropertyEditors_

private java.util.Map m_currentPropertyEditors_
Current CommonPropertyEditors in the user dialog. The key is the display name.


tabbedPane__

private final javax.swing.JTabbedPane tabbedPane__
The tabbed pane of the upper panel where the properties of the node are displayed.


instance__

private static ActionOpenGlobalStructure instance__
Constructor Detail

ActionOpenGlobalStructure

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

Method Detail

getInstance

public static ActionOpenGlobalStructure getInstance()
To get an instance.

Returns:
ActionOpenGlobalStructure. 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 'IS Structure' in the main menu Call openFrame().

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
_ev - ActionEvent produced by the click in the menu.

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent _ev)
Manages the displaying of the properties of a node when, in the IS structure tree, a new node is selected or the IS has been updated. Based on TreeManager.analyzeSelectedNodeInStructure() and getISnodePropertyDescriptors(). Called by the IS structure tree and by ISTreeBaseListenerImpl when the selected node properties may have changed. Calls TreeManager.analyzeSelectedNodeInStructure() and getTrueUserObjectNameInStructureTree(treeNode), the ISNodeImpl constructor, BeamerManager.setJTabbedPane(), InternalFrameModel.getStructureFrame().

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
Parameters:
_ev - the event. No use of its properties.

openFrame

public void openFrame(java.util.Map _m_GUIconfig)
Opens the IS structure frame. Called by actionPerformed(). Restores the frame location. The main work is to build up the structure tree and the tabbed pane, and it is done in a worker thread. An user message requests to wait for the end of the processing.

Parameters:
_m_GUIconfig - is the GUI configuration map. May be null.

finalizePropertyEditors

void finalizePropertyEditors()
Finalizes the current property editors and removes the children of tabbedPane__. Called by ActionClose() and valueChanged().


getISnodePropertyDescriptors

private static java.beans.PropertyDescriptor[] getISnodePropertyDescriptors(ImmutableName _name)
Constructs the property descriptors for the currently selected node in the IS structure. The beamer displays BaseObjects and the IS structure displays NameISTrees. A NameISTree has no BeanInfo class to set how it has to be displayed. This is the responsability of this method, that calls BaseUtilityImpl.getBeanInfoNameForISnode() to get the name of the right BeanInfo class. The root TreeManager.STRUCTURE_ROOT_NAME is used to display the list of ACS addons. Called by valueChanged() and openFrame().

Parameters:
_name - of a node in the IS nametrees.
Returns:
the descriptors