| javax.swing.table.DefaultTableModel org.netbeans.lib.profiler.ui.components.treetable.AbstractTreeTableModel
All known Subclasses: org.netbeans.lib.profiler.ui.components.treetable.ExtendedTreeTableModel,
Method Summary | |
public void | addTreeModelListener(TreeModelListener l) Adds a listener for the TreeModelEvent posted after the tree changes. | public void | fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on
this event type. | public void | fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on
this event type. | public void | fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on
this event type. | public void | fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on
this event type. | public Object | getChild(Object node, int num) Returns the child at index 'num' of the given node. | public int | getChildCount(Object node) Returns the number of children a given node has. | abstract public Class | getColumnClass(int column) Returns the column class for column column . | abstract public int | getColumnCount() Returns the number of column names passed into the constructor. | abstract public String | getColumnName(int column) Returns the column name passed into the constructor. | public String | getColumnToolTipText(int column) | public int | getIndexOfChild(Object parent, Object child) Returns the index of the child node in the parent node. | public boolean | getInitialSorting(int column) This method should be overriden for TreeTableModel descendant which supports sorting. | public int | getInitialSortingColumn() | public boolean | getInitialSortingOrder() | 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 Object | getRoot() Returns the root node. | abstract public Object | getValueAt(Object node, int column) Returns the value for the column column and object node . | public boolean | isCellEditable(Object node, int column) Returns true if there is a setter method name for column column . | public boolean | isLeaf(Object node) Returns true when the given node is a 'leaf'. | public void | removeTreeModelListener(TreeModelListener l) Removes a listener previously added with addTreeModelListener(). | public void | setRoot(Object root) | public void | setValueAt(Object aValue, Object node, int column) Sets the value to aValue for the object node
in column column . | public void | sortByColumn(int column, boolean order) This method should be overriden for TreeTableModel descendant which supports sorting. | public boolean | supportsSorting() | public void | valueForPathChanged(TreePath path, Object newValue) Overwrite if you are going to user editors in the JTree. |
initialSortingColumn | protected int initialSortingColumn(Code) | | |
initialSortingOrder | protected boolean initialSortingOrder(Code) | | |
supportsSorting | protected boolean supportsSorting(Code) | | |
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) | | |
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 |
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 |
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.
|
removeTreeModelListener | public void removeTreeModelListener(TreeModelListener l)(Code) | | Removes a listener previously added with addTreeModelListener().
|
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) | | |
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)
|
|
|