|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
ARoad0.gDMak.ActionOpenSketcher
public class ActionOpenSketcher
An action that opens a GraphicSketchView for any currently-selected object in the explorer.
GraphicSketchView
,
Serialized FormField Summary | |
---|---|
private static javax.swing.ImageIcon |
icon__
|
private static ActionOpenSketcher |
instance__
|
static Name |
SKETCH_VIEW_NAME
|
static java.lang.String |
SKETCH_VIEW_STRING
|
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 |
ActionOpenSketcher()
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 Sketcher' in the main menu, when in the explorer tree, a node is selected. |
static ActionOpenSketcher |
getInstance()
Only method to get an instance. |
private static void |
openSelection(java.lang.Object[] _l_analyzedEvent)
Opens the selected base object in the sketcher, which has to be open. |
static ViewInBase |
openSketcher(java.lang.Object[] _l_analyzedEvent)
Invoked by actionPerformed() and Desktop to display the 'Sketcher' window. |
void |
valueChanged(javax.swing.event.TreeSelectionEvent _ev)
Manages the displaying of a base object in the sketcher 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 |
---|
private static ActionOpenSketcher instance__
public static final java.lang.String SKETCH_VIEW_STRING
public static final Name SKETCH_VIEW_NAME
private static javax.swing.ImageIcon icon__
Constructor Detail |
---|
private ActionOpenSketcher()
Method Detail |
---|
public static ActionOpenSketcher getInstance()
public void actionPerformed(java.awt.event.ActionEvent _ev)
actionPerformed
in interface java.awt.event.ActionListener
_ev
- ActionEvent produced by the click on "Open Sketcher".public void valueChanged(javax.swing.event.TreeSelectionEvent _ev)
valueChanged
in interface javax.swing.event.TreeSelectionListener
_ev
- is from the explorer treepublic static ViewInBase openSketcher(java.lang.Object[] _l_analyzedEvent)
_l_analyzedEvent
- is an Object[] of three items:
0- String type of the selected base object
from TreeManager.analyzeSelectedNodeInExplorer() - 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
private static void openSelection(java.lang.Object[] _l_analyzedEvent)
_l_analyzedEvent
- is an Object[] of three items:
0- String type of the selected base object
("acs", "acsrun", "resource", "actor", "ec_resource",
"groupid", "userid", "aclentry", "virtualfolder", "privilege" or "view") - 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |