ARoad0.Gui2
Class ViewTree

java.lang.Object
  extended by ARoad0.Gui2.ViewTree
All Implemented Interfaces:
StaticClass

public class ViewTree
extends java.lang.Object
implements StaticClass

This class is responsible for constructing viewable trees for a view.


Field Summary
private static int INITIAL_CAPACITY
           
private static ViewTree instance__
           
 
Constructor Summary
private ViewTree()
          only one private constructor
 
Method Summary
static void createViewExplorer(ViewInBase _view)
          Creates a graphical flat list of an open view, and creates the ViewTreeBaseListener associated to the view.
static javax.swing.JTree fillViewNodeInExplorer(ViewInBase _view, javax.swing.JTree _tree, javax.swing.tree.DefaultMutableTreeNode _root)
          Updates the graphical flat list of elements in an open view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance__

private static ViewTree instance__

INITIAL_CAPACITY

private static final int INITIAL_CAPACITY
See Also:
Constant Field Values
Constructor Detail

ViewTree

private ViewTree()
only one private constructor

Method Detail

createViewExplorer

public static final void createViewExplorer(ViewInBase _view)
Creates a graphical flat list of an open view, and creates the ViewTreeBaseListener associated to the view. Inserts the view 'Architecture' at the index 0 under the node TreeManager.OPEN_VIEWS. Inserts a full view under the node TreeManager.FULL_VIEWS, which is at the index 1 under the node OPEN_VIEWS. Inserts a NoThan view under the node TreeManager.NOTHAN_VIEWS, which is at the index 2 under the node OPEN_VIEWS. Called by ActionNewView, ActionOpenGraphicView, ActionOpenArchitecture. Calls _view.getEorM_BaseObjects().

Parameters:
_view - to process

fillViewNodeInExplorer

public static final javax.swing.JTree fillViewNodeInExplorer(ViewInBase _view,
                                                             javax.swing.JTree _tree,
                                                             javax.swing.tree.DefaultMutableTreeNode _root)
Updates the graphical flat list of elements in an open view. The ViewTreeBaseListener associated to the view calls this method, and it is not changed.

Parameters:
_view - ViewInBase to process
_tree - JTree to which ACS objects are added, with a DefaultTreeModel
_root - empty node in _tree, associated to the view, to which the flat list of view elements is added
Returns:
JTree _tree with a list of views