|
|||||||||
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.data.Node
com.gwtext.client.widgets.tree.TreeNode
public class TreeNode
TreeNode class.
TreePanel
Field Summary |
---|
Fields inherited from class com.gwtext.client.data.Node |
---|
configJS |
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
TreeNode()
Create a new TreeNode. |
|
TreeNode(java.lang.String text)
Create a new TreeNode. |
|
TreeNode(java.lang.String text,
java.lang.String iconCls)
Create a new TreeNode. |
Method Summary | |
---|---|
void |
addListener(TreeNodeListener listener)
Adds a TreeNode listener. |
TreeNode |
cloneNode()
Clones this TreeNode. |
TreeNode |
cloneNode(TreeNode config)
Clones this TreeNode applying the specified configuration to the cloned node. |
void |
collapse()
Collapse this node. |
void |
collapse(boolean deep,
boolean anim)
Collapse this node. |
void |
collapseChildNodes(boolean deep)
Collapse all child nodes. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
protected Node |
createNode(com.google.gwt.core.client.JavaScriptObject jsNode)
|
void |
destroy()
Destroy this node. |
void |
disable()
Disables this node. |
void |
enable()
Enables this node. |
void |
ensureVisible()
Ensures all parent nodes are expanded. |
void |
expand()
Expand this node. |
void |
expand(boolean deep,
boolean anim)
Expand this node. |
void |
expand(boolean deep,
boolean anim,
Function callback)
Expand this node. |
void |
expandChildNodes(boolean deep)
Expand all child nodes. |
java.lang.String |
getIconCls()
|
java.lang.String |
getText()
Return the nodes text. |
TreeNodeUI |
getUI()
Returns the UI object for this node. |
boolean |
isDisabled()
True if this node is disabled. |
boolean |
isExpandable()
Returns true if this node is expandable. |
boolean |
isExpanded()
Returns true if this node is expanded. |
boolean |
isRendered()
|
boolean |
isSelected()
Returns true if this node is selected. |
void |
select()
Triggers selection of this node. |
void |
setAllowDrag(boolean allowDrag)
False to make this node undraggable if DD is on (defaults to true). |
void |
setAllowDrop(boolean allowDrop)
False if this node cannot be drop on. |
void |
setChecked(boolean checked)
True to render a checked checkbox for this node, false to render an unchecked checkbox (defaults to undefined with no checkbox rendered). |
void |
setCls(java.lang.String cls)
A CSS class to be added to the node. |
void |
setDisabled(boolean disabled)
True to start the node disabled |
void |
setExpandable(boolean expandable)
True to mark the node as expandable. |
void |
setExpanded(boolean expanded)
True to start the node expanded |
void |
setHref(java.lang.String href)
URL of the link used for the node (defaults to #). |
void |
setHrefTarget(java.lang.String hrefTarget)
Target frame for the link |
void |
setIcon(java.lang.String icon)
The path to an icon for the node. |
void |
setIconCls(java.lang.String iconCls)
A css class to be added to the nodes icon element for applying css background images. |
void |
setSingleClickExpand(boolean singleClickExpand)
True for single click expand on this node. |
void |
setText(java.lang.String text)
The text for this node. |
void |
setTooltip(QuickTipsConfig qtipConfig)
Set a Tree node tooltip. |
void |
setTooltip(java.lang.String qtip)
Set a Tree node tooltip. |
void |
setTreeAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setUiProvider(com.google.gwt.core.client.JavaScriptObject uiProvider)
Sets a new TreeNodeUI |
void |
toggle()
Toggles expanded/collapsed state of the node. |
static TreeNode |
treeNodeInstance(com.google.gwt.core.client.JavaScriptObject jsObj)
|
void |
unselect()
Triggers deselection of this node. |
Methods inherited from class com.gwtext.client.data.Node |
---|
addListener, appendChild, bubble, cascade, contains, eachChild, equals, findChildBy, getAttribute, getAttributeAsObject, getChildNodes, getDepth, getFirstChild, getId, getJsObj, getLastChild, getNextSibling, getOwnerTree, getParentNode, getPath, getPath, getPreviousSibling, getUserObject, hashCode, indexOf, insertBefore, isAncestor, isFirst, isLast, isLeaf, item, remove, removeChild, replaceChild, setAttribute, setAttribute, setAttribute, setId, setLeaf, setUserObject, sort |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeNode()
public TreeNode(java.lang.String text)
text
- the text / label of the TreeNodepublic TreeNode(java.lang.String text, java.lang.String iconCls)
text
- the text / label of the TreeNodeiconCls
- the tree node icon CSS classMethod Detail |
---|
public static TreeNode treeNodeInstance(com.google.gwt.core.client.JavaScriptObject jsObj)
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create
in class Node
protected Node createNode(com.google.gwt.core.client.JavaScriptObject jsNode)
createNode
in class Node
public void collapse()
public void collapse(boolean deep, boolean anim)
deep
- true to collapse all children as wellanim
- false to disable the default animationpublic void collapseChildNodes(boolean deep)
deep
- true if the child nodes should also collapse their child nodespublic void destroy()
public void disable()
public boolean isDisabled()
public void enable()
public void ensureVisible()
public boolean isRendered()
public void expand()
public void expand(boolean deep, boolean anim)
deep
- true to expand all children as wellanim
- false to cancel the default animationpublic void expand(boolean deep, boolean anim, Function callback)
deep
- true to expand all children as wellanim
- false to cancel the default animationcallback
- a callback to be called when expanding this node completes (does not wait for deep expand to complete)public void expandChildNodes(boolean deep)
deep
- true if the child nodes should also expand their child nodespublic TreeNodeUI getUI()
public boolean isExpanded()
public boolean isSelected()
public void select()
public java.lang.String getText()
public void toggle()
public void unselect()
public TreeNode cloneNode()
public TreeNode cloneNode(TreeNode config)
config
- the cloned node config
public void addListener(TreeNodeListener listener)
listener
- the listenerpublic void setAllowDrag(boolean allowDrag)
allowDrag
- false to disable dragpublic void setAllowDrop(boolean allowDrop)
allowDrop
- flase to disable droppublic void setChecked(boolean checked)
checked
- true for checked checkboxpublic void setCls(java.lang.String cls)
cls
- a CSS classpublic void setDisabled(boolean disabled)
disabled
- true to start disabledpublic void setExpanded(boolean expanded)
expanded
- true to start expandedpublic boolean isExpandable()
public void setExpandable(boolean expandable)
expandable
- true to start expandablepublic void setHref(java.lang.String href)
href
- the node href URLpublic void setHrefTarget(java.lang.String hrefTarget)
hrefTarget
- href frame targetpublic void setIcon(java.lang.String icon)
icon
- the node iconpublic void setIconCls(java.lang.String iconCls)
iconCls
- the icon CSS classpublic java.lang.String getIconCls()
public void setTooltip(java.lang.String qtip)
qtip
- the tooltippublic void setTooltip(QuickTipsConfig qtipConfig)
qtipConfig
- the tooltip configurationpublic void setSingleClickExpand(boolean singleClickExpand)
singleClickExpand
- true for single click expandpublic void setText(java.lang.String text)
text
- the nodes text / labelpublic void setUiProvider(com.google.gwt.core.client.JavaScriptObject uiProvider)
uiProvider
- the new UI Providerpublic void setTreeAttribute(java.lang.String name, java.lang.Object value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |