public class CtrlPropModel extends AbstractTableModel implements TableModel
Constructor and Description |
---|
CtrlPropModel(DBase component) |
Modifier and Type | Method and Description |
---|---|
void |
createProperties(DBase cl)
Given a GUI control object make a Property object for
each public field that starts with an underscore.
|
int |
getColumnCount() |
String |
getColumnName(int col) |
Property |
getPropertyAt(int row) |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
hasBeenChanged() |
boolean |
isCellEditable(int row,
int col) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
This must be used when changing the value in a field to ensure an event
is generated to be caught and display in the GUI table
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, getColumnClass, removeTableModelListener
public CtrlPropModel(DBase component)
public void createProperties(DBase cl)
cl
- public int getColumnCount()
getColumnCount
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public Property getPropertyAt(int row)
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void hasBeenChanged()
Processing tool G4PTool by Peter Lager. (C) 2015