com.gwtext.client.widgets.grid.event
Class EditorGridListenerAdapter
java.lang.Object
com.gwtext.client.widgets.grid.event.EditorGridListenerAdapter
- All Implemented Interfaces:
- EditorGridListener
public class EditorGridListenerAdapter
- extends java.lang.Object
- implements EditorGridListener
|
Method Summary |
boolean |
doBeforeEdit(GridPanel grid,
Record record,
java.lang.String field,
java.lang.Object value,
int rowIndex,
int colIndex)
Fires before cell editing is triggered. |
boolean |
doValidateEdit(GridPanel grid,
Record record,
java.lang.String field,
java.lang.Object value,
java.lang.Object originalValue,
int rowIndex,
int colIndex)
Fires after a cell is edited, but before the value is set in the record. |
void |
onAfterEdit(GridPanel grid,
Record record,
java.lang.String field,
java.lang.Object newValue,
java.lang.Object oldValue,
int rowIndex,
int colIndex)
Fires after a cell is edited. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorGridListenerAdapter
public EditorGridListenerAdapter()
onAfterEdit
public void onAfterEdit(GridPanel grid,
Record record,
java.lang.String field,
java.lang.Object newValue,
java.lang.Object oldValue,
int rowIndex,
int colIndex)
- Description copied from interface:
EditorGridListener
- Fires after a cell is edited.
- Specified by:
onAfterEdit in interface EditorGridListener
- Parameters:
grid - thisrecord - the record being editedfield - the field name being editednewValue - the value being setoldValue - the original value for the field, before the edit.rowIndex - the grid row indexcolIndex - the grid column index
doBeforeEdit
public boolean doBeforeEdit(GridPanel grid,
Record record,
java.lang.String field,
java.lang.Object value,
int rowIndex,
int colIndex)
- Description copied from interface:
EditorGridListener
- Fires before cell editing is triggered.
- Specified by:
doBeforeEdit in interface EditorGridListener
- Parameters:
grid - This gridrecord - the record being editedfield - the field name being editedvalue - the value for the field being editedrowIndex - the grid row indexcolIndex - the grid column index
- Returns:
- false to cancel the edit
doValidateEdit
public boolean doValidateEdit(GridPanel grid,
Record record,
java.lang.String field,
java.lang.Object value,
java.lang.Object originalValue,
int rowIndex,
int colIndex)
- Description copied from interface:
EditorGridListener
- Fires after a cell is edited, but before the value is set in the record. Return false to cancel the change.
- Specified by:
doValidateEdit in interface EditorGridListener
- Parameters:
grid - thisrecord - the record being editedfield - the field name being editedvalue - the value being setoriginalValue - the original value for the field, before the editrowIndex - the grid row indexcolIndex - the grid column index
- Returns:
- false to cancel the change