Java Doc for TreeItem.java in  » Ajax » GWT » com » google » gwt » user » client » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » GWT » com.google.gwt.user.client.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.google.gwt.user.client.ui.UIObject
      com.google.gwt.user.client.ui.TreeItem

TreeItem
public class TreeItem extends UIObject implements HasHTML(Code)
An item that can be contained within a com.google.gwt.user.client.ui.Tree .

Example




Constructor Summary
public  TreeItem()
     Creates an empty tree item.
public  TreeItem(String html)
     Constructs a tree item with the given HTML.
public  TreeItem(Widget widget)
     Constructs a tree item with the given Widget.

Method Summary
public  TreeItemaddItem(String itemText)
     Adds a child tree item containing the specified text.
public  voidaddItem(TreeItem item)
     Adds another item as a child to this one.
public  TreeItemaddItem(Widget widget)
     Adds a child tree item containing the specified widget.
 voidaddTreeItems(List<TreeItem> accum)
    
public  TreeItemgetChild(int index)
     Gets the child at the specified index.
public  intgetChildCount()
     Gets the number of children contained in this item.
public  intgetChildIndex(TreeItem child)
     Gets the index of the specified child item.
 ArrayList<TreeItem>getChildren()
    
 ElementgetContentElem()
    
 intgetContentHeight()
    
protected  HasFocusgetFocusableWidget()
     Returns the widget, if any, that should be focused on if this TreeItem is selected.
public  StringgetHTML()
    
 ElementgetImageElement()
    
public  TreeItemgetParentItem()
     Gets this item's parent.
public  booleangetState()
     Gets whether this item's children are displayed.
public  StringgetText()
    
final public  TreegetTree()
     Gets the tree that contains this item.
public  ObjectgetUserObject()
     Gets the user-defined object associated with this item.
public  WidgetgetWidget()
     Gets the Widget associated with this tree item.
public  booleanisSelected()
     Determines whether this item is currently selected.
public  voidremove()
     Removes this item from its tree.
public  voidremoveItem(TreeItem item)
     Removes one of this item's children.
public  voidremoveItems()
     Removes all of this item's children.
public  voidsetHTML(String html)
    
 voidsetParentItem(TreeItem parent)
    
public  voidsetSelected(boolean selected)
     Selects or deselects this item.
public  voidsetState(boolean open)
     Sets whether this item's children are displayed.
public  voidsetState(boolean open, boolean fireEvents)
     Sets whether this item's children are displayed.
public  voidsetText(String text)
    
 voidsetTree(Tree newTree)
    
public  voidsetUserObject(Object userObj)
     Sets the user-defined object associated with this item.
public  voidsetWidget(Widget newWidget)
     Sets the current widget.
 voidupdateState()
    
 voidupdateStateRecursive()
    


Constructor Detail
TreeItem
public TreeItem()(Code)
Creates an empty tree item.



TreeItem
public TreeItem(String html)(Code)
Constructs a tree item with the given HTML.
Parameters:
  html - the item's HTML



TreeItem
public TreeItem(Widget widget)(Code)
Constructs a tree item with the given Widget.
Parameters:
  widget - the item's widget




Method Detail
addItem
public TreeItem addItem(String itemText)(Code)
Adds a child tree item containing the specified text.
Parameters:
  itemText - the text to be added the item that was added



addItem
public void addItem(TreeItem item)(Code)
Adds another item as a child to this one.
Parameters:
  item - the item to be added



addItem
public TreeItem addItem(Widget widget)(Code)
Adds a child tree item containing the specified widget.
Parameters:
  widget - the widget to be added the item that was added



addTreeItems
void addTreeItems(List<TreeItem> accum)(Code)



getChild
public TreeItem getChild(int index)(Code)
Gets the child at the specified index.
Parameters:
  index - the index to be retrieved the item at that index



getChildCount
public int getChildCount()(Code)
Gets the number of children contained in this item. this item's child count.



getChildIndex
public int getChildIndex(TreeItem child)(Code)
Gets the index of the specified child item.
Parameters:
  child - the child item to be found the child's index, or -1 if none is found



getChildren
ArrayList<TreeItem> getChildren()(Code)



