|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.treetable.AbstractTreeTableModel
com.sciapp.treetable.MutableTreeTableModel
com.sciapp.treetable.ComparableTreeTableModel
com.sciapp.treetable.ObjectTreeTableModel
com.sciapp.table.group.DefaultTreeTableColumnModel
public class DefaultTreeTableColumnModel
DefaultTreeTableColumnModel is the default implementation of a TreeTableColumnModel. DefaultTreeTableColumnModel extends ObjectTreeTableModel and thus utilizes all of its methods and properties. In addition, the inherited methods are actually calls to MutableTreeTableModel's methods. Each node is a DefaultMutableTreeNode having TableColumn as its user object.
| Field Summary |
|---|
| Fields inherited from class com.sciapp.treetable.ComparableTreeTableModel |
|---|
addChildForGroup, comparators, defaultComparatorsByColumnClass |
| Fields inherited from class com.sciapp.treetable.MutableTreeTableModel |
|---|
classes, columns |
| Fields inherited from class com.sciapp.treetable.AbstractTreeTableModel |
|---|
listenerList, root |
| Fields inherited from interface com.sciapp.treetable.TreeTableModel |
|---|
CHANGE_COLUMN_SOURCE |
| Constructor Summary | |
|---|---|
DefaultTreeTableColumnModel()
Constructs a DefaultTreeTableColumnModel. |
|
DefaultTreeTableColumnModel(DefaultMutableTreeNode root)
Constructs a DefaultTreeTableColumnModel. |
|
| Method Summary | |
|---|---|
void |
fireTreeTableStructureChanged(boolean adapterStructureChange)
Generates an event that notifies listeners that the whole treetable structure has changed: both row and column data. |
TableColumn |
getColumn(Object node)
Returns the table column at the specified node. |
Class |
getColumnClass(int column)
Returns the class of all the cells in the column. |
Object |
getObjectAt(Object userObject,
int column)
This method returns the userObject passed as argument. |
Object |
insertColumnInto(TableColumn aColumn,
Object columnNode,
Object parentNode,
int index)
Inserts a table column at the specified node's index. |
void |
removeColumnFrom(Object node)
Removes a node from the model. |
| Methods inherited from class com.sciapp.treetable.ObjectTreeTableModel |
|---|
createLeafNode, createNonLeafNode, getValueAt, replicateLeafNode, setObjectAt, setValueAt |
| Methods inherited from class com.sciapp.treetable.MutableTreeTableModel |
|---|
addColumn, addColumn, addReorderListener, clear, fireRowsMapped, fireRowsReordered, getChild, getChildCount, getColumnCount, getColumnName, getIndexOfChild, getPathToRoot, getPathToRoot, insertNodeInto, isCellEditable, isLeaf, moveNode, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, removeNodeFromParent, removeReorderListener, setColumnClasses, setColumnNames, valueForPathChanged |
| Methods inherited from class com.sciapp.treetable.AbstractTreeTableModel |
|---|
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, fireTreeTableStructureChanged, getRoot, isAggregate, isFooter, isHeader, removeTreeModelListener, setRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
| Constructor Detail |
|---|
public DefaultTreeTableColumnModel()
public DefaultTreeTableColumnModel(DefaultMutableTreeNode root)
| Method Detail |
|---|
public TableColumn getColumn(Object node)
getColumn in interface TreeTableColumnModel
public Object getObjectAt(Object userObject,
int column)
Returns the value for object at column
getObjectAt in class ObjectTreeTableModeluserObject - the object whose value is to be queriedcolumn - the column whose value is to be queried
public Object insertColumnInto(TableColumn aColumn,
Object columnNode,
Object parentNode,
int index)
insertColumnInto in interface TreeTableColumnModelaColumn - the table column to insertcolumnNode - the node that 'contains' the column. If this is null, a new node should be created.parentNode - the node under which the column is to be insertedindex - the parent node's index to insert the column into
columnNode if this wasn't nullpublic void removeColumnFrom(Object node)
removeColumnFrom in interface TreeTableColumnModelnode - the node at which the column is foundpublic Class getColumnClass(int column)
getColumnClass in interface TreeTableModelgetColumnClass in class MutableTreeTableModelcolumn - the index of the column
public void fireTreeTableStructureChanged(boolean adapterStructureChange)
adapterStructureChange argument is significant
only if the model is contained within a TreeTableModelAdapter. In this case, using
adapterStructureChange with a true value will make TreeTableModelAdapter fire
a table structure event.
fireTreeTableStructureChanged in class AbstractTreeTableModeladapterStructureChange - true if this event will triger a structure change TableModelEvent, false otherwise
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||