|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.Tree
public class Tree
The class Tree is the GWT wrapper
for the Phoenix control: sap.ui.commons.Tree.
Simple tree to display item in a hierarchical way
| Constructor Summary | |
|---|---|
protected |
Tree()
constructs the class Treehidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Tree |
addNode(TreeNode node)
Appends a node to the aggregation nodes. |
void |
collapseAll()
Collapses all nodes in the tree |
static Tree |
create()
creates a new instance of the class Tree |
static Tree |
create(String idOrConfig)
creates a new instance of the class Tree |
static Tree |
create(String id,
String config)
creates a new instance of the class Tree |
Tree |
destroyNodes()
Destroys all the nodes in the Nodes-aggregation. |
void |
expandAll()
Expands all nodes in the tree |
String |
getHeight()
Getter for property height
Tree height |
String |
getMinWidth()
Getter for property minWidth
Minimal width for the Tree. |
com.sap.ui.core.client.js.JsArray<TreeNode> |
getNodes()
Getter for aggregation nodes First level nodes |
String |
getTitle()
Getter for property title
Tree title |
String |
getWidth()
Getter for property width
Tree width |
int |
indexOfNode(TreeNode node)
Checks for the provided com.sap.ui.commons.client.TreeNode in the nodes-aggregation and
returns its index if found or -1 otherwise. |
Tree |
insertNode(TreeNode node,
int index)
Inserts some node into the aggregation named nodes. |
boolean |
isShowHeader()
Getter for property showHeader
Tree Header is display. |
boolean |
isShowHeaderIcons()
Getter for property showHeaderIcons
Show Header icons (e.g. |
boolean |
isShowHorizontalScrollbar()
Getter for property showHorizontalScrollbar
Display horizontal scrollbar. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<TreeNode>> |
removeAllNodes()
Removes all the items in the nodes-aggregation. |
com.sap.ui.core.client.js.JsArray<TreeNode> |
removeNode(int index)
Removes a node from the aggregation named nodes. |
Tree |
setHeight(String value)
Setter for property heightDefault value is: auto |
Tree |
setMinWidth(String value)
Setter for property minWidth |
Tree |
setShowHeader(boolean value)
Setter for property showHeaderDefault value is: true |
Tree |
setShowHeaderIcons(boolean value)
Setter for property showHeaderIconsDefault value is: true |
Tree |
setShowHorizontalScrollbar(boolean value)
Setter for property showHorizontalScrollbarDefault value is: false |
Tree |
setTitle(String value)
Setter for property title |
Tree |
setWidth(String value)
Setter for property widthDefault value is: auto |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Tree()
TreeJavaScriptObject restriction
| Method Detail |
|---|
public static Tree create()
Tree
public static Tree create(String idOrConfig)
Tree
id - id of the Tree or configuration JSON string
public static Tree create(String id,
String config)
Tree
id - id of the Treeconfig - configuration JSON stringpublic final String getTitle()
title
Tree title
public final Tree setTitle(String value)
title
value - String
this to allow method chainingpublic final String getWidth()
width
Tree width
public final Tree setWidth(String value)
widthauto
value - String
this to allow method chainingpublic final String getHeight()
height
Tree height
public final Tree setHeight(String value)
heightauto
value - String
this to allow method chainingpublic final boolean isShowHeader()
showHeader
Tree Header is display. If false, the tree will be in a transparent mode
public final Tree setShowHeader(boolean value)
showHeadertrue
value - boolean
this to allow method chainingpublic final boolean isShowHeaderIcons()
showHeaderIcons
Show Header icons (e.g. Expand/Collapse all). Only consider if showHeader is true
public final Tree setShowHeaderIcons(boolean value)
showHeaderIconstrue
value - boolean
this to allow method chainingpublic final boolean isShowHorizontalScrollbar()
showHorizontalScrollbar
Display horizontal scrollbar. If false, the overflow content will be hidden
public final Tree setShowHorizontalScrollbar(boolean value)
showHorizontalScrollbarfalse
value - boolean
this to allow method chainingpublic final String getMinWidth()
minWidth
Minimal width for the Tree. Can be useful when, for example, the width is specified in percentage, to avoid the tree to become too narrow when container is resize
public final Tree setMinWidth(String value)
minWidth
value - String
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<TreeNode> getNodes()
public final Tree insertNode(TreeNode node,
int index)
nodes.
node - the node to insertindex - int the 0-based index the node should be inserted at.
this to allow method chainingpublic final Tree addNode(TreeNode node)
nodes.
node - com.sap.ui.commons.client.TreeNode the node to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<TreeNode> removeNode(int index)
nodes.
index - int the position of the node to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<TreeNode>> removeAllNodes()
public final int indexOfNode(TreeNode node)
com.sap.ui.commons.client.TreeNode in the nodes-aggregation and
returns its index if found or -1 otherwise.
node - the node whose index is looked for.
public final Tree destroyNodes()
this to allow method chainingpublic final void expandAll()
public final void collapseAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||