Java Doc for TreeTable.java in  » Ajax » MyGWT » net » mygwt » ui » client » widget » treetable » 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 » MyGWT » net.mygwt.ui.client.widget.treetable 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.mygwt.ui.client.widget.tree.Tree
   net.mygwt.ui.client.widget.treetable.TreeTable

TreeTable
public class TreeTable extends Tree implements ITable(Code)
A hierarchical tree widget with support for additional columns. The tree contains a hierarchy of TreeTableItems that the user can open, close, and select.
Styles:
SINGLE, MULTI, CHECK, HORIZONTAL
Events:
BeforeAdd : (widget, item, index)
Fires before a item is added or inserted. Listeners can set the doit field to false to cancel the action.
  • widget : the parent item
  • item : the item being added
  • index : the index at which the item will be added
BeforeRemove : (widget, item)
Fires before a item is removed. Listeners can set the doit field to false to cancel the action.
  • widget : the parent item
  • item : the item being removed
BeforeExpand : (widget, item)
Fires before a item is expanded. Listeners can set the doit field to false to cancel the expand.
  • widget : the parent item
  • item : the item being expanded
BeforeCollapse : (widget, item)
Fires before a item is collapsed. Listeners can set the doit field to false to cancel the collapse.
  • widget : the parent item
  • item : the item being expanded
Add : (widget, item, index)
Fires after a item has been added or inserted.
  • widget : the parent item
  • item : the item that was added
  • index : the index at which the item will be added
Remove : (widget, item)
Fires after a item has been removed.
  • widget : the parent item
  • item : the item being removed
Expand : (widget, item)
Fires after a item has been expanded.
  • widget : the parent item
  • item : the item being expanded
Collapse : (widget, item)
Fires ater a item is collapsed.
  • widget : the parent item
  • item : the item being collapsed
CheckChange : (widget)
Fires after a check state change.
  • widget : the parent item
ContextMenu : (widget)
Fires before the tree's context menu is shown.
  • widget : this
CellClick : (widget, item, index)
Fires after a cell has been clicked.
  • widget : tree table
  • item : item represented by the cell
  • index : cell column index
CellDoubleClick : (widget, item, index)
Fires after a cell has been double clicked.
  • widget : tree table
  • item : item represented by the cell
  • index : cell column index
RowClick : (widget, item, index)
Fires after a cell has been clicked.
  • widget : tree table
  • item : item that represents the row
  • index : cell column index
RowDoubleClick : (widget, item, index)
Fires after a cell has been double clicked.
  • widget : tree table
  • item : item that represents the row
  • index : cell column index
CSS:
.my-treetbl (the containing table)
.my-treetbl-data (the table data)
.my-treetbl-item (a row in the table)
.my-treetbl-tree (the tree itself)
.my-treetbl-item (a node within the tree)
.my-treetbl-item-text span (the tree item text)


Field Summary
 booleandisableColumnContextMenu
     disableColumnContextMenu specifies if the column context menu should be disabled.
 StyleTemplatestyleTemplate
    

Constructor Summary
public  TreeTable()
     Creates a new single select tree table.
public  TreeTable(TreeTableColumnModel cm)
     Creates a new tree table with the given column model.
public  TreeTable(int style, TreeTableColumnModel cm)
     Creates a new tree table with the given style and column model.

Method Summary
protected  voidcreateRootItem()
    
protected  voiddoAttachChildren()
    
protected  voiddoDetachChildren()
    
public  TableColumngetColumn(int index)
     Returns the column at the specified index.
public  TableColumngetColumn(String id)
     Returns the column with the given id.
public  booleangetColumnContextMenu()
     Returns the column context menu enabed state.
public  intgetColumnCount()
     Returns the number of columns contained in the table.
public  TableColumnModelgetColumnModel()
     Returns the table's column model.
protected  StringgetRenderedValue(int column, Object value)
    
public  TableHeadergetTableHeader()
     Returns the tree table's header.
protected  TreeTableViewgetView()
     Returns the tree table's view.
public  voidonBrowserEvent(Event event)
    
protected  voidonRender()
    
protected  voidonResize(int width, int height)
    
protected  voidonShowContextMenu(int x, int y)
    
public  voidrecalculate()
     Recalculates the ui based on the table's current size.
public  voidscrollIntoView(TableItem item)
     Scrolls the item into view.
public  voidsetColumnContextMenu(boolean enabled)
     Sets whether the column context menu is enabled.
public  voidsetTableHeader(TreeTableHeader header)
     Sets the tree table's header.
public  voidsetView(TreeTableView view)
     Sets the tree table's view.
public  voidsort(int index, int direction)
     Sorts the tree table using the specified column index.

Field Detail
disableColumnContextMenu
boolean disableColumnContextMenu(Code)
disableColumnContextMenu specifies if the column context menu should be disabled. Default value is false.



styleTemplate
StyleTemplate styleTemplate(Code)




Constructor Detail
TreeTable
public TreeTable()(Code)
Creates a new single select tree table. A column model must be set before the table is rendered.



