public class MustMultChoiceModel extends javax.swing.table.AbstractTableModel implements ModifiedInformer
Constructor and Description |
---|
MustMultChoiceModel(DataObject keyDataObject,
java.lang.String[] fieldNames,
java.lang.String[] columnNames) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getColumnClass(int c) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
int |
getItemCount() |
int |
getRowCount() |
java.lang.String |
getSelectedIdentifierCondition(java.lang.String columnName) |
java.lang.Object |
getValueAt(int row,
int col) |
boolean |
isCellEditable(int row,
int col) |
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
boolean |
isRowModified(int row) |
void |
setColumnName(int col,
java.lang.String columnName) |
void |
setValueAt(java.lang.Object value,
int row,
int col) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public MustMultChoiceModel(DataObject keyDataObject, java.lang.String[] fieldNames, java.lang.String[] columnNames)
keyDataObject
- fieldNames
- columnNames
- public int getItemCount()
public boolean isModified()
ModifiedInformer
isModified
in interface ModifiedInformer
public boolean isRowModified(int row)
row
- public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- public void setColumnName(int col, java.lang.String columnName)
col
- columnName
- public java.lang.Object getValueAt(int row, int col)
getValueAt
in interface javax.swing.table.TableModel
row
- col
- public java.lang.Class<?> getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
c
- public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public java.lang.String getSelectedIdentifierCondition(java.lang.String columnName)
columnName
- Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de