WTable
and AbstractTableModel
instead.@Deprecated public abstract class AbstractTreeTableDataModel extends Object implements TreeTableDataModel, Serializable
TreeTableDataModel
interface. This implementation does not support editing,
row selection, filtering etc. In this implementation, the root node is never used.Constructor and Description |
---|
AbstractTreeTableDataModel(TableTreeNode root)
Deprecated.
Creates a SimpleTableDataModel containing the given data.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getFilterValues(int row)
Deprecated.
This model does not support the concept of row filtering by default.
|
TableTreeNode |
getNodeAtLine(int row)
Deprecated.
Returns the node at the given line.
|
protected TableTreeNode |
getRootNode()
Deprecated.
|
int |
getRowCount()
Deprecated.
Retrieves the number of rows in the model.
|
String |
getRowHeader(int row)
Deprecated.
Row header text is not used by default.
|
Object |
getValueAt(int row,
int col)
Deprecated.
Retrieves the value at the given row and column.
|
boolean |
isCellEditable(int row,
int col)
Deprecated.
This model does not support the concept of editable cells by default.
|
boolean |
isDisabled(int row)
Deprecated.
This model does not support the concept of row disabling by default.
|
boolean |
isSelectable(int row)
Deprecated.
This model does not support the concept of row selectability by default.
|
boolean |
isSortable(int col)
Deprecated.
This model does not support the concept of sorting by default.
|
void |
setValueAt(Object value,
int row,
int col)
Deprecated.
This model does not support the concept of editable cells by default.
|
int[] |
sort(int col,
boolean ascending)
Deprecated.
This model does not support the concept of sorting by default.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueAt
public AbstractTreeTableDataModel(TableTreeNode root)
Creates a SimpleTableDataModel containing the given data. Note that applications may wish to create their own TableTreeNode extensions that dynamically load data on e.g. the first call to setExpanded(true) .
root
- the root node for the table. Must not be null.public final TableTreeNode getNodeAtLine(int row)
getNodeAtLine
in interface TreeTableDataModel
row
- the row index.public final int getRowCount()
getRowCount
in interface TableDataModel
public final Object getValueAt(int row, int col)
TreeTableDataModel.getValueAt(TableTreeNode, int)
, which subclasses must implement.getValueAt
in interface TableDataModel
row
- the row indexcol
- the column index.public String getRowHeader(int row)
getRowHeader
in interface TableDataModel
row
- ignored.public int[] sort(int col, boolean ascending)
isSortable(int)
to support sorting.sort
in interface TableDataModel
col
- ignored.ascending
- ignored.public void setValueAt(Object value, int row, int col)
isCellEditable(int, int)
to support cell editing.setValueAt
in interface TableDataModel
value
- ignored.row
- ignored.col
- ignored.public boolean isSortable(int col)
sort(int, boolean)
to support sorting.isSortable
in interface TableDataModel
col
- ignored.public boolean isDisabled(int row)
isDisabled
in interface TableDataModel
row
- ignored.public boolean isSelectable(int row)
isSelectable
in interface TableDataModel
row
- ignored.public boolean isCellEditable(int row, int col)
setValueAt(Object, int, int)
to support cell editing.isCellEditable
in interface TableDataModel
row
- ignored.col
- ignored.public List<String> getFilterValues(int row)
getFilterValues
in interface TableDataModel
row
- ignored.protected TableTreeNode getRootNode()
Copyright © 2021. All rights reserved.