|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.table.AbstractTableModel
net.sf.jzeno.echo.databinding.BoundTableModel
net.sf.jzeno.echo.databinding.EditableBoundTableModel
public class EditableBoundTableModel
Table model which will generically create editors and viewers based upon the ConstructionList encapsulated in the DynaTable. When a row is selected in the table the editors will be rendered for this row, all other rows will be rendered using the viewers as assigned by the construction list. It is configurable to add an extra column containing a cancel button when editing a row. It is configurable to allow standard add functionallity.
Field Summary |
---|
Fields inherited from class nextapp.echo.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
EditableBoundTableModel(DynaTable table,
ConstructionList cl)
|
Method Summary | |
---|---|
void |
addNew(java.lang.Object newBean)
Make the given java bean editable, and remove it on cancel. |
void |
apply()
Apply current changes, and exit edit mode. |
void |
cancel()
reset editor values with original values or cancel add operation. |
void |
edit(java.lang.Object editable)
Make the row, corresponding to the given java bean editable. |
java.lang.Object |
getEditable()
|
java.lang.Object |
getValueAt(int column,
int row)
Returns the value found at the given coordinate within the table. |
boolean |
isRowEditable(int row)
When a table model supports editing of data, this method will be called to query if a row is currently editable. |
void |
markValid()
|
void |
setConstructionList(ConstructionList cl)
|
Methods inherited from class net.sf.jzeno.echo.databinding.BoundTableModel |
---|
actionPerformed, clearComponentCaches, getColumnClass, getColumnCount, getColumnName, getConstructionList, getCopiedValueAt, getRowCount, getTable, hasCopiedValueAt, updateComponentCaches, updateTable |
Methods inherited from class nextapp.echo.table.AbstractTableModel |
---|
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nextapp.echo.event.ActionListener |
---|
actionPerformed |
Constructor Detail |
---|
public EditableBoundTableModel(DynaTable table, ConstructionList cl)
Method Detail |
---|
public java.lang.Object getValueAt(int column, int row)
TableModel
getValueAt
in interface TableModel
getValueAt
in class BoundTableModel
column
- The column of the value to return.row
- The row of the value to return.TableModel.getValueAt(int, int)
public java.lang.Object getEditable()
public void edit(java.lang.Object editable)
Make the row, corresponding to the given java bean editable.
public void cancel()
public void apply()
Apply current changes, and exit edit mode.
public void addNew(java.lang.Object newBean)
Make the given java bean editable, and remove it on cancel.
public boolean isRowEditable(int row)
TableModel
When a table model supports editing of data, this method will be called to query if a row is currently editable.
isRowEditable
in interface TableModel
isRowEditable
in class AbstractTableModel
public void markValid()
markValid
in class BoundTableModel
public void setConstructionList(ConstructionList cl)
setConstructionList
in class BoundTableModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |