|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.TreeNode
Title: TreeNode Description: TreeNode defines a tree node
Copyright 2004 SAP AG
| Constructor Summary | |
TreeNode(String id)
A constructor of a TreeNode object. |
|
TreeNode(String id,
String text)
A constructor of a TreeNode object. |
|
TreeNode(String id,
String text,
TreeNode parent)
A constructor of a TreeNode object. |
|
TreeNode(String id,
String text,
TreeNode parent,
boolean isOpen)
A constructor of a TreeNode object. |
|
| Method Summary | |
void |
addChildNode(TreeNode node)
Add a tree node to the list of child nodes. |
int |
collectNodeStatusString(int nodeIndex,
StringBuffer status)
|
void |
encodeTreeNode(IHtmlbEncoder encoder)
Return the encoded tree node (including the tree node itself and all childs. |
Enumeration |
getChildNodes()
Return a enumeration of all childs of the tree node. |
Component |
getComponent()
Return the component which should be displayed as tree node content. |
Object |
getContent()
Return the displayed tree node content. |
HoverMenu |
getHoverMenu()
returns the hover menu for this tree node |
String |
getID()
Return the id of the tree node. |
TreeNode |
getNodeByID(String id)
Return the tree node with the specified id. |
String |
getNodeStatus()
Return the node status |
String |
getOnNodeClick()
Return the name of the event handler for the "NodeClick" event. |
String |
getOnNodeClose()
Set the name of the event handler of the "NodeExpand" event. |
String |
getOnNodeExpand()
Set the name of the event handler of the "NodeExpand" event. |
TreeNode |
getParentNode()
Return the parent tree node or NULL if the tree node is a root node. |
String |
getText()
Return the displayed text of the tree node. |
ForcedTextDirection |
getTextDirection()
Gets the text direction for the component |
String |
getTooltip()
gets the Tooltip for this TreeNode. |
Tree |
getTree()
|
boolean |
hasChildren()
Return TRUE if the tree node has any childs. |
boolean |
hasChilds()
Deprecated. Return TRUE if the tree node has any childs. |
boolean |
isEncode()
|
boolean |
isOpen()
Return TRUE if the tree node should be displayed as open node. |
boolean |
isShowExpander()
|
void |
removeAllChildren()
remove all children from the node |
void |
removeAllChilren()
Deprecated. Use |
void |
removeChildNode(TreeNode node)
remode a node from the list of child nodes |
void |
setComponent(Component component)
Set the component which should be displayed as tree node content. |
void |
setEncode(boolean encode)
|
void |
setHoverMenu(HoverMenu hoverMenu)
sets the hover menu for this tree node |
void |
setID(String id)
Set the id of the tree node. |
void |
setOnNodeClick(String onNodeClick)
Set the name of the event handler of the "NodeClick" event. |
void |
setOnNodeClose(String onNodeClose)
Return the name of the event handler for the "NodeExpand" event. |
void |
setOnNodeExpand(String onNodeExpand)
Return the name of the event handler for the "NodeExpand" event. |
void |
setOpen(boolean isOpen)
Set the tree node to open or to closed. |
void |
setParentNode(TreeNode parent)
Set the parent node. |
void |
setShowExpander(boolean showExpander)
|
void |
setText(String text)
Set the displayes text of the tree node. |
void |
setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component |
void |
setTooltip(String tooltip)
sets the Tooltip for this TreeNode. |
void |
setTree(Tree tree)
|
void |
updateNodeStatus(Tree tree)
Update the status of the node (and the whole sub tree) as defined in the specified tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeNode(String id)
id - the node id. This should be unique for a tree.
public TreeNode(String id,
String text)
id - the node id. This should be unique for a tree.text - the displayed node text.
public TreeNode(String id,
String text,
TreeNode parent)
id - the node id. This should be unique for a tree.text - the displayed node text.parent - the parent tree node
public TreeNode(String id,
String text,
TreeNode parent,
boolean isOpen)
id - the node id. This should be unique for a tree.text - the displayed node text.parent - the parent tree nodeisOpen - TRUE if the tree node should be displayed open| Method Detail |
public void setID(String id)
id - the id of the tree node.public String getID()
public void setText(String text)
text - the displayed text of the tree nodepublic String getText()
public void setComponent(Component component)
component - the componentpublic Component getComponent()
public Object getContent()
public void addChildNode(TreeNode node)
node - the new child nodepublic void removeChildNode(TreeNode node)
public void removeAllChilren()
public void removeAllChildren()
public Enumeration getChildNodes()
public TreeNode getParentNode()
public void setParentNode(TreeNode parent)
parent - the parent nodepublic String getTooltip()
public void setTooltip(String tooltip)
tooltip - the tooltip textpublic void setOpen(boolean isOpen)
isOpen - TRUE if the tree node sould be displayed as open nodepublic boolean isOpen()
public boolean hasChilds()
public boolean hasChildren()
public void setOnNodeClick(String onNodeClick)
onNodeClick - the name of the event handler of the "NodeClick" eventpublic String getOnNodeClick()
public String getOnNodeExpand()
public void setOnNodeExpand(String onNodeExpand)
onNodeExpand - the name of the event handler for the "NodeExpand" eventpublic String getOnNodeClose()
public void setOnNodeClose(String onNodeClose)
onNodeClose - the name of the event handler for the "NodeExpand" eventpublic TreeNode getNodeByID(String id)
public void encodeTreeNode(IHtmlbEncoder encoder)
throws IOException
encoder - the encoder to use
IOExceptionpublic void updateNodeStatus(Tree tree)
tree - the treepublic String getNodeStatus()
public int collectNodeStatusString(int nodeIndex,
StringBuffer status)
public HoverMenu getHoverMenu()
public void setHoverMenu(HoverMenu hoverMenu)
public Tree getTree()
public void setTree(Tree tree)
public boolean isEncode()
public void setEncode(boolean encode)
public boolean isShowExpander()
public void setShowExpander(boolean showExpander)
public ForcedTextDirection getTextDirection()
public void setTextDirection(ForcedTextDirection textDirection)
textDirection - com.sapportals.htmlb.enum.ForcedTextDirection
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||