|
||||||||||
| 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.commons.client.TreeNode
public class TreeNode
The class TreeNode is the GWT wrapper
for the Phoenix control: sap.ui.commons.TreeNode.
Tree node element
| Constructor Summary | |
|---|---|
protected |
TreeNode()
constructs the class TreeNodehidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
TreeNode |
addNode(TreeNode node)
Appends a node to the aggregation nodes. |
TreeNode |
attachSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Node is selected
|
TreeNode |
attachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Node state has changed. |
void |
collapse()
Collapses the node |
static TreeNode |
create()
creates a new instance of the class TreeNode |
static TreeNode |
create(String idOrConfig)
creates a new instance of the class TreeNode |
static TreeNode |
create(String id,
String config)
creates a new instance of the class TreeNode |
TreeNode |
destroyNodes()
Destroys all the nodes in the Nodes-aggregation. |
TreeNode |
detachSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Node is selected |
TreeNode |
detachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Node state has changed. |
void |
expand()
Expands the node |
String |
getIcon()
Getter for property icon
Icon to display in front of the node |
com.sap.ui.core.client.js.JsArray<TreeNode> |
getNodes()
Getter for aggregation nodes Subnodes for the current node |
String |
getText()
Getter for property text
Node text |
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. |
TreeNode |
insertNode(TreeNode node,
int index)
Inserts some node into the aggregation named nodes. |
boolean |
isExpanded()
Getter for property expanded
Node is expanded |
boolean |
isHasExpander()
Getter for property hasExpander
Should the node has an expander. |
boolean |
isIsSelected()
Getter for property isSelected
Node is selected |
boolean |
isSelectable()
Getter for property selectable
The node is selectable. |
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. |
void |
select()
Select the node, and if any, deselects the previously selected node |
TreeNode |
setExpanded(boolean value)
Setter for property expandedDefault value is: true |
TreeNode |
setHasExpander(boolean value)
Setter for property hasExpanderDefault value is: false |
TreeNode |
setIcon(String value)
Setter for property icon |
TreeNode |
setIsSelected(boolean value)
Setter for property isSelectedDefault value is: false |
TreeNode |
setSelectable(boolean value)
Setter for property selectableDefault value is: true |
TreeNode |
setText(String value)
Setter for property text |
| 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 TreeNode()
TreeNodeJavaScriptObject restriction
| Method Detail |
|---|
public static TreeNode create()
TreeNode
public static TreeNode create(String idOrConfig)
TreeNode
id - id of the TreeNode or configuration JSON string
public static TreeNode create(String id,
String config)
TreeNode
id - id of the TreeNodeconfig - configuration JSON stringpublic final String getText()
text
Node text
public final TreeNode setText(String value)
text
value - String
this to allow method chainingpublic final boolean isExpanded()
expanded
Node is expanded
public final TreeNode setExpanded(boolean value)
expandedtrue
value - boolean
this to allow method chainingpublic final boolean isHasExpander()
hasExpander
Should the node has an expander.
public final TreeNode setHasExpander(boolean value)
hasExpanderfalse
value - boolean
this to allow method chainingpublic final String getIcon()
icon
Icon to display in front of the node
public final TreeNode setIcon(String value)
icon
value - String
this to allow method chainingpublic final boolean isIsSelected()
isSelected
Node is selected
public final TreeNode setIsSelected(boolean value)
isSelectedfalse
value - boolean
this to allow method chainingpublic final boolean isSelectable()
selectable
The node is selectable. If true, clicking on the node text triggers "selected" event
public final TreeNode setSelectable(boolean value)
selectabletrue
value - boolean
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<TreeNode> getNodes()
public final TreeNode 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 TreeNode 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 TreeNode destroyNodes()
this to allow method chainingpublic final TreeNode attachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Node state has changed.
listener - reference to the EventListener
this to allow method chainingpublic final TreeNode detachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Node state has changed.
listener - reference to the EventListener
this to allow method chainingpublic final TreeNode attachSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Node is selected
listener - reference to the EventListener
this to allow method chainingpublic final TreeNode detachSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Node is selected
listener - reference to the EventListener
this to allow method chainingpublic final void select()
public final void expand()
public final void collapse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||