ARoad0.gDMak
Class ActionOpenAllFullViews

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

public class ActionOpenAllFullViews
extends javax.swing.AbstractAction
implements Singleton, javax.swing.event.ChangeListener

An action that opens all the open full views in a frame with a tabbed pane, where each view is displayed in a dedicated tab with its 'See why' text.

See Also:
ActionOpenAllNoThanViews, Serialized Form

Field Summary
private static javax.swing.ImageIcon icon__
           
private static ActionOpenAllFullViews instance__
           
private  java.util.Map m_currentPropertyEditors_
          Current CommonPropertyEditors in the user dialog.
 
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 ActionOpenAllFullViews()
          with this private constructor, the compiler won't generate a default public constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent _ev)
          Close the full views main frames and the'See why' frames, it they exist
(package private)  void finalizePropertyEditors()
          Finalizes the current property editors.
(package private)  java.util.Map getAllViewsPropertyEditors()
          Called by ActionOpenGraphicView.
private static java.beans.PropertyDescriptor[] getFullViewsPropertyDescriptors(java.util.Set _list)
          Constructs the property descriptors for the current open full views in the GUI, where the display name is the ViewInBase name.
static ActionOpenAllFullViews getInstance()
          Only method to get an instance.
 void openAllFullViews(java.util.Map _viewMap, java.util.Map _m_GUIconfig)
          Invoked by actionPerformed() and Desktop to display the 'All full views' window including a tabbed pane.
 void stateChanged(javax.swing.event.ChangeEvent _evt)
          Listen the changes in the selected tab of the 'AllFullViews' JTabbedPane, but no action.
 
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 ActionOpenAllFullViews instance__

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.

Constructor Detail

ActionOpenAllFullViews

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

Method Detail

getInstance

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

Returns:
ActionOpenAllFullViews

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent _ev)
Close the full views main frames and the'See why' frames, it they exist

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
_ev - ActionEvent

openAllFullViews

public void openAllFullViews(java.util.Map _viewMap,
                             java.util.Map _m_GUIconfig)
Invoked by actionPerformed() and Desktop to display the 'All full views' window including a tabbed pane. Run in the event dispatch thread. Use a worker thread to create the graphic views, if they are not there, and to go in the event dispatch thread, for displaying an information message 'Please wait' and then for opening the 'All Full views' frame.

Parameters:
_viewMap - of the views to open; the name is the key and the view is the value
_m_GUIconfig - is the map from the GUI saving, to get the graphic view disposition if the view is closed when this method is invoked. May be null.

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent _evt)
Listen the changes in the selected tab of the 'AllFullViews' JTabbedPane, but no action.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
_evt -

getAllViewsPropertyEditors

java.util.Map getAllViewsPropertyEditors()
Called by ActionOpenGraphicView.

Returns:
the map of the GraphicViewPropertyEditors, where the key is the display name of the view.

finalizePropertyEditors

void finalizePropertyEditors()
Finalizes the current property editors. Called by ActionClose().


getFullViewsPropertyDescriptors

private static java.beans.PropertyDescriptor[] getFullViewsPropertyDescriptors(java.util.Set _list)
Constructs the property descriptors for the current open full views in the GUI, where the display name is the ViewInBase name. Call ActionOpenGraphicView.getViewPropertyDescriptor().

Parameters:
_list - of the open ViewInBase names
Returns:
the descriptors