|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.widgets.tree.TreeNodeUI
public class TreeNodeUI
This class provides the default UI implementation for TreeNodes. The TreeNode UI implementation is separate from the tree implementation, and allows customizing of the appearance of tree nodes.
This class provides access to the user interface components of an TreeNode, through TreeNode.getUI()
.
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
TreeNodeUI(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
void |
addClass(java.lang.String cls)
Adds one or more CSS classes to the node's UI element. |
com.google.gwt.user.client.Element |
getAnchor()
Returns the <a> element that provides focus for the node's UI. |
com.google.gwt.user.client.Element |
getEl()
This returns an element that represents the whole subtree starting with itselt as the current node. |
com.google.gwt.user.client.Element |
getElNode()
Element for 'this' node. |
com.google.gwt.user.client.Element |
getIconEl()
Returns the icon <img> element. |
com.google.gwt.user.client.Element |
getTextEl()
Returns the text node. |
void |
hide()
Hides this node. |
void |
highlight()
Highlight this node. |
boolean |
isChecked()
Returns the checked status of the node. |
void |
removeClass(java.lang.String cls)
Removes one or more CSS classes from the node's UI element. |
void |
show()
Shows this node. |
void |
toggleCheck()
Sets the checked status of the tree node to the passed value, or, if no value was passed, toggles the checked status. |
void |
toggleCheck(boolean value)
Sets the checked status of the tree node to the passed value, or, if no value was passed, toggles the checked status. |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeNodeUI(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public void addClass(java.lang.String cls)
cls
- the CSS classpublic void removeClass(java.lang.String cls)
cls
- the CSS class to removepublic void hide()
public void show()
public void toggleCheck()
public void toggleCheck(boolean value)
value
- the new checkbox statuspublic void highlight()
public com.google.gwt.user.client.Element getEl()
public com.google.gwt.user.client.Element getElNode()
public com.google.gwt.user.client.Element getAnchor()
public com.google.gwt.user.client.Element getTextEl()
public com.google.gwt.user.client.Element getIconEl()
public boolean isChecked()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |