|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultTreeModel
wt.clients.beans.classbrowser.ClassTreeModel
Field Summary | |
private String |
classForRootNode
Name of the class returned for the first node. |
private String |
labelForRootNode
Label of root node. |
private String |
rootClass
Name of the root class. |
static int |
SHOW_ALL
Constant to use for integrating all the classes in the model |
static int |
SHOW_CLASSES
Constant use for integrating only classes in the model |
static int |
SHOW_INTERFACES
Constant to use for integrating only interfaces in the model |
private boolean |
showLeafOnly
This variable is used to know if the model should present intermediate classes and interfaces or only the lower level. |
private int |
showMode
This variable is used to know what is the current mode of integration in the model |
Fields inherited from class javax.swing.tree.DefaultTreeModel |
asksAllowsChildren, listenerList, root |
Constructor Summary | |
ClassTreeModel()
Construct the default class browser using "wt.fc.WTObject" as the default root class |
|
ClassTreeModel(String pRootClass)
|
Method Summary | |
void |
fillTree()
|
void |
fillTree(String pRootClass)
|
private void |
fillTreeView(ClassTreeNode pLastNode,
ClassTreeNode pTreeNode)
Fill a node with all its children |
String |
getClassForRootNode()
Answer the fully qualified class used for the class of the root node. Answer "" if the model use the default value. |
String |
getLabelForRootNode()
Answer the label which is used for the label of the root node. Answer "" if the model use the default value. |
String |
getRootClass()
Answer the fully qualified name of the class used as the root of the tree |
ClassTreeNode |
getRootNode()
Answer the root node of the tree |
int |
getShowMode()
Answer the mode used for the |
boolean |
isShowLeafOnly()
|
void |
setClassForRootNode(String pClassForRootNode)
Set the value of the class for the root node. Use "" to clear the class name and use the default class. |
void |
setLabelForRootNode(String pLabelForRootNode)
Set the value of the label for the root node. Use "" to clear the label and use the default name. |
void |
setRootClass(String pRootClass)
|
void |
setShowLeafOnly(boolean pShowLeafOnly)
|
void |
setShowMode(int pShowMode)
Set the mode used for building the tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int SHOW_ALL
SHOW_CLASSES
,
SHOW_INTERFACES
,
setShowMode(int)
,
getShowMode()
public static int SHOW_INTERFACES
SHOW_ALL
,
SHOW_CLASSES
,
setShowMode(int)
,
getShowMode()
public static int SHOW_CLASSES
SHOW_ALL
,
SHOW_INTERFACES
,
setShowMode(int)
,
getShowMode()
private String labelForRootNode
private String classForRootNode
rootClass
private String rootClass
private int showMode
SHOW_ALL
,
SHOW_CLASSES
,
SHOW_INTERFACES
private boolean showLeafOnly
setShowLeafOnly(boolean)
,
isShowLeafOnly()
Constructor Detail |
public ClassTreeModel()
setRootClass(java.lang.String)
public ClassTreeModel(String pRootClass)
pRootClass
- the fully qualified name of the class used for the root nodesetRootClass(java.lang.String)
Method Detail |
public void setRootClass(String pRootClass)
pRootClass
- the fully qualified name of the class that must be used as the root classpublic String getRootClass()
public ClassTreeNode getRootNode()
public void setShowMode(int pShowMode) throws PropertyVetoException
pShowMode
- mode that should be used for selecting the classes that should be presented in the tree view
PropertyVetoException
- thrown if pShowMode is not valid.SHOW_ALL
,
SHOW_CLASSES
,
SHOW_INTERFACES
public int getShowMode()
SHOW_ALL
,
SHOW_CLASSES
,
SHOW_INTERFACES
public void setShowLeafOnly(boolean pShowLeafOnly)
pShowLeafOnly
- use true for seeing only the leaf of the tree;
false for seeing the complete hierarchy.public boolean isShowLeafOnly()
public void setLabelForRootNode(String pLabelForRootNode)
pLabelForRootNode
- #repaintOnShowModeChange
public String getLabelForRootNode()
public void setClassForRootNode(String pClassForRootNode)
pClassForRootNode
- the fully qualified name of the class that should be used for the root node#repaintOnShowModeChange
public String getClassForRootNode()
public void fillTree(String pRootClass)
pRootClass
- public void fillTree()
private void fillTreeView(ClassTreeNode pLastNode, ClassTreeNode pTreeNode)
pLastNode
- pTreeNode
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |