|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsymantec.itools.awt.TreeNode
wt.clients.beans.explorer.WTNode
Windchill Technology Explorer Node Class (WTNode)
This is a tree node used to display a WTObject recursive
structure, such as a part uses part hierarchy.
Supported API: true
Extendable: false
Field Summary | |
static String |
DesktopTYPE
The desktop node type. |
private boolean |
myChildrenCache
|
private Image |
myCollapsedImage
|
private Vector |
myDetail
|
private boolean |
myDetailsCache
|
private Image |
myExpandedImage
|
private static WTNode |
myExpandEvent
|
private Explorable |
myObj
|
private symantec.itools.awt.TreeView |
myTreeView
|
private String |
myType
|
static String |
NodeTYPE
The generic node type. |
static String |
ProductTYPE
The product node type. |
static String |
SearchingTYPE
The searching node type. |
Fields inherited from class symantec.itools.awt.TreeNode |
|
Constructor Summary | |
WTNode(Explorable aObj)
Constructs a WTNode contained the given object. |
|
WTNode(String aType)
Constructs a WTNode of the given type |
Method Summary | |
Explorable |
addDetail(Explorable aDetail)
Add the specified object from the details list for the node. |
void |
clearDetail()
Clear the details for this node. |
void |
collapse()
Sets a flag indicating that this node is not expanded. |
void |
expand()
Sets a flag indicating that this node is expanded, if it is expandable. |
WTNode |
getC()
Get a child of this node. |
Image |
getCollapsedImage()
Gets the collapsed image for this node |
Explorable |
getDetail(int aIndex)
Return the object at the specified index in the details list for the node. |
Explorable[] |
getDetails()
|
Image |
getExpandedImage()
Gets the expanded image for this node |
static WTNode |
getExpandEvent()
|
String |
getLabel()
Gets the current text label for this node. |
Explorable |
getObj()
Gets the object contained in this node. |
WTNode |
getP()
Get a parent node of this node. |
WTNode |
getS()
Get a sibling for this node. |
String |
getType()
Gets the type of this node. |
boolean |
is(String aType)
Determines whether this node is of a specified type. |
boolean |
isChildrenCacheValid()
Determines whether the ChildrenCache is valid for this node. |
boolean |
isDetailsCacheValid()
Determines whether the DetailsCache is valid for this node. |
void |
print(String aPad)
Print debug information about the node to the system console. |
void |
printTree(String aPad)
Print debug information about the node and its children to the system console. |
void |
refresh(Explorable anObj)
Refresh the node with the specified object |
void |
refresh(Explorable obj,
Explorable[] details)
|
Explorable |
removeDetail(Explorable aDetail)
Remove the specified object from the details list for the node. |
void |
setChildrenCache(boolean aValid)
Sets the value for the Children Cache flag. |
void |
setCollapsedImage(Image i)
Sets the image to use for this node when it is not expanded. |
void |
setDetailsCache(boolean aValid)
Sets the value for the Details Cache flag. |
void |
setExpandedImage(Image i)
Sets the image to use for this node when it is expanded. |
static void |
setExpandEvent(WTNode aNode)
|
void |
setLabel(String aName)
Sets the current text label for this node. |
int |
totalChildren()
Return the number of children for this node |
int |
totalDetails()
Return the number of objects in the details list for the node. |
int |
totalParents()
Return the number of parents for this node |
Methods inherited from class symantec.itools.awt.TreeNode |
getChild, getDataObject, getDepth, getImage, getParent, getSibling, getText, isAChildVisible, isASiblingVisible, isExpandable, isExpanded, isHidden, setDataObject, setHidden, setText, toggle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String DesktopTYPE
public static String SearchingTYPE
public static String NodeTYPE
public static String ProductTYPE
private static WTNode myExpandEvent
private String myType
private Explorable myObj
private boolean myChildrenCache
private Vector myDetail
private boolean myDetailsCache
private Image myExpandedImage
private Image myCollapsedImage
private symantec.itools.awt.TreeView myTreeView
Constructor Detail |
public WTNode(String aType)
aType
- the type of node to constructpublic WTNode(Explorable aObj)
The new node will invoke getIdentity()
on the object to get the display
string for the tree node. The getStandardIcon()
and getOpenIcon()
methods are invoked to get the icons displayed in the treeview for the node.
aObj
- the object contained by the nodeMethod Detail |
public String getLabel()
setLabel(java.lang.String)
public void setLabel(String aName)
aName
- the text label for this nodegetLabel()
public String getType()
setLabel(java.lang.String)
public boolean is(String aType)
aType
- the type to test for equivalence.
public Explorable getObj()
setLabel(java.lang.String)
public void setChildrenCache(boolean aValid)
aValid
- new value for the cache indicatorpublic boolean isChildrenCacheValid()
public void setDetailsCache(boolean aValid)
aValid
- new value for the cache indicatorpublic boolean isDetailsCacheValid()
public void expand()
public void collapse()
public static void setExpandEvent(WTNode aNode)
public static WTNode getExpandEvent()
public WTNode getC()
public WTNode getP()
public WTNode getS()
public int totalChildren()
public int totalParents()
public Explorable addDetail(Explorable aDetail)
aDetail
- the detail to add
public Explorable removeDetail(Explorable aDetail)
aDetail
- the detail to remove
public Explorable getDetail(int aIndex)
aIndex
- the index of the requested detail
public Explorable[] getDetails()
public int totalDetails()
public void print(String aPad)
aPad
- padding before the output messagepublic void printTree(String aPad)
aPad
- padding before the output messagepublic void clearDetail()
public void refresh(Explorable anObj) throws WTException
Refresh will clear the details and invoke getContents on the new object to refresh the details cache.
anObj
- the new object the node will contain
WTException
public Image getCollapsedImage()
public Image getExpandedImage()
public void setCollapsedImage(Image i)
i
- the image to use when this node is collapsedsetExpandedImage(java.awt.Image)
public void setExpandedImage(Image i)
i
- the image to use when this node is expandedsetCollapsedImage(java.awt.Image)
public void refresh(Explorable obj, Explorable[] details) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |