public interface IEditableGridModel extends IGridModel
IGridModel
to be used with EditableGridFlow
.Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel any pending or insert operations, if there are none, nothing happens.
|
boolean |
canRemoveCurrentRow() |
IForm |
edit()
Edit the current row.
|
IForm |
getForm() |
IForm |
insert(java.lang.Object param,
boolean afterCurrentRow) |
boolean |
isCurrentRowEditable() |
boolean |
isEditPending() |
boolean |
isInsertAllowed(java.lang.Object param,
boolean afterCurrentRow) |
boolean |
isInsertPending() |
boolean |
post()
|
boolean |
remove() |
fetchRows, getColumn, getColumnCount, getColumnGroup, getColumnIndex, getColumnName, getCurrentRow, getCurrentRowCount, getRowCount, getValueAt, isCurrentRowFreezed, setCurrentRow, sync
IForm getForm()
boolean isEditPending()
cancel()
to abort the operation.boolean isInsertPending()
cancel()
to abort the operation.boolean isCurrentRowEditable()
boolean canRemoveCurrentRow()
boolean isInsertAllowed(java.lang.Object param, boolean afterCurrentRow)
IForm edit()
IForm insert(java.lang.Object param, boolean afterCurrentRow)
param
- - a generic parameter, the model can use to determine the
type of row to insert.afterCurrentRow
- - false: the object is inserted in place of the current row,
true: it is inserted after the current row.IForm
, it must be the same returned by getForm()
at least until a cancel()
void cancel()
boolean post()
IForm
instance and
the model doesn't exit from the pending insert or edit state.
It is possible for the model to open a message dialog in case of errors
(see FlowContext.modalDialog(net.infordata.ifw2.web.ctrl.IFlowAsDialog, net.infordata.ifw2.web.ctrl.IDialogCallback)
).boolean remove()
FlowContext.modalDialog(net.infordata.ifw2.web.ctrl.IFlowAsDialog, net.infordata.ifw2.web.ctrl.IDialogCallback)
).