public abstract class AbstractTableModel
- Object
- AbstractTableModel
ImplementsTableModel
Known subtypesUiBinding.BoundTableModel, DefaultTableModel, SortableTableModel
This abstract class extends table model with various capabilities such
as type information etc.
Constructors
public AbstractTableModel() |
Methods
public Class getCellType(int row, int column) | Allows the table to hint the class type of a specific cell |
public Constraint getValidationConstraint(int row, int column) | If the cell has a validation constraint it’s returned here |
public String[] getMultipleChoiceOptions(int row, int column) | Allows the table cell to feature multiple choice for a specific entry |
public Validator getValidator() | A validator can be defined here so a validation constraint can bind to a table model cell |
public void setValidator(Validator validator) | A validator can be defined here so a validation constraint can bind to a table model cell |
Inherited methods
Constructor details
AbstractTableModel
public AbstractTableModel()Method details
getCellType
public Class getCellType(int row, int column)Allows the table to hint the class type of a specific cell
Parameters
rowint- the row in the table
columnint- the column
Returns
the class representing this cell
getValidationConstraint
public Constraint getValidationConstraint(int row, int column)If the cell has a validation constraint it’s returned here
Parameters
rowint- the row
columnint- the column for the cell
Returns
null for no constraints
getMultipleChoiceOptions
public String[] getMultipleChoiceOptions(int row, int column)Allows the table cell to feature multiple choice for a specific entry
Parameters
rowint- the row in the table
columnint- the column
Returns
the string values matching the entries or null if this isn’t a multiple
choice option
getValidator
public Validator getValidator()A validator can be defined here so a validation constraint can bind to a table model cell
Returns
the validator
setValidator
public void setValidator(Validator validator)A validator can be defined here so a validation constraint can bind to a table model cell
Parameters
validatorValidator- the validator to set