TreeTable
public TreeTable(TreeTableColumnModel cm)(Code)
Creates a new tree table with the given column model.
Parameters:
  cm - the tree table column model



TreeTable
public TreeTable(int style, TreeTableColumnModel cm)(Code)
Creates a new tree table with the given style and column model.
Parameters:
  style - the style
Parameters:
  cm - the tree table column model




Method Detail
createRootItem
protected void createRootItem()(Code)



doAttachChildren
protected void doAttachChildren()(Code)



doDetachChildren
protected void doDetachChildren()(Code)



getColumn
public TableColumn getColumn(int index)(Code)
Returns the column at the specified index.
Parameters:
  index - the column index the column



getColumn
public TableColumn getColumn(String id)(Code)
Returns the column with the given id.
Parameters:
  id - the column id the column



getColumnContextMenu
public boolean getColumnContextMenu()(Code)
Returns the column context menu enabed state. true if enabled, false otherwise.



getColumnCount
public int getColumnCount()(Code)
Returns the number of columns contained in the table. the number of columns



getColumnModel
public TableColumnModel getColumnModel()(Code)
Returns the table's column model. the column model



getRenderedValue
protected String getRenderedValue(int column, Object value)(Code)



getTableHeader
public TableHeader getTableHeader()(Code)
Returns the tree table's header. the table header



getView
protected TreeTableView getView()(Code)
Returns the tree table's view. the view



onBrowserEvent
public void onBrowserEvent(Event event)(Code)



onRender
protected void onRender()(Code)



onResize
protected void onResize(int width, int height)(Code)



onShowContextMenu
protected void onShowContextMenu(int x, int y)(Code)



recalculate
public void recalculate()(Code)
Recalculates the ui based on the table's current size.



scrollIntoView
public void scrollIntoView(TableItem item)(Code)
Scrolls the item into view.
Parameters:
  item - the item



setColumnContextMenu
public void setColumnContextMenu(boolean enabled)(Code)
Sets whether the column context menu is enabled. Initial value is true.
Parameters:
  enabled - the enabled state



setTableHeader
public void setTableHeader(TreeTableHeader header)(Code)
Sets the tree table's header. Should only be called when providing a custom tree table header. Has no effect if called after the table has been rendered.
Parameters:
  header - the table header



setView
public void setView(TreeTableView view)(Code)
Sets the tree table's view. Provides a way to provide specialized views. table views.
Parameters:
  view - the view



sort
public void sort(int index, int direction)(Code)
Sorts the tree table using the specified column index.
Parameters:
  index - the column index
Parameters:
  direction - the direction to sort (NONE, ASC, DESC)



Fields inherited from net.mygwt.ui.client.widget.tree.Tree
protected TreeItem root(Code)(Java Doc)
protected TreeSelectionModel sm(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.widget.tree.Tree
public void collapseAll()(Code)(Java Doc)
protected void createRootItem()(Code)(Java Doc)
public void deselect(TreeItem item)(Code)(Java Doc)
public void deselectAll()(Code)(Java Doc)
public void expandAll()(Code)(Java Doc)
public boolean expandPath(String path)(Code)(Java Doc)
public TreeItem findItem(Element element)(Code)(Java Doc)
public TreeItem[] getAllItems()(Code)(Java Doc)
public boolean getAnimate()(Code)(Java Doc)
public TreeItem[] getChecked()(Code)(Java Doc)
public Menu getContextMenu()(Code)(Java Doc)
public int getIndentWidth()(Code)(Java Doc)
public TreeItem getItemById(String id)(Code)(Java Doc)
public String getItemImageStyle()(Code)(Java Doc)
public String getNodeImageStyle()(Code)(Java Doc)
public String getOpenNodeImageStyle()(Code)(Java Doc)
public TreeItem getRootItem()(Code)(Java Doc)
public TreeItem getSelectedItem()(Code)(Java Doc)
public TreeItem[] getSelection()(Code)(Java Doc)
public int getSelectionMode()(Code)(Java Doc)
public TreeSelectionModel getSelectionModel()(Code)(Java Doc)
public void onBaseEvent(BaseEvent be)(Code)(Java Doc)
public void onBrowserEvent(Event event)(Code)(Java Doc)
protected void onRender()(Code)(Java Doc)
protected void onRightClick(BaseEvent be)(Code)(Java Doc)
public void setAnimate(boolean animate)(Code)(Java Doc)
public void setCheckNodes(int value)(Code)(Java Doc)
public void setCheckStyle(int style)(Code)(Java Doc)
public void setContextMenu(Menu menu)(Code)(Java Doc)
public void setIndentWidth(int indentWidth)(Code)(Java Doc)
public void setItemImageStyle(String itemImageStyle)(Code)(Java Doc)
public void setNodeImageStyle(String nodeImageStyle)(Code)(Java Doc)
public void setOpenNodeImageStyle(String openNodeImageStyle)(Code)(Java Doc)
public void setSelection(List selected)(Code)(Java Doc)
public void setSelection(TreeItem item)(Code)(Java Doc)
public void setSelectionMode(int selectionMode)(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.