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


net.mygwt.ui.client.viewer.Viewer
   net.mygwt.ui.client.viewer.ColumnViewer
      net.mygwt.ui.client.viewer.TreeTableViewer

TreeTableViewer
public class TreeTableViewer extends ColumnViewer implements ICheckable,ITreeViewer(Code)
An interface to content providers for treetable-structure-oriented viewers. Content providers for treetable viewers must implement either the ITreeContentProvider interface or the IAsyncTreeContentProvider interface.

This code is based on JFace API from the Eclipse Project.


See Also:   TreeViewer


Field Summary
protected  booleancheckable
    

Constructor Summary
public  TreeTableViewer(TreeTable treeTable)
     Creates a new treetable viewer instance.

Method Summary
public  voidadd(Object parent, Object child)
     Adds the given child element to this viewer as a child of the given parent element.
protected  voidadd(Object elem)
    
public  voidaddCheckStateListener(ICheckStateListener listener)
    
public  voidapplyFilters()
     Applies the viewer's filters to the current elements.
public  WidgetfindItem(Object elem)
    
public  booleangetCaching()
     Returns true if the viewer is caching.
public  booleangetChecked(Object element)
    
protected  ListgetSelectedFromWidget()
    
public  TreegetTree()
     Returns the viewer's tree widget.
public  TreeTablegetTreeTable()
    
public  TreeTableViewerColumngetViewerColumn(int columnId)
     Returns the table viewer column for the specified column.
public  WidgetgetWidget()
    
protected  voidhookWidget(Component widget)
    
public  voidinsert(Object parent, Object child, int position)
     Inserts the given element as a new child element of the given parent element at the given position.
protected  voidinsert(Object elem, int index)
    
protected  voidonInputReceived(Object input)
    
public  voidrefresh(Object elem)
     Refreshes this viewer starting with the given element.
public  voidremove(Object element)
     Removes the given element from the viewer.
public  voidremoveCheckStateListener(ICheckStateListener listener)
    
protected  voidrenderItem(TreeItem parent, Object elem, int position)
    
public  voidselect(Object elem)
     Selects the elements.
public  voidsetCaching(boolean caching)
     Sets whether the children should be cached after first being retrieved from the content provider.
public  booleansetChecked(Object element, boolean state)
    
public  voidsetContentProvider(IContentProvider contentProvider)
    
public  voidsetExpanded(Object element, boolean expanded)
     Sets the expanded state for the element.
public  voidsetInput(Object input)
    
public  voidsetSelection(ISelection selection, boolean reveal)
    
public  voidupdate()
    
public  voidupdate(Object elem)
    

Field Detail
checkable
protected boolean checkable(Code)




Constructor Detail
TreeTableViewer
public TreeTableViewer(TreeTable treeTable)(Code)
Creates a new treetable viewer instance.
Parameters:
  treeTable - the underlying treetable widget




Method Detail
add
public void add(Object parent, Object child)(Code)
Adds the given child element to this viewer as a child of the given parent element.
Parameters:
  parent - the parent element
Parameters:
  child - the child element



add
protected void add(Object elem)(Code)



addCheckStateListener
public void addCheckStateListener(ICheckStateListener listener)(Code)



applyFilters
public void applyFilters()(Code)
Applies the viewer's filters to the current elements.



findItem
public Widget findItem(Object elem)(Code)



getCaching
public boolean getCaching()(Code)
Returns true if the viewer is caching. the caching state



getChecked
public boolean getChecked(Object element)(Code)



getSelectedFromWidget
protected List getSelectedFromWidget()(Code)



getTree
public Tree getTree()(Code)
Returns the viewer's tree widget. the tree



getTreeTable
public TreeTable getTreeTable()(Code)
Returns the underlying treetable widget the treetable



getViewerColumn
public TreeTableViewerColumn getViewerColumn(int columnId)(Code)
Returns the table viewer column for the specified column.
Parameters:
  columnId - the column id the table viewer column



getWidget
public Widget getWidget()(Code)



hookWidget
protected void hookWidget(Component widget)(Code)



insert
public void insert(Object parent, Object child, int position)(Code)
Inserts the given element as a new child element of the given parent element at the given position.
Parameters:
  parent - the parent element
Parameters:
  child - the child element
Parameters:
  position - the insert position



insert
protected void insert(Object elem, int index)(Code)



onInputReceived
protected void onInputReceived(Object input)(Code)



refresh
public void refresh(Object elem)(Code)
Refreshes this viewer starting with the given element.
Parameters:
  elem - the element



remove
public void remove(Object element)(Code)
Removes the given element from the viewer.
Parameters:
  element - the element to be removed



removeCheckStateListener
public void removeCheckStateListener(ICheckStateListener listener)(Code)



renderItem
protected void renderItem(TreeItem parent, Object elem, int position)(Code)



select
public void select(Object elem)(Code)
Selects the elements.
Parameters:
  elem - the element to be selected



setCaching
public void setCaching(boolean caching)(Code)
Sets whether the children should be cached after first being retrieved from the content provider. When false, the tree items will be removed when collapsed.Default value is true.
Parameters:
  caching -



setChecked
public boolean setChecked(Object element, boolean state)(Code)



setContentProvider
public void setContentProvider(IContentProvider contentProvider)(Code)



setExpanded
public void setExpanded(Object element, boolean expanded)(Code)
Sets the expanded state for the element.
Parameters:
  element - the element
Parameters:
  expanded - the expand state



setInput
public void setInput(Object input)(Code)



setSelection
public void setSelection(ISelection selection, boolean reveal)(Code)



update
public void update()(Code)



update
public void update(Object elem)(Code)




Fields inherited from net.mygwt.ui.client.viewer.Viewer
protected Object[] elements(Code)(Java Doc)
protected Object input(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.viewer.Viewer
abstract protected void add(Object elem)(Code)(Java Doc)
public void addFilter(ViewerFilter filter)(Code)(Java Doc)
public void addSelectionListener(ISelectionChangedListener listener)(Code)(Java Doc)
public void applyFilters()(Code)(Java Doc)
protected Object[] filter(Object[] elements)(Code)(Java Doc)
abstract public Widget findItem(Object elem)(Code)(Java Doc)
protected void fireSelectionChanged(SelectionChangedEvent se)(Code)(Java Doc)
public Object[] getActiveElements()(Code)(Java Doc)
public IElementComparer getComparer()(Code)(Java Doc)
public IContentProvider getContentProvider()(Code)(Java Doc)
public Object[] getElements()(Code)(Java Doc)
public ViewerFilter[] getFilters()(Code)(Java Doc)
public Object getInput()(Code)(Java Doc)
public IBaseLabelProvider getLabelProvider()(Code)(Java Doc)
protected Object getRoot()(Code)(Java Doc)
abstract protected List getSelectedFromWidget()(Code)(Java Doc)
public ISelection getSelection()(Code)(Java Doc)
public ViewerSorter getSorter()(Code)(Java Doc)
abstract public Widget getWidget()(Code)(Java Doc)
protected void hookWidget(Component widget)(Code)(Java Doc)
abstract protected void insert(Object elem, int index)(Code)(Java Doc)
public boolean isFiltered(Object parent, Object elem)(Code)(Java Doc)
abstract protected void onInputReceived(Object input)(Code)(Java Doc)
protected void preserveSelections(ISelection selection)(Code)(Java Doc)
public void refresh()(Code)(Java Doc)
abstract public void remove(Object elem)(Code)(Java Doc)
protected void removeElement(Object elem)(Code)(Java Doc)
public void removeFilter(ViewerFilter filter)(Code)(Java Doc)
public void removeSelectionListener(ISelectionChangedListener listener)(Code)(Java Doc)
public void setComparer(IElementComparer comparer)(Code)(Java Doc)
public void setContentProvider(IContentProvider contentProvider)(Code)(Java Doc)
public void setInput(Object input)(Code)(Java Doc)
public void setLabelProvider(IBaseLabelProvider labelProvider)(Code)(Java Doc)
public void setSelection(ISelection selection)(Code)(Java Doc)
abstract public void setSelection(ISelection selection, boolean reveal)(Code)(Java Doc)
public void setSorter(ViewerSorter sorter)(Code)(Java Doc)
protected Object[] sortElements(Object[] elements)(Code)(Java Doc)
abstract public void update()(Code)(Java Doc)
abstract public void update(Object elem)(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.