|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.treetable.NodeChildrenTable
Class to map the children of a particular node in a
JCTreeTableModel
into a standard Swing TableModel
.
Field Summary | |
protected com.klg.jclass.util.JCListenerList |
listeners
|
protected TreePath |
path
|
protected com.klg.jclass.util.treetable.JCTreeTableModel |
treetable
|
Constructor Summary | |
NodeChildrenTable(com.klg.jclass.util.treetable.JCTreeTableModel treetable)
Creates a NodeChildrenTable based on the specified treetable. |
|
NodeChildrenTable(com.klg.jclass.util.treetable.JCTreeTableModel treetable,
TreePath path)
Creates a NodeChildrenTable based on the specified treetable and
parent node. |
Method Summary | |
void |
addTableModelListener(TableModelListener l)
Adds a standard table model listener. |
Class |
getColumnClass(int column)
|
int |
getColumnCount()
|
String |
getColumnName(int column)
|
TreePath |
getParentPath()
Returns the path of the parent node. |
int |
getRowCount()
|
Object |
getValueAt(int row,
int column)
|
boolean |
isCellEditable(int row,
int column)
|
boolean |
isLeaf(int row)
Return whether the specified row in the TableModel
mapping is a Leaf or not. |
void |
removeTableModelListener(TableModelListener l)
Removes the table model listener |
void |
setParentPath(TreePath path)
Sets the path of the node whose children are to be mapped into TableModel . |
void |
setValueAt(Object value,
int row,
int column)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.util.JCListenerList listeners
protected TreePath path
protected com.klg.jclass.util.treetable.JCTreeTableModel treetable
Constructor Detail |
public NodeChildrenTable(com.klg.jclass.util.treetable.JCTreeTableModel treetable)
NodeChildrenTable
based on the specified treetable.
Note that the parent node must be set before this model is
considered "non-empty"
treetable
- The tree table modelsetParentPath(javax.swing.tree.TreePath)
public NodeChildrenTable(com.klg.jclass.util.treetable.JCTreeTableModel treetable, TreePath path)
NodeChildrenTable
based on the specified treetable and
parent node. To change the parent node call setParentPath()
.
treetable
- The tree table modelpath
- The parent path nodeMethod Detail |
public TreePath getParentPath()
public void setParentPath(TreePath path)
TableModel
.
path
- The new parent path nodepublic boolean isLeaf(int row)
TableModel
mapping is a Leaf or not.
row
- The row to check
public void addTableModelListener(TableModelListener l)
addTableModelListener
in interface TableModel
l
- The listener to addpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
l
- The listener to removepublic Class getColumnClass(int column)
getColumnClass
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
public void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |