|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.service.dashboard.treetable.AbstractTreeTableModel
public abstract class AbstractTreeTableModel
An abstract implementation of the TreeTableModel interface, handling the list of listeners.
Inspired by http://java.sun.com/products/jfc/tsc/articles/treetable1/index.html.
Constructor Summary | |
---|---|
AbstractTreeTableModel(Object root)
|
Method Summary | |
---|---|
void |
addTreeModelListener(TreeModelListener l)
|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.biomoby.service.dashboard.treetable.TreeTableModel |
---|
getColumnCount, getColumnName, getValueAt |
Methods inherited from interface javax.swing.tree.TreeModel |
---|
getChild, getChildCount |
Constructor Detail |
---|
public AbstractTreeTableModel(Object root)
Method Detail |
---|
public Object getRoot()
getRoot
in interface TreeModel
public 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 TreeModel
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
public Class getColumnClass(int column)
TreeTableModel
column
.
getColumnClass
in interface TreeTableModel
public boolean isCellEditable(Object node, int column)
isCellEditable
in interface TreeTableModel
public void setValueAt(Object aValue, Object node, int column)
TreeTableModel
node
,
at column number column
.
setValueAt
in interface TreeTableModel
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |