M
- the model typepublic class GridInlineEditing<M> extends AbstractGridEditing<M>
Modifier and Type | Class and Description |
---|---|
protected class |
GridInlineEditing.GridEditingKeyNav |
AbstractGridEditing.AbstractGridEditingKeyNav, AbstractGridEditing.Handler
Modifier and Type | Field and Description |
---|---|
protected boolean |
activeEdit |
protected GroupingHandlerRegistration |
fieldRegistration |
protected boolean |
ignoreScroll |
protected boolean |
rowUpdated |
activeCell, bound, callback, columnModel, converterMap, editableGrid, editorMap, groupRegistration, handler, keyNav, lastValid, monitorTimer, tooltip
Constructor and Description |
---|
GridInlineEditing(Grid<M> editableGrid) |
Modifier and Type | Method and Description |
---|---|
void |
cancelEditing()
Cancels an active edit.
|
void |
completeEditing()
Completes the active edit.
|
protected <N,O> void |
doCompleteEditing() |
protected void |
doFocus(IsWidget field) |
protected <N,O> void |
doStartEditing(Grid.GridCell cell) |
protected KeyNav |
ensureInternalKeyNav() |
protected SafeHtml |
getErrorHtml() |
protected <N,O> void |
handleHeaderMouseDown(HeaderMouseDownEvent event) |
boolean |
isRevertInvalid()
Returns
true of the editor reverts the value to the start value on invalid. |
protected boolean |
isValid() |
protected void |
onEnter(NativeEvent evt) |
protected void |
onEsc(NativeEvent evt) |
protected void |
onMouseDown(MouseDownEvent event) |
protected void |
onMouseUp(MouseUpEvent event) |
protected void |
onScroll(ScrollEvent event) |
protected void |
onTab(NativeEvent evt) |
void |
setRevertInvalid(boolean revertInvalid)
True to automatically revert the field value and cancel the edit when the user completes an edit and the field
validation fails (defaults to
false ). |
protected void |
showTooltip(SafeHtml msg) |
void |
startEditing(Grid.GridCell cell)
Starts editing for the given cell.
|
addBeforeStartEditHandler, addCancelEditHandler, addCompleteEditHandler, addEditor, addEditor, addStartEditHandler, bindHandler, clearEditors, ensureHandlers, ensureInternHandler, findCell, fireEvent, focusCell, focusGrid, getActiveCell, getClicksToEdit, getConverter, getEditableGrid, getEditor, getErrorMessage, getMonitorPoll, handleDoubleEdit, handleSingleEdit, hideTooltip, isEditing, isErrorSummary, isMonitorValid, onAttachOrDetach, onClick, onDoubleClick, onReconfigure, removeEditor, setClicksToEdit, setEditableGrid, setErrorSummary, setMonitorPoll, setMonitorValid, startMonitoring, stopMonitoring
protected GroupingHandlerRegistration fieldRegistration
protected boolean ignoreScroll
protected boolean activeEdit
protected boolean rowUpdated
public void cancelEditing()
GridEditing
cancelEditing
in interface GridEditing<M>
cancelEditing
in class AbstractGridEditing<M>
public void completeEditing()
GridEditing
completeEditing
in interface GridEditing<M>
completeEditing
in class AbstractGridEditing<M>
public boolean isRevertInvalid()
true
of the editor reverts the value to the start value on invalid.public void setRevertInvalid(boolean revertInvalid)
false
).revertInvalid
- true to revertpublic void startEditing(Grid.GridCell cell)
GridEditing
startEditing
in interface GridEditing<M>
startEditing
in class AbstractGridEditing<M>
cell
- the cellprotected <N,O> void doCompleteEditing()
protected void doFocus(IsWidget field)
protected <N,O> void doStartEditing(Grid.GridCell cell)
protected KeyNav ensureInternalKeyNav()
ensureInternalKeyNav
in class AbstractGridEditing<M>
protected SafeHtml getErrorHtml()
getErrorHtml
in class AbstractGridEditing<M>
protected <N,O> void handleHeaderMouseDown(HeaderMouseDownEvent event)
handleHeaderMouseDown
in class AbstractGridEditing<M>
protected boolean isValid()
isValid
in class AbstractGridEditing<M>
protected void onEnter(NativeEvent evt)
onEnter
in class AbstractGridEditing<M>
protected void onEsc(NativeEvent evt)
onEsc
in class AbstractGridEditing<M>
protected void onMouseDown(MouseDownEvent event)
onMouseDown
in class AbstractGridEditing<M>
protected void onMouseUp(MouseUpEvent event)
onMouseUp
in class AbstractGridEditing<M>
protected void onScroll(ScrollEvent event)
onScroll
in class AbstractGridEditing<M>
protected void onTab(NativeEvent evt)
protected void showTooltip(SafeHtml msg)
showTooltip
in class AbstractGridEditing<M>
Copyright © 2018. All rights reserved.