public abstract class FieldsTableModel extends DefaultConfigTableModel
This class might change and is not meant as public API.
Modifier and Type | Class and Description |
---|---|
static class |
FieldsTableModel.Column
The columns of the output table.
|
columnIdentifiers, dataVector
listenerList
Constructor and Description |
---|
FieldsTableModel(String[] columns)
Create a model with the given column names.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
getErrorMessage(int row,
FieldsTableModel.Column column)
Gives the error message when isValidValue(row, column) returns false.
|
String |
getErrorMessage(int row,
int column)
Gives the error message when isValidValue(row, column) returns false.
|
int |
getIndex(FieldsTableModel.Column column)
Get the index of the column.
|
Object |
getValueAt(int row,
FieldsTableModel.Column column)
Returns an attribute value for the cell at
row
and column . |
boolean |
isUnique(Object value,
int row,
FieldsTableModel.Column column,
FieldsTableModel.Column typeColumn)
Checks whether to given value is unique in the given column.
|
abstract boolean |
isValidValue(int row,
FieldsTableModel.Column column)
Test whether the value of the cell defined by row and column is valid.
|
(package private) boolean |
isValidValue(int row,
int column)
Test whether the value of the cell defined by row and column is valid.
|
protected void |
setColumnsMap(Map<FieldsTableModel.Column,Integer> columns)
Fill the mapping of columns to there actual position on the table.
|
void |
setValueAt(Object aValue,
int row,
FieldsTableModel.Column column)
Sets the object value for the cell at
column and
row . |
boolean |
validateValues()
Checks whether the all cell values are valid.
|
boolean |
validateValues(int row)
Checks whether the cell values in the given row are valid.
|
addRow, clear, cloneModel, getColumnName, isCellEditable, removeRows, setColumnName, setTableData
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, getColumnClass, getColumnCount, getRowCount, getValueAt, removeTableModelListener, setValueAt
public FieldsTableModel(String[] columns)
columns
- the column names.protected void setColumnsMap(Map<FieldsTableModel.Column,Integer> columns)
columns
- the columns map to fill.public Object getValueAt(int row, FieldsTableModel.Column column)
row
and column
.row
- the row whose value is to be queriedcolumn
- the column whose value is to be queriedArrayIndexOutOfBoundsException
- if an invalid row or
column was givenpublic void setValueAt(Object aValue, int row, FieldsTableModel.Column column)
column
and
row
. aValue
is the new value. This method
will generate a tableChanged
notification.aValue
- the new value; this can be nullrow
- the row whose value is to be changedcolumn
- the column whose value is to be changedArrayIndexOutOfBoundsException
- if an invalid row or
column was givenpublic int getIndex(FieldsTableModel.Column column)
column
- the columnpublic abstract boolean isValidValue(int row, FieldsTableModel.Column column)
row
- the row index of the cellcolumn
- the column of the cellpublic abstract String getErrorMessage(int row, FieldsTableModel.Column column)
row
- the row index of the cellcolumn
- the column index of the cellboolean isValidValue(int row, int column)
row
- the row index of the cellcolumn
- the column of the cellpublic String getErrorMessage(int row, int column)
row
- the row index of the cellcolumn
- the column index of the cellpublic boolean validateValues(int row)
row
- the row to checkpublic boolean validateValues()
public boolean isUnique(Object value, int row, FieldsTableModel.Column column, FieldsTableModel.Column typeColumn)
value
- the value to checkrow
- the rowcolumn
- the columntypeColumn
- the type column, can be null
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.