|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.japi.swing.treetable.AbstractTreeTableModel<R,T>
public abstract class AbstractTreeTableModel<R,T>
Abstract base implementation of TreeTableModel.
Constructor Summary | |
---|---|
protected |
AbstractTreeTableModel(R root)
Create an AbstractTreeTableModel. |
Method Summary | |
---|---|
void |
addTreeModelListener(TreeModelListener l)
|
protected void |
fireTreeNodesChanged(Object source,
T[] path,
int[] childIndices,
T[] children)
Informs all registered listeners of a change. |
protected void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Informs all registered listeners of an insertion. |
protected void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Informs all registered listeners of a removal. |
protected void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Informs all registered listeners of a structural change. |
Class<?> |
getColumnClass(int column)
Returns the type for column number column . |
int |
getIndexOfChild(T parent,
T child)
|
R |
getRoot()
Returns the root of the treetable. |
boolean |
isCellEditable(T node,
int column)
Indicates whether the the value for node node at column number column is editable. |
boolean |
isLeaf(T node)
Returns if node is a leaf. |
void |
removeTreeModelListener(TreeModelListener l)
|
void |
setValueAt(Object value,
T node,
int column)
Sets the value for node node at column number column . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.japi.swing.treetable.TreeTableModel |
---|
getChild, getChildCount, getColumnCount, getColumnName, getValueAt |
Constructor Detail |
---|
protected AbstractTreeTableModel(R root)
root
- tree root node content objectMethod Detail |
---|
public R getRoot()
getRoot
in interface TreeTableModel<R,T>
public boolean isLeaf(T node)
if node is a leaf.
- Specified by:
isLeaf
in interface TreeTableModel<R,T>
- Parameters:
node
- Node
- Returns:
true
if node is a leaf, otherwise false
public int getIndexOfChild(T parent, T child)
public void addTreeModelListener(TreeModelListener l)
public void removeTreeModelListener(TreeModelListener l)
public Class<?> getColumnClass(int column)
column
.
getColumnClass
in interface TreeTableModel<R,T>
column
- Column to get type for
TableModel.getColumnClass(int)
public boolean isCellEditable(T node, int column)
node
at column number column
is editable.
isCellEditable
in interface TreeTableModel<R,T>
node
- Node to checkcolumn
- Column to check
true
if the cell is editable, otherwise false
TableModel.isCellEditable(int, int)
public void setValueAt(Object value, T node, int column)
node
at column number column
.
setValueAt
in interface TreeTableModel<R,T>
value
- Value to be setnode
- Node to set value atcolumn
- Column of value in the nodeTableModel.setValueAt(Object, int, int)
protected void fireTreeNodesChanged(Object source, T[] path, int[] childIndices, T[] children)
source
- path
- childIndices
- children
- protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
source
- path
- childIndices
- children
- protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
source
- path
- childIndices
- children
- protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
source
- path
- childIndices
- children
-
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |