|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.tree.TreeItem
TreePanel
public class TreeItem
A item in a Tree. All events are bubbled to the item's parent
tree.
BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).
| 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 | |
|---|---|
TreeItem()
Deprecated. Creates a new tree item. |
|
TreeItem(java.lang.String text)
Deprecated. Creates a new tree item. |
|
| Method Summary | |
|---|---|
void |
add(TreeItem item)
Deprecated. Adds a child item. |
void |
add(TreeItem item,
int index)
Deprecated. Inserts a child item at the specified position. |
boolean |
equals(java.lang.Object obj)
Deprecated. |
TreeItem |
firstChild()
Deprecated. Returns the item's first child. |
com.google.gwt.user.client.Element |
getContainer()
Deprecated. Returns the item's container element. |
int |
getDepth()
Deprecated. Returns the item's node depth. |
java.lang.String |
getIconStyle()
Deprecated. Returns the item's icon style. |
int |
getIndent()
Deprecated. |
TreeItem |
getItem(int index)
Deprecated. Returns the item at the specified index. |
int |
getItemCount()
Deprecated. Returns the number of child items. |
java.util.List<TreeItem> |
getItems()
Deprecated. Returns the item's children. |
java.util.List<TreeItem> |
getItems(boolean deep)
Deprecated. Returns the item's children. |
java.lang.String |
getItemStyleName()
Deprecated. Returns the item's style name. |
TreeItem |
getParentItem()
Deprecated. Returns the item's parent. |
java.lang.String |
getPath()
Deprecated. Returns the path for this node. |
java.lang.String |
getText()
Deprecated. Returns the item's text. |
java.lang.String |
getTextStyle()
Deprecated. Returns the item's text style. |
TreeItemUI |
getUI()
Deprecated. Returns the item's ui instance. |
boolean |
hasChildren()
Deprecated. Returns true if the item's has children. |
int |
indexOf(TreeItem item)
Deprecated. Returns the index of the item or -1 if not found. |
boolean |
isChecked()
Deprecated. Returns true if the item is checked. |
boolean |
isExpanded()
Deprecated. Returns true if the item is expanded, and false
otherwise. |
boolean |
isLeaf()
Deprecated. Returns true if the item is a leaf, and false
otherwise. |
boolean |
isRoot()
Deprecated. Returns true if the item is a root item. |
TreeItem |
lastChild()
Deprecated. Returns the item's last child. |
TreeItem |
nextSibling()
Deprecated. Returns the item next sibling. |
void |
onComponentEvent(ComponentEvent ce)
Deprecated. Any events a component receives will be forwarded to this method. |
TreeItem |
previousSibling()
Deprecated. Returns the item's previous sibling. |
void |
remove(TreeItem item)
Deprecated. Removes a child from the item. |
void |
removeAll()
Deprecated. Removes all child items. |
void |
setChecked(boolean checked)
Deprecated. Sets the item's checked value. |
void |
setElement(com.google.gwt.user.client.Element elem)
Deprecated. |
void |
setExpanded(boolean expanded)
Deprecated. Sets the item's expanded state. |
void |
setExpanded(boolean expanded,
boolean deep)
Deprecated. Sets the item's expand state. |
void |
setIconStyle(java.lang.String style)
Deprecated. Sets the item's icon style. |
void |
setItemStyleName(java.lang.String itemStyleName)
Deprecated. Sets a style name that will be added to the tree item's element, not the container element. |
void |
setLeaf(boolean leaf)
Deprecated. Sets the item's leaf state. |
void |
setText(java.lang.String text)
Deprecated. Sets the item's text. |
void |
setTextStyle(java.lang.String style)
Deprecated. Sets the item's text style. |
void |
setTreeTableElement(com.google.gwt.user.client.Element elem)
Deprecated. |
void |
setUI(TreeItemUI ui)
Deprecated. |
void |
toggle()
Deprecated. Toggles the item's expand state. |
java.lang.String |
toString()
Deprecated. |
void |
updateIconStyle()
Deprecated. |
void |
updateJointStyle()
Deprecated. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TreeItem()
public TreeItem(java.lang.String text)
text - the item's text| Method Detail |
|---|
public void add(TreeItem item)
item - the item to be addedpublic int getIndent()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public void add(TreeItem item,
int index)
item - the item to be addedindex - index at which the specified element is to be insertedpublic TreeItem firstChild()
nullpublic com.google.gwt.user.client.Element getContainer()
public int getDepth()
public java.lang.String getIconStyle()
public TreeItem getItem(int index)
index - the index
public int getItemCount()
public java.util.List<TreeItem> getItems()
public java.util.List<TreeItem> getItems(boolean deep)
deep - true to retrieve all the item's children
public java.lang.String getItemStyleName()
public TreeItem getParentItem()
public java.lang.String getPath()
public java.lang.String getText()
public java.lang.String getTextStyle()
public TreeItemUI getUI()
public boolean hasChildren()
true if the item's has children.
public int indexOf(TreeItem item)
item - the child item
public boolean isChecked()
true if the item is checked.
public boolean isExpanded()
true if the item is expanded, and false
otherwise.
public boolean isLeaf()
true if the item is a leaf, and false
otherwise. The leaf state allows a tree item to specify if it has children
before the children have been realized.
public boolean isRoot()
true if the item is a root item.
public TreeItem lastChild()
public TreeItem nextSibling()
public void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class Componentce - the base eventpublic TreeItem previousSibling()
public void remove(TreeItem item)
item - the item to be removedpublic void removeAll()
public void setChecked(boolean checked)
checked - true to checkpublic void setElement(com.google.gwt.user.client.Element elem)
setElement in class Componentpublic void setTreeTableElement(com.google.gwt.user.client.Element elem)
public void setExpanded(boolean expanded)
expanded - true to expand
public void setExpanded(boolean expanded,
boolean deep)
expanded - true to expanddeep - true to expand all childrenpublic void setIconStyle(java.lang.String style)
.my-icon {
background: url(images/icons/my-icon.png) no-repeat center left !important;
}
style - the icon stylepublic void setItemStyleName(java.lang.String itemStyleName)
itemStyleName - the style namepublic void setLeaf(boolean leaf)
leaf - the statepublic void setText(java.lang.String text)
text - the new textpublic void setTextStyle(java.lang.String style)
style - the text stylepublic void setUI(TreeItemUI ui)
public void toggle()
public java.lang.String toString()
toString in class Componentpublic void updateIconStyle()
public void updateJointStyle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||