|
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
public abstract class AbstractTreeTableModel
AbstractTreeTableModel provides an abstract treetablemodel implementation.
| Field Summary | |
|---|---|
protected EventListenerList |
listenerList
the list of treemodel listeners. |
protected Object |
root
the root |
| Fields inherited from interface com.sciapp.treetable.TreeTableModel |
|---|
CHANGE_COLUMN_SOURCE |
| Constructor Summary | |
|---|---|
AbstractTreeTableModel(Object root)
Constructs an AbstractTreeTableModel. |
|
| Method Summary | |
|---|---|
void |
addTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent
posted after the tree changes. |
void |
fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
void |
fireTreeTableStructureChanged()
Generates an event that notifies listeners that the whole treetable structure has changed: both row and column data. |
void |
fireTreeTableStructureChanged(boolean adapterStructureChange)
Generates an event that notifies listeners that the whole treetable structure has changed: both row and column data. |
Object |
getRoot()
Returns the root of the tree. |
boolean |
isAggregate(Object row)
Determines if node is an aggregate row. |
boolean |
isFooter(Object row)
Determines if node is a footer. |
boolean |
isHeader(Object row)
Determines if node is a header. |
void |
removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with addTreeModelListener. |
void |
setRoot(Object newRoot)
Assigns a new root to the model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sciapp.treetable.TreeTableModel |
|---|
getColumnClass, getColumnCount, getColumnName, getValueAt, isCellEditable, setValueAt |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
getChild, getChildCount, getIndexOfChild, isLeaf, valueForPathChanged |
| Field Detail |
|---|
protected EventListenerList listenerList
protected Object root
| Constructor Detail |
|---|
public AbstractTreeTableModel(Object root)
| Method Detail |
|---|
public void addTreeModelListener(TreeModelListener l)
TreeModelEvent
posted after the tree changes.
addTreeModelListener in interface TreeModell - the listener to addTreeModel.removeTreeModelListener(javax.swing.event.TreeModelListener)
public void fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
public void fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
public void fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
public void fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
public Object getRoot()
null
only if the tree has no nodes.
getRoot in interface TreeModelpublic boolean isAggregate(Object row)
node is an aggregate row.
isAggregate in interface TreeTableModelrow - the node to consider
node is an aggregate row, false otherwisepublic boolean isFooter(Object row)
node is a footer.
isFooter in interface TreeTableModelrow - the row to consider
node is a footer, false otherwisepublic boolean isHeader(Object row)
node is a header.
isHeader in interface TreeTableModelrow - the row to query
node is a header, false otherwisepublic void removeTreeModelListener(TreeModelListener l)
addTreeModelListener.
removeTreeModelListener in interface TreeModell - the listener to removeTreeModel.addTreeModelListener(javax.swing.event.TreeModelListener)public void setRoot(Object newRoot)
newRoot - the new root to assignpublic void fireTreeTableStructureChanged()
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.
adapterStructureChange - 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 | ||||||||