M
- the model typepublic interface GridEditing<M> extends BeforeStartEditEvent.HasBeforeStartEditHandlers<M>, StartEditEvent.HasStartEditHandlers<M>, CompleteEditEvent.HasCompleteEditHandlers<M>, CancelEditEvent.HasCancelEditHandlers<M>
GridInlineEditing
,
GridRowEditing
Modifier and Type | Method and Description |
---|---|
<N,O> void |
addEditor(ColumnConfig<M,N> columnConfig,
Converter<N,O> converter,
IsField<O> field)
Adds an editor for the given column.
|
<N> void |
addEditor(ColumnConfig<M,N> columnConfig,
IsField<N> field)
Adds an editor for the given column.
|
void |
cancelEditing()
Cancels an active edit.
|
void |
completeEditing()
Completes the active edit.
|
<N,O> Converter<N,O> |
getConverter(ColumnConfig<M,N> columnConfig)
Returns the converter for the given column.
|
Grid<M> |
getEditableGrid()
Returns the target grid.
|
<O> IsField<O> |
getEditor(ColumnConfig<M,?> columnConfig)
Returns the editor for the given column.
|
boolean |
isEditing()
Returns true if editing is active.
|
void |
removeEditor(ColumnConfig<M,?> columnConfig)
Removes the editor for the given column.
|
void |
setEditableGrid(Grid<M> editableGrid)
Sets the target grid to be edited.
|
void |
startEditing(Grid.GridCell cell)
Starts editing for the given cell.
|
addBeforeStartEditHandler
addStartEditHandler
addCompleteEditHandler
addCancelEditHandler
<N,O> void addEditor(ColumnConfig<M,N> columnConfig, Converter<N,O> converter, IsField<O> field)
N
- the column data typeO
- the field data typecolumnConfig
- the column configconverter
- the converterfield
- the field<N> void addEditor(ColumnConfig<M,N> columnConfig, IsField<N> field)
N
- the column data typecolumnConfig
- the column configfield
- the fieldvoid cancelEditing()
void completeEditing()
<N,O> Converter<N,O> getConverter(ColumnConfig<M,N> columnConfig)
N
- the column data typeO
- the field data typecolumnConfig
- the column config<O> IsField<O> getEditor(ColumnConfig<M,?> columnConfig)
O
- the field data typecolumnConfig
- the column configboolean isEditing()
void removeEditor(ColumnConfig<M,?> columnConfig)
columnConfig
- the column configvoid setEditableGrid(Grid<M> editableGrid)
editableGrid
- the editable gridvoid startEditing(Grid.GridCell cell)
cell
- the cellCopyright © 2018. All rights reserved.