|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.TreeWidget
public class TreeWidget
The class Tree is the GWT wrapper
for the Phoenix control: sap.ui.commons.Tree.
Simple tree to display item in a hierarchical way
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
TreeWidget()
constructs the class TreeWidget |
|
TreeWidget(String id)
constructs the class TreeWidget |
protected |
TreeWidget(Tree control)
constructs the class TreeWidget |
| Method Summary | |
|---|---|
void |
addNode(TreeNode node)
Appends some node to the nodes-aggregation. |
void |
collapseAll()
Collapses all nodes in the tree |
void |
destroyNodes()
Destroys all the nodes in the Nodes-aggregation. |
void |
expandAll()
Expands all nodes in the tree |
Tree |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
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. |
void |
removeAllNodes()
Removes all the items in the nodes-aggregation. |
void |
removeNode(int index)
Removes the node at position index in the nodes-aggregation named. |
void |
setHeight(String value)
Setter for property heightDefault value is: auto |
void |
setMinWidth(String value)
Setter for property minWidth |
void |
setShowHeader(boolean value)
Setter for property showHeaderDefault value is: true |
void |
setShowHeaderIcons(boolean value)
Setter for property showHeaderIconsDefault value is: true |
void |
setShowHorizontalScrollbar(boolean value)
Setter for property showHorizontalScrollbarDefault value is: false |
void |
setTitle(String value)
Setter for property title |
void |
setWidth(String value)
Setter for property widthDefault value is: auto |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TreeWidget()
TreeWidget
public TreeWidget(String id)
TreeWidget
id - id of the TreeWidgetprotected TreeWidget(Tree control)
TreeWidget
control - reference to an existing Tree| Method Detail |
|---|
public Tree getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getTitle()
title
Tree title
getTitle in class com.google.gwt.user.client.ui.UIObjectpublic void setTitle(String value)
title
setTitle in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getWidth()
width
Tree width
public void setWidth(String value)
widthauto
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getHeight()
height
Tree height
public void setHeight(String value)
heightauto
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic boolean isShowHeader()
showHeader
Tree Header is display. If false, the tree will be in a transparent mode
public void setShowHeader(boolean value)
showHeadertrue
value - booleanpublic boolean isShowHeaderIcons()
showHeaderIcons
Show Header icons (e.g. Expand/Collapse all). Only consider if showHeader is true
public void setShowHeaderIcons(boolean value)
showHeaderIconstrue
value - booleanpublic boolean isShowHorizontalScrollbar()
showHorizontalScrollbar
Display horizontal scrollbar. If false, the overflow content will be hidden
public void setShowHorizontalScrollbar(boolean value)
showHorizontalScrollbarfalse
value - booleanpublic 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 void setMinWidth(String value)
minWidth
value - Stringpublic com.sap.ui.core.client.js.JsArray<TreeNode> getNodes()
public void insertNode(TreeNode node,
int index)
node - the node to insertindex - int the 0-based index the node should be inserted at.public void addNode(TreeNode node)
node - com.sap.ui.commons.client.TreeNode the node to addpublic void removeNode(int index)
index in the nodes-aggregation named.
index - int the position of the node to remove.public void removeAllNodes()
public 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 void destroyNodes()
public void expandAll()
public void collapseAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||