public interface TableModelFilter extends Model
TableModel
. You can add
a new column, remmove some existing one, or change content of some existing
column.Modifier and Type | Method and Description |
---|---|
void |
addModelListener(ModelListener l)
Registers given listener.
|
Object |
getValueAt(TableModel original,
Object node,
String columnID)
Returns filterred value to be displayed in column
columnID
and row node . |
boolean |
isReadOnly(TableModel original,
Object node,
String columnID)
Filters original isReadOnly value from given table model.
|
void |
removeModelListener(ModelListener l)
Unregisters given listener.
|
void |
setValueAt(TableModel original,
Object node,
String columnID,
Object value)
Changes a value displayed in column
columnID
and row node . |
Object getValueAt(TableModel original, Object node, String columnID) throws UnknownTypeException
columnID
and row node
. Column ID is defined in by
ColumnModel.getID()
, and rows are defined by values returned from
TreeModel.getChildren(java.lang.Object, int, int)
. You should not throw UnknownTypeException
directly from this method!original
- the original table modelnode
- a object returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
UnknownTypeException
- this exception can be thrown from
original.getValueAt (...)
method call only!boolean isReadOnly(TableModel original, Object node, String columnID) throws UnknownTypeException
original
- the original table modelnode
- a object returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
UnknownTypeException
- this exception can be thrown from
original.isReadOnly (...)
method call only!void setValueAt(TableModel original, Object node, String columnID, Object value) throws UnknownTypeException
columnID
and row node
. Column ID is defined in by
ColumnModel.getID()
, and rows are defined by values returned from
TreeModel.getChildren(java.lang.Object, int, int)
. You should not throw UnknownTypeException
directly from this method!original
- the original table modelnode
- a object returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
value
- a new value of variable on given positionUnknownTypeException
- this exception can be thrown from
original.setValueAt (...)
method call only!void addModelListener(ModelListener l)
l
- the listener to addvoid removeModelListener(ModelListener l)
l
- the listener to remove