|
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.Component
com.sapportals.htmlb.Tree
Title: Tree Description: Tree defines a tree Copyright: Copyright (c) 2001 Company: SAP AG
| Field Summary | |
static int |
TREE_BEGIN
|
static int |
TREE_END
|
static String |
TREE_HIERARCHY
|
static String |
TREE_LAYOUT
|
static String |
UI_ID
|
| Constructor Summary | |
protected |
Tree()
Constructor for a Tree object. |
|
Tree(String name)
Constructor for a Tree object. |
|
Tree(String name,
String title)
Constructor for a Tree object. |
| Method Summary | |
TreeNode |
collapseNodeById(String id)
Collapse the tree node, which is specified by the node id. |
void |
decodeTreeHierarchy(String encoded,
String status)
Decode the tree hierarchy. |
TreeNode |
expandNodeById(String id)
Expand the tree node, which is specified by the node id. |
int |
getCurrentNodeId()
FOR INTERNAL USE ONLY. |
String |
getEncodedTreeHierachy()
Return the encoded tree hierarchy. |
String |
getHeight()
gets the height of this tree |
HoverMenu |
getHoverMenu()
Deprecated. |
int |
getOffsetForTreeNode()
Deprecated. Setting the node offset is not supported |
String |
getOnTreeClick()
Return the name of the event handler for the "TreeClick" event. |
TreeNode |
getRootNode()
Return the root node of the tree. |
ForcedTextDirection |
getTextDirection()
Gets the text direction for the component |
String |
getTitle()
Return the displayed title of the tree. |
String |
getTooltip()
|
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal use only. |
boolean |
isEncodeTitle()
check if text should be encoded (default) or treated as native HTML. |
boolean |
isRootNodeVisible()
Return TRUE if the root node of the tree should be visible. |
boolean |
rootNodeIsVisible()
Deprecated. Return TRUE if the root node of the tree should be visible. |
void |
setCurrentNodeId(int nodeId)
FOR INTERNAL USE ONLY. |
void |
setEncodeTitle(boolean encodeTitle)
Sets the title encoding |
void |
setHeight(String height)
sets the height of the tree |
void |
setOffsetForTreeNode(int offsetForTreeNode)
Deprecated. Setting the node offset is not supported |
void |
setOnTreeClick(String onTreeClick)
Set the name of the event handler for the "TreeClick" event. |
void |
setRootNode(TreeNode rootNode)
Set the root node of the tree. |
void |
setRootNodeIsVisible(boolean rootNodeIsVisible)
Set if the root node of the tree should be visible or not. |
void |
setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component |
void |
setTitle(String title)
Set the displayed title of the tree. |
void |
setTooltip(String tooltip)
|
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 com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
public static final int TREE_BEGIN
public static final int TREE_END
public static final String TREE_HIERARCHY
public static final String TREE_LAYOUT
| Constructor Detail |
protected Tree()
public Tree(String name)
name - the name of the tree. Should be unique within a single HTML document
public Tree(String name,
String title)
name - the name of the tree. Should be unique within a single HTML documenttitle - the title of the tree| Method Detail |
public String getUI()
Component
getUI in class Componentpublic void setTitle(String title)
title - the displayed title of the treepublic String getTitle()
public String getTooltip()
public void setTooltip(String tooltip)
public void setRootNode(TreeNode rootNode)
rootNode - the root node of the treepublic TreeNode getRootNode()
public void setOnTreeClick(String onTreeClick)
onTreeClick - the name of the event handler for the "TreeClick" eventpublic String getOnTreeClick()
public TreeNode expandNodeById(String id)
id - the id of the tree node, which should be expanded
public TreeNode collapseNodeById(String id)
id - the id of the tree node, which should be collapsed
public void setRootNodeIsVisible(boolean rootNodeIsVisible)
rootNodeIsVisible - TRUE if the root node of the tree should be visiblepublic boolean rootNodeIsVisible()
public boolean isRootNodeVisible()
public String getEncodedTreeHierachy()
public void decodeTreeHierarchy(String encoded,
String status)
encoded - the encoded tree hierarchy string.status - state of encoded tree nodespublic void updateNodeStatus(Tree tree)
tree - the tree
protected void initFromPageContext(IPageContext pc,
String baseId)
Component
initFromPageContext in class Componentpc - the context, including the parametersbaseId - the prefix used for the component. (The
result of a former RenderUtil.getIdForForm(rc, c);)public int getCurrentNodeId()
public void setCurrentNodeId(int nodeId)
public int getOffsetForTreeNode()
public void setOffsetForTreeNode(int offsetForTreeNode)
public HoverMenu getHoverMenu()
public String getHeight()
public void setHeight(String height)
height - the height of the treepublic ForcedTextDirection getTextDirection()
public void setTextDirection(ForcedTextDirection textDirection)
textDirection - com.sapportals.htmlb.enum.ForcedTextDirectionpublic boolean isEncodeTitle()
public void setEncodeTitle(boolean encodeTitle)
encodeTitle - true to enable title encoding (default)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||