public class NodeTableModelAdapter<T>
extends java.lang.Object
implements javax.swing.table.TableModel
Constructor and Description |
---|
NodeTableModelAdapter(TreeTableModel treeTableModel,
T node) |
Modifier and Type | Method and Description |
---|---|
void |
addTableModelListener(javax.swing.event.TableModelListener listener) |
java.lang.Object |
getChildNodeAtRow(int rowIndex) |
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex) |
T |
getNode() |
NodeTableModelAdapter |
getNodeTableModelForChild(int row) |
int |
getRowCount() |
TreeTableModel |
getTreeTableModel() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isExpandable(int row) |
void |
removeTableModelListener(javax.swing.event.TableModelListener listener) |
void |
setNode(T node) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
public NodeTableModelAdapter(TreeTableModel treeTableModel, T node)
public boolean isExpandable(int row)
public NodeTableModelAdapter getNodeTableModelForChild(int row)
row
- public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
public java.lang.Object getChildNodeAtRow(int rowIndex)
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
public void addTableModelListener(javax.swing.event.TableModelListener listener)
addTableModelListener
in interface javax.swing.table.TableModel
public void removeTableModelListener(javax.swing.event.TableModelListener listener)
removeTableModelListener
in interface javax.swing.table.TableModel
public T getNode()
public final TreeTableModel getTreeTableModel()
public final void setNode(T node)