|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.treetable.AbstractTreeTableModel
public abstract class AbstractTreeTableModel
An abstract implementation of the TreeTableModel interface, handling the list of listeners.
| Field Summary | |
|---|---|
protected EventListenerList |
listenerList
The list of event listeners for this tree table model. |
protected Object |
root
The tree root. |
| Constructor Summary | |
|---|---|
AbstractTreeTableModel(Object root)
Initialize this model with the specified tree root. |
|
| Method Summary | |
|---|---|
void |
addTreeModelListener(TreeModelListener l)
|
protected void |
fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for notification on this event type. |
Class |
getColumnClass(int column)
Returns the type for column number column. |
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
|
boolean |
isCellEditable(Object node,
int column)
By default, make the column with the Tree in it the only editable one. |
boolean |
isLeaf(Object node)
|
void |
removeTreeModelListener(TreeModelListener l)
|
void |
setValueAt(Object aValue,
Object node,
int column)
Sets the value for node node, at column number column. |
void |
valueForPathChanged(TreePath path,
Object newValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jppf.ui.treetable.TreeTableModel |
|---|
getColumnCount, getColumnName, getValueAt |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
getChild, getChildCount |
| Field Detail |
|---|
protected Object root
protected EventListenerList listenerList
| Constructor Detail |
|---|
public AbstractTreeTableModel(Object root)
root - the root of the tree.| Method Detail |
|---|
public Object getRoot()
getRoot in interface TreeModelpublic boolean isLeaf(Object node)
isLeaf in interface TreeModel
public void valueForPathChanged(TreePath path,
Object newValue)
valueForPathChanged in interface TreeModel
public int getIndexOfChild(Object parent,
Object child)
getIndexOfChild in interface TreeModelpublic void addTreeModelListener(TreeModelListener l)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener in interface TreeModel
protected void fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
source - the source of the event.path - the path of the parent node whose children have changed.childIndices - the indices of the children that changed.children - an array of the children that changed.EventListenerList
protected void fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
source - the source of the event.path - the path of the parent node whose children have changed.childIndices - the indices of the children that were inserted.children - an array of the children that were inserted.EventListenerList
protected void fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
source - the source of the event.path - the path of the parent node whose children have changed.childIndices - the indices of the children that were removed.children - an array of the children that were removed.EventListenerList
protected void fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
source - the source of the event.path - the path of the parent node whose children have changed.childIndices - the indices of the children that have changed.children - an array of the children that chnaged.EventListenerListpublic Class getColumnClass(int column)
column.
getColumnClass in interface TreeTableModelcolumn - the column number.
public boolean isCellEditable(Object node,
int column)
node, at column number column is editable.
isCellEditable in interface TreeTableModelnode - the node to check.column - the column where the value is.
public void setValueAt(Object aValue,
Object node,
int column)
node, at column number column.
setValueAt in interface TreeTableModelaValue - the value to set.node - the node for which to set the value.column - the column where the value is to be set.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||