org.argouml.ui
Class PerspectiveSupport

java.lang.Object
  extended byorg.argouml.ui.PerspectiveSupport
Direct Known Subclasses:
TreeModelSupport

public class PerspectiveSupport
extends java.lang.Object

Helper class for tree models that provides help building perspectives out of gorules.

$Id: PerspectiveSupport.java,v 1.3 2003/06/29 23:47:02 linus Exp $

Since:
0.13.5, Created on 15 April 2003

Field Summary
protected  java.util.Vector _goRules
          The go rules that this Tree model uses to build child nodes.
protected  java.lang.String _name
          name
protected static java.util.Vector _rules
          list of all possible rules in the collection Todolist specific
 
Constructor Summary
protected PerspectiveSupport()
           
  PerspectiveSupport(java.lang.String name)
          Creates a new instance of PerspectiveSupport
  PerspectiveSupport(java.lang.String name, java.util.Vector subs)
          needs documenting
 
Method Summary
 void addSubTreeModel(javax.swing.tree.TreeModel tm)
          adds a rule to the perspective that will generate child nodes for any given parent node.
 java.lang.String getName()
          needs documenting
static java.util.Vector getRegisteredRules()
          TODO: factor out
 java.util.Vector getSubTreeModels()
          get the rules that together form the perspective
static void registerRule(javax.swing.tree.TreeModel rule)
          TODO: factor out
 void removeSubTreeModel(javax.swing.tree.TreeModel tm)
          remove a rule from the perspective that will generate child nodes for any given parent node.
 void setName(java.lang.String s)
          needs documenting
 java.lang.String toString()
          needs documenting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_goRules

protected java.util.Vector _goRules
The go rules that this Tree model uses to build child nodes.


_name

protected java.lang.String _name
name


_rules

protected static java.util.Vector _rules
list of all possible rules in the collection Todolist specific

Constructor Detail

PerspectiveSupport

protected PerspectiveSupport()

PerspectiveSupport

public PerspectiveSupport(java.lang.String name)
Creates a new instance of PerspectiveSupport


PerspectiveSupport

public PerspectiveSupport(java.lang.String name,
                          java.util.Vector subs)
needs documenting

Method Detail

addSubTreeModel

public void addSubTreeModel(javax.swing.tree.TreeModel tm)
adds a rule to the perspective that will generate child nodes for any given parent node.


removeSubTreeModel

public void removeSubTreeModel(javax.swing.tree.TreeModel tm)
remove a rule from the perspective that will generate child nodes for any given parent node.


getSubTreeModels

public java.util.Vector getSubTreeModels()
get the rules that together form the perspective


getName

public java.lang.String getName()
needs documenting


setName

public void setName(java.lang.String s)
needs documenting


toString

public java.lang.String toString()
needs documenting


registerRule

public static void registerRule(javax.swing.tree.TreeModel rule)
TODO: factor out


getRegisteredRules

public static java.util.Vector getRegisteredRules()
TODO: factor out



ArgoUML © 1996-2003 (20040125)ArgoUML Project HomeArgoUML Cookbook