ARoad0.gDMak
Class ActionOpenAllNoThanViews

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ARoad0.gDMak.ActionOpenAllNoThanViews
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 ActionOpenAllNoThanViews
extends javax.swing.AbstractAction
implements Singleton, javax.swing.event.ChangeListener

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

See Also:
ActionOpenAllFullViews, Serialized Form

Field Summary
private static javax.swing.ImageIcon icon__
           
private static ActionOpenAllNoThanViews 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 ActionOpenAllNoThanViews()
          with this private constructor, the compiler won't generate a default public constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent _ev)
          Close the NoThan view 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.
static ActionOpenAllNoThanViews getInstance()
          Only method to get an instance.
private static java.beans.PropertyDescriptor[] getNoThanViewsPropertyDescriptors(java.util.Set _list)
          Constructs the property descriptors for the current open NoThan views in the GUI, where the display name is the ViewInBase name.
 void openAllNoThanViews(java.util.Map _viewMap, java.util.Map _m_GUIconfig)
          Invoked by actionPerformed() and Desktop to display the 'All NoMore-NoLess views' frame including a tabbed pane.
 void stateChanged(javax.swing.event.ChangeEvent _evt)
          Listen the changes in the selected tab of the 'AllNoThanViews' 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 ActionOpenAllNoThanViews 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

ActionOpenAllNoThanViews

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

Method Detail

getInstance

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

Returns:
ActionOpenAllNoThanViews

actionPerformed

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

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

openAllNoThanViews

public void openAllNoThanViews(java.util.Map _viewMap,
                               java.util.Map _m_GUIconfig)
Invoked by actionPerformed() and Desktop to display the 'All NoMore-NoLess views' frame including a tabbed pane. Run in the event dispatch thread. Use a worker thread to create the graphic views and to go in the event dispatch thread, for displaying an information message 'Please wait' and for opening the 'All NoThan 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 'AllNoThanViews' 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().


getNoThanViewsPropertyDescriptors

private static java.beans.PropertyDescriptor[] getNoThanViewsPropertyDescriptors(java.util.Set _list)
Constructs the property descriptors for the current open NoThan 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