public class DataTableModel extends IdentifyTableModel
DataTableAdministration
,
Serialized FormcolumnNames, data, delMark, fieldInis, fieldNames, fieldTypes, identifier, lastModifiedRow, locale, order, oriData
Constructor and Description |
---|
DataTableModel(java.util.Locale locale,
DataObject dO,
java.lang.String[] fieldNames,
java.lang.String[] columnNames)
Constructs a new data table model.
|
DataTableModel(java.util.Locale locale,
DataObject dO,
java.lang.String[] fieldNames,
java.lang.String[] columnNames,
int sortIndexNbr)
Constructs a new data table model.
|
DataTableModel(java.util.Locale locale,
DataObject dO,
java.lang.String[] fieldNames,
java.lang.String[] columnNames,
java.lang.String order)
Constructs a new data table model.
|
Modifier and Type | Method and Description |
---|---|
DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
void |
init(int rows)
Initializes the data arrays with the specified row capacity.
|
void |
loadValues(java.lang.String filterCondition)
Loads values from database.
|
boolean |
saveValues()
Saves the edited entries.
|
void |
setCallbackBeforeSaving(Callback callbackBeforeSaving) |
getColumnClass, getColumnCount, getColumnName, getIdentifier, getLastModifiedRow, getRowCount, getTranslation, getValueAt, isCellEditable, isInputAccepted, isMarkedForDeletion, isModified, isRowModified, isToDelete, markForDeletion, setColumnName, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public DataTableModel(java.util.Locale locale, DataObject dO, java.lang.String[] fieldNames, java.lang.String[] columnNames)
dO
- the assigned data objectfieldNames
- the grid field names = database column namescolumnNames
- the grid column names = database column labelspublic DataTableModel(java.util.Locale locale, DataObject dO, java.lang.String[] fieldNames, java.lang.String[] columnNames, int sortIndexNbr)
dO
- the assigned data objectfieldNames
- the grid field names = database column namescolumnNames
- the grid column names = database column labelssortIndexNbr
- the number of the database index to be used for sortingpublic DataTableModel(java.util.Locale locale, DataObject dO, java.lang.String[] fieldNames, java.lang.String[] columnNames, java.lang.String order)
dO
- the assigned data objectfieldNames
- the grid field names = database column namescolumnNames
- the grid column names = database column labelsorder
- the fields for the order by clausepublic void init(int rows)
rows
- the row capacitypublic void setCallbackBeforeSaving(Callback callbackBeforeSaving)
public DataObject getAssignedDataObject()
public void loadValues(java.lang.String filterCondition)
filterCondition
- the content's filter condition - may be null.public boolean saveValues()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de