getContentElem
Element getContentElem()(Code)



getContentHeight
int getContentHeight()(Code)



getFocusableWidget
protected HasFocus getFocusableWidget()(Code)
Returns the widget, if any, that should be focused on if this TreeItem is selected. widget to be focused.



getHTML
public String getHTML()(Code)



getImageElement
Element getImageElement()(Code)



getParentItem
public TreeItem getParentItem()(Code)
Gets this item's parent. the parent item



getState
public boolean getState()(Code)
Gets whether this item's children are displayed. true if the item is open



getText
public String getText()(Code)



getTree
final public Tree getTree()(Code)
Gets the tree that contains this item. the containing tree



getUserObject
public Object getUserObject()(Code)
Gets the user-defined object associated with this item. the item's user-defined object



getWidget
public Widget getWidget()(Code)
Gets the Widget associated with this tree item. the widget



isSelected
public boolean isSelected()(Code)
Determines whether this item is currently selected. true if it is selected



remove
public void remove()(Code)
Removes this item from its tree.



removeItem
public void removeItem(TreeItem item)(Code)
Removes one of this item's children.
Parameters:
  item - the item to be removed



removeItems
public void removeItems()(Code)
Removes all of this item's children.



setHTML
public void setHTML(String html)(Code)



setParentItem
void setParentItem(TreeItem parent)(Code)



setSelected
public void setSelected(boolean selected)(Code)
Selects or deselects this item.
Parameters:
  selected - true to select the item, falseto deselect it



setState
public void setState(boolean open)(Code)
Sets whether this item's children are displayed.
Parameters:
  open - whether the item is open



setState
public void setState(boolean open, boolean fireEvents)(Code)
Sets whether this item's children are displayed.
Parameters:
  open - whether the item is open
Parameters:
  fireEvents - true to allow open/close events to befired



setText
public void setText(String text)(Code)



setTree
void setTree(Tree newTree)(Code)



setUserObject
public void setUserObject(Object userObj)(Code)
Sets the user-defined object associated with this item.
Parameters:
  userObj - the item's user-defined object



setWidget
public void setWidget(Widget newWidget)(Code)
Sets the current widget. Any existing child widget will be removed.
Parameters:
  newWidget - Widget to set



updateState
void updateState()(Code)



updateStateRecursive
void updateStateRecursive()(Code)



Methods inherited from com.google.gwt.user.client.ui.UIObject
public void addStyleDependentName(String styleSuffix)(Code)(Java Doc)
public void addStyleName(String style)(Code)(Java Doc)
public int getAbsoluteLeft()(Code)(Java Doc)
public int getAbsoluteTop()(Code)(Java Doc)
public Element getElement()(Code)(Java Doc)
public int getOffsetHeight()(Code)(Java Doc)
public int getOffsetWidth()(Code)(Java Doc)
protected Element getStyleElement()(Code)(Java Doc)
protected static String getStyleName(Element elem)(Code)(Java Doc)
public String getStyleName()(Code)(Java Doc)
protected static String getStylePrimaryName(Element elem)(Code)(Java Doc)
public String getStylePrimaryName()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
native public static boolean isVisible(Element elem)(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void removeStyleDependentName(String styleSuffix)(Code)(Java Doc)
public void removeStyleName(String style)(Code)(Java Doc)
protected void setElement(Element elem)(Code)(Java Doc)
public void setHeight(String height)(Code)(Java Doc)
public void setPixelSize(int width, int height)(Code)(Java Doc)
public void setSize(String width, String height)(Code)(Java Doc)
protected static void setStyleName(Element elem, String styleName)(Code)(Java Doc)
protected static void setStyleName(Element elem, String style, boolean add)(Code)(Java Doc)
public void setStyleName(String style)(Code)(Java Doc)
protected static void setStylePrimaryName(Element elem, String style)(Code)(Java Doc)
public void setStylePrimaryName(String style)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
native public static void setVisible(Element elem, boolean visible)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public void setWidth(String width)(Code)(Java Doc)
public void sinkEvents(int eventBitsToAdd)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void unsinkEvents(int eventBitsToRemove)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.