Java Doc for AbstractTreeTableModel.java in  » IDE-Netbeans » cvsclient » org » netbeans » lib » profiler » ui » components » 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 » IDE Netbeans » cvsclient » org.netbeans.lib.profiler.ui.components.treetable 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.table.DefaultTableModel
   org.netbeans.lib.profiler.ui.components.treetable.AbstractTreeTableModel

All known Subclasses:   org.netbeans.lib.profiler.ui.components.treetable.ExtendedTreeTableModel,
AbstractTreeTableModel
abstract public class AbstractTreeTableModel extends DefaultTableModel implements TreeTableModel(Code)


Field Summary
protected  intinitialSortingColumn
    
protected  booleaninitialSortingOrder
    
protected  CCTNoderoot
     The root of the tree.
protected  booleansupportsSorting
    

Constructor Summary
public  AbstractTreeTableModel(CCTNode root)
     Creates a new AbstractTreeTableModel which supports sorting.
public  AbstractTreeTableModel(CCTNode root, int sortingColumn, boolean sortingOrder)
    
public  AbstractTreeTableModel(CCTNode root, boolean supportsSorting, int sortingColumn, boolean sortingOrder)
    

Method Summary
public  voidaddTreeModelListener(TreeModelListener l)
     Adds a listener for the TreeModelEvent posted after the tree changes.
public  voidfireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)
     Notify all listeners that have registered interest for notification on this event type.
public  voidfireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
     Notify all listeners that have registered interest for notification on this event type.
public  voidfireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
     Notify all listeners that have registered interest for notification on this event type.
public  voidfireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
     Notify all listeners that have registered interest for notification on this event type.
public  ObjectgetChild(Object node, int num)
     Returns the child at index 'num' of the given node.
public  intgetChildCount(Object node)
     Returns the number of children a given node has.
abstract public  ClassgetColumnClass(int column)
     Returns the column class for column column.
abstract public  intgetColumnCount()
     Returns the number of column names passed into the constructor.
abstract public  StringgetColumnName(int column)
     Returns the column name passed into the constructor.
public  StringgetColumnToolTipText(int column)
    
public  intgetIndexOfChild(Object parent, Object child)
     Returns the index of the child node in the parent node.
public  booleangetInitialSorting(int column)
     This method should be overriden for TreeTableModel descendant which supports sorting.
public  intgetInitialSortingColumn()
    
public  booleangetInitialSortingOrder()
    
public  CCTNode[]getPathToRoot(CCTNode aNode)
     Builds the parents of the node up to and including the root node, where the original node is the last element in the returned array.
public  ObjectgetRoot()
     Returns the root node.
abstract public  ObjectgetValueAt(Object node, int column)
     Returns the value for the column column and object node.
public  booleanisCellEditable(Object node, int column)
     Returns true if there is a setter method name for column column.
public  booleanisLeaf(Object node)
     Returns true when the given node is a 'leaf'.
public  voidremoveTreeModelListener(TreeModelListener l)
     Removes a listener previously added with addTreeModelListener().
public  voidsetRoot(Object root)
    
public  voidsetValueAt(Object aValue, Object node, int column)
     Sets the value to aValue for the object node in column column.
public  voidsortByColumn(int column, boolean order)
     This method should be overriden for TreeTableModel descendant which supports sorting.
public  booleansupportsSorting()
    
public  voidvalueForPathChanged(TreePath path, Object newValue)
     Overwrite if you are going to user editors in the JTree.

Field Detail
initialSortingColumn
protected int initialSortingColumn(Code)



initialSortingOrder
protected boolean initialSortingOrder(Code)



root
protected CCTNode root(Code)
The root of the tree.



supportsSorting
protected boolean supportsSorting(Code)




Constructor Detail
AbstractTreeTableModel
public AbstractTreeTableModel(CCTNode root)(Code)
Creates a new AbstractTreeTableModel which supports sorting.



AbstractTreeTableModel
public AbstractTreeTableModel(CCTNode root, int sortingColumn, boolean sortingOrder)(Code)



AbstractTreeTableModel
public AbstractTreeTableModel(CCTNode root, boolean supportsSorting, int sortingColumn, boolean sortingOrder)(Code)




Method Detail
addTreeModelListener
public void addTreeModelListener(TreeModelListener l)(Code)
Adds a listener for the TreeModelEvent posted after the tree changes.



fireTreeNodesChanged
public void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)(Code)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.
See Also:   javax.swing.event.EventListenerList



fireTreeNodesInserted
public void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)(Code)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.
See Also:   javax.swing.event.EventListenerList



fireTreeNodesRemoved
public void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)(Code)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.
See Also:   javax.swing.event.EventListenerList



fireTreeStructureChanged
public void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)(Code)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.
See Also:   javax.swing.event.EventListenerList



getChild
public Object getChild(Object node, int num)(Code)
Returns the child at index 'num' of the given node.

Although the method expects an Object because of the TreeModel contract, in reality it assumes the given node is a 'TreeTableNode'.
See Also:   javax.swing.tree.TreeModel.getChild(java.lang.Objectint)




getChildCount
public int getChildCount(Object node)(Code)
Returns the number of children a given node has.

Although the method expects an Object because of the TreeModel contract, in reality it assumes the given node is a 'TreeTableNode'.
See Also:   javax.swing.tree.TreeModel.getChildCount(java.lang.Object)




getColumnClass
abstract public Class getColumnClass(int column)(Code)
Returns the column class for column column. This is set in the constructor.



getColumnCount
abstract public int getColumnCount()(Code)
Returns the number of column names passed into the constructor.



getColumnName
abstract public String getColumnName(int column)(Code)
Returns the column name passed into the constructor.



getColumnToolTipText
public String getColumnToolTipText(int column)(Code)



getIndexOfChild
public int getIndexOfChild(Object parent, Object child)(Code)
Returns the index of the child node in the parent node.

Although the method expects Objects because of the TreeModel contract, it assumes both parent and child are TreeTableNodes.




getInitialSorting
public boolean getInitialSorting(int column)(Code)
This method should be overriden for TreeTableModel descendant which supports sorting.
Parameters:
  column - The table column index Initial sorting for the specified column - if true, ascending, if false descending



getInitialSortingColumn
public int getInitialSortingColumn()(Code)



getInitialSortingOrder
public boolean getInitialSortingOrder()(Code)



getPathToRoot
public CCTNode[] getPathToRoot(CCTNode aNode)(Code)
Builds the parents of the node up to and including the root node, where the original node is the last element in the returned array. The length of the returned array gives the node's depth in the tree.
Parameters:
  aNode - the TreeNode to get the path for



getRoot
public Object getRoot()(Code)
Returns the root node.



getValueAt
abstract public Object getValueAt(Object node, int column)(Code)
Returns the value for the column column and object node. The return value is determined by invoking the method specified in constructor for the passed in column.



isCellEditable
public boolean isCellEditable(Object node, int column)(Code)
Returns true if there is a setter method name for column column. This is set in the constructor.



isLeaf
public boolean isLeaf(Object node)(Code)
Returns true when the given node is a 'leaf'.

Although the method expects an Object because of the TreeModel contract, in reality it assumes the given node is a 'TreeTableNode'.
See Also:   javax.swing.tree.TreeModel.isLeaf(java.lang.Object)




removeTreeModelListener
public void removeTreeModelListener(TreeModelListener l)(Code)
Removes a listener previously added with addTreeModelListener().



setRoot
public void setRoot(Object root)(Code)



setValueAt
public void setValueAt(Object aValue, Object node, int column)(Code)
Sets the value to aValue for the object node in column column. This is done by using the setter method name, and coercing the passed in value to the specified type.



sortByColumn
public void sortByColumn(int column, boolean order)(Code)
This method should be overriden for TreeTableModel descendant which supports sorting.
Parameters:
  column - The table column index
Parameters:
  order - sorting for the specified column - if true, ascending, if false descending



supportsSorting
public boolean supportsSorting()(Code)



valueForPathChanged
public void valueForPathChanged(TreePath path, Object newValue)(Code)
Overwrite if you are going to user editors in the JTree.

The default implementation does nothing (dummy method).
See Also:   javax.swing.tree.DefaultTreeModel.valueForPathChanged(javax.swing.tree.TreePathjava.lang.Object)




Fields inherited from javax.swing.table.DefaultTableModel
protected Vector columnIdentifiers(Code)(Java Doc)
protected Vector dataVector(Code)(Java Doc)

Methods inherited from javax.swing.table.DefaultTableModel
public void addColumn(Object columnName)(Code)(Java Doc)
public void addColumn(Object columnName, Vector columnData)(Code)(Java Doc)
public void addColumn(Object columnName, Object[] columnData)(Code)(Java Doc)
public void addRow(Vector rowData)(Code)(Java Doc)
public void addRow(Object[] rowData)(Code)(Java Doc)
protected static Vector convertToVector(Object[] anArray)(Code)(Java Doc)
protected static Vector convertToVector(Object[][] anArray)(Code)(Java Doc)
public int getColumnCount()(Code)(Java Doc)
public String getColumnName(int column)(Code)(Java Doc)
public Vector getDataVector()(Code)(Java Doc)
public int getRowCount()(Code)(Java Doc)
public Object getValueAt(int row, int column)(Code)(Java Doc)
public void insertRow(int row, Vector rowData)(Code)(Java Doc)
public void insertRow(int row, Object[] rowData)(Code)(Java Doc)
public boolean isCellEditable(int row, int column)(Code)(Java Doc)
public void moveRow(int start, int end, int to)(Code)(Java Doc)
public void newDataAvailable(TableModelEvent event)(Code)(Java Doc)
public void newRowsAdded(TableModelEvent e)(Code)(Java Doc)
public void removeRow(int row)(Code)(Java Doc)
public void rowsRemoved(TableModelEvent event)(Code)(Java Doc)
public void setColumnCount(int columnCount)(Code)(Java Doc)
public void setColumnIdentifiers(Vector columnIdentifiers)(Code)(Java Doc)
public void setColumnIdentifiers(Object[] newIdentifiers)(Code)(Java Doc)
public void setDataVector(Vector dataVector, Vector columnIdentifiers)(Code)(Java Doc)
public void setDataVector(Object[][] dataVector, Object[] columnIdentifiers)(Code)(Java Doc)
public void setNumRows(int rowCount)(Code)(Java Doc)
public void setRowCount(int rowCount)(Code)(Java Doc)
public void setValueAt(Object aValue, int row, int column)(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.