ARoad0.gDMak
Class ActionOpenBeamer

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

An action that opens the beamer if necessary, listens the selection of a base object in the explorer, opens a JInternalFrame to display the base object properties, and edit them in the beamer. Manages updates in the beamer from one source:

- when in the explorer, a base object is selected

Since:
0.5.1
See Also:
ActionUtilities, Serialized Form

Field Summary
private static ActionOpenBeamer 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 ActionOpenBeamer()
          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 'Open Beamer' in the main menu, when in the explorer tree, a node is selected.
static ActionOpenBeamer getInstance()
          constructor()
private static void openSelection(java.lang.Object[] _l_analyzedEvent)
          Opens the selected base object in the beamer, and opens the beamer before if it is closed.
 void valueChanged(javax.swing.event.TreeSelectionEvent _ev)
          Manages the displaying of a base object in the beamer when, in the explorer tree, a node is selected.
 
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 ActionOpenBeamer instance__
Constructor Detail

ActionOpenBeamer

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

Method Detail

getInstance

public static ActionOpenBeamer getInstance()
constructor()

Returns:
ActionOpenBeamer

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent _ev)
Manages opening commands from one source: - from 'Open Beamer' in the main menu, when in the explorer tree, a node is selected.

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

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent _ev)
Manages the displaying of a base object in the beamer when, in the explorer tree, a node is selected. No action if the beamer is closed, or if a PropertyEditor or BaseObjectHandler listens selections in the explorer. Based on TreeManager.analyzeSelectedNodeInExplorer()

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
Parameters:
_ev - TreeSelectionEvent

openSelection

private static void openSelection(java.lang.Object[] _l_analyzedEvent)
Opens the selected base object in the beamer, and opens the beamer before if it is closed. Called by valueChanged().

Parameters:
_l_analyzedEvent - is an Object[] of three items: 0- String type of the selected base object "acs", "resource", "actor", "ec_resource", "groupid", "userid", "aclentry", "view", "metaright", "acsright", "virtualfolder", "privilege" - may be null 1- ImmutableName name of the base object - may be null 2- JInternalFrame open main frame of the base object - may be null