|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A default table model made up of PropertyModels on a Value model.
Field Summary | |
---|---|
MyTableColumnModel |
columnModel
|
ValueModel |
rowModel
|
ValueModel |
rowsModel
|
Constructor Summary | |
DefaultTableModel(ValueModel rowsModel)
|
|
DefaultTableModel(ValueModel rowsModel, ValueModel rowModel)
|
Method Summary | |
---|---|
DefaultTableColumn |
addClosureColumn(Object headerValue, Closure readClosure, Closure writeClosure, Class type)
Adds a closure based column to the table |
DefaultTableColumn |
addColumn(Object headerValue, ValueModel columnValueModel)
|
void |
addColumn(DefaultTableColumn column)
Adds a new column definition to the table |
DefaultTableColumn |
addPropertyColumn(Object headerValue, String property, Class type)
Adds a property model column to the table |
DefaultTableColumn |
addPropertyColumn(Object headerValue, String property, Class type, boolean editable)
Adds a property model column to the table |
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
List |
getColumnList()
|
TableColumnModel |
getColumnModel()
|
ValueModel |
getColumnModel(int columnIndex)
|
String |
getColumnName(int columnIndex)
|
int |
getRowCount()
|
List |
getRows()
|
Object |
getValueAt(int rowIndex, int columnIndex)
|
boolean |
isCellEditable(int rowIndex, int columnIndex)
|
void |
removeColumn(DefaultTableColumn column)
Removes a column definition from the table |
void |
setValueAt(Object value, int rowIndex, int columnIndex)
|
Constructor Detail |
---|
public DefaultTableModel(ValueModel rowsModel)
public DefaultTableModel(ValueModel rowsModel, ValueModel rowModel)
Method Detail |
---|
public DefaultTableColumn addClosureColumn(Object headerValue, Closure readClosure, Closure writeClosure, Class type)
public DefaultTableColumn addColumn(Object headerValue, ValueModel columnValueModel)
public void addColumn(DefaultTableColumn column)
public DefaultTableColumn addPropertyColumn(Object headerValue, String property, Class type)
public DefaultTableColumn addPropertyColumn(Object headerValue, String property, Class type, boolean editable)
public Class getColumnClass(int columnIndex)
public int getColumnCount()
public List getColumnList()
public TableColumnModel getColumnModel()
ValueModel getColumnModel(int columnIndex)
public String getColumnName(int columnIndex)
public int getRowCount()
List getRows()
public Object getValueAt(int rowIndex, int columnIndex)
public boolean isCellEditable(int rowIndex, int columnIndex)
public void removeColumn(DefaultTableColumn column)
public void setValueAt(Object value, int rowIndex, int columnIndex)