|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.swing.treetable.AbstractTreeTableModel
An abstract implementation of the TreeTableModel interface, handling the list of listeners.
Field Summary | |
protected EventListenerList |
listenerList
|
protected Object |
root
|
Constructor Summary | |
AbstractTreeTableModel(Object root)
|
Method Summary | |
void |
addTreeModelListener(TreeModelListener l)
|
protected void |
fireTreeNodesChanged(Object source,
TreePath path,
int[] childIndices,
Object[] children)
|
protected void |
fireTreeNodesInserted(Object source,
TreePath path,
int[] childIndices,
Object[] children)
|
protected void |
fireTreeNodesRemoved(Object source,
TreePath path,
int[] childIndices,
Object[] children)
|
protected void |
fireTreeStructureChanged(Object source,
TreePath path,
int[] childIndices,
Object[] children)
|
Class |
getColumnClass(int column)
Returns the type for column number column . |
int |
getIndexOfChild(Object parent,
Object child)
|
Object |
getRoot()
|
abstract Object |
getValueAt(Object node,
int column)
|
Object |
getValueAt(TreePath path,
int column)
Returns the value to be displayed for node node ,
at column number column . |
boolean |
isCellEditable(Object node,
int column)
By default, make the column with the Tree in it the only editable one. |
boolean |
isCellEditable(TreePath path,
int column)
Indicates whether the the value for node node ,
at column number column is editable. |
boolean |
isLeaf(Object node)
|
void |
removeTreeModelListener(TreeModelListener l)
|
void |
setValueAt(Object aValue,
Object node,
int column)
|
void |
setValueAt(Object aValue,
TreePath path,
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.freehep.swing.treetable.TreeTableModel |
getColumnCount, getColumnName |
Methods inherited from interface javax.swing.tree.TreeModel |
getChild, getChildCount |
Field Detail |
protected EventListenerList listenerList
protected Object root
Constructor Detail |
public AbstractTreeTableModel(Object root)
Method Detail |
public boolean isCellEditable(Object node, int column)
public boolean isCellEditable(TreePath path, int column)
TreeTableModel
node
,
at column number column
is editable.
isCellEditable
in interface TreeTableModel
public Class getColumnClass(int column)
TreeTableModel
column
.
getColumnClass
in interface TreeTableModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public boolean isLeaf(Object node)
isLeaf
in interface TreeModel
public Object getRoot()
getRoot
in interface TreeModel
public void setValueAt(Object aValue, Object node, int column)
public void setValueAt(Object aValue, TreePath path, int column)
TreeTableModel
node
,
at column number column
.
setValueAt
in interface TreeTableModel
public Object getValueAt(TreePath path, int column)
TreeTableModel
node
,
at column number column
.
getValueAt
in interface TreeTableModel
public abstract Object getValueAt(Object node, int column)
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
protected void fireTreeNodesChanged(Object source, TreePath path, int[] childIndices, Object[] children)
protected void fireTreeNodesInserted(Object source, TreePath path, int[] childIndices, Object[] children)
protected void fireTreeNodesRemoved(Object source, TreePath path, int[] childIndices, Object[] children)
protected void fireTreeStructureChanged(Object source, TreePath path, int[] childIndices, Object[] children)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |