com.sencha.gxt.widget.core.client.grid.editing
Class GridRowEditing<M>

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.grid.editing.AbstractGridEditing<M>
      extended by com.sencha.gxt.widget.core.client.grid.editing.GridRowEditing<M>
Type Parameters:
M - the model type
All Implemented Interfaces:
HasHandlers, BeforeStartEditEvent.HasBeforeStartEditHandlers<M>, CancelEditEvent.HasCancelEditHandlers<M>, CompleteEditEvent.HasCompleteEditHandlers<M>, StartEditEvent.HasStartEditHandlers<M>, GridEditing<M>

public class GridRowEditing<M>
extends AbstractGridEditing<M>

Displays an editor for all cells in a row and allows all fields in row to be edited at the same time.


Nested Class Summary
 class GridRowEditing.DefaultRowEditorMessages
           
static interface GridRowEditing.RowEditorAppearance
           
static interface GridRowEditing.RowEditorMessages
           
 
Constructor Summary
GridRowEditing(Grid<M> editableGrid)
          Creates a new row editing instance.
 
Method Summary
 void cancelEditing()
          Cancels an active edit.
 void completeEditing()
          Completes the active edit.
 GridRowEditing.RowEditorMessages getMessages()
          Returns the row editor messages.
 int getMonitorPoll()
          Returns the interval that the row editor is validated.
 void setEditableGrid(Grid<M> editableGrid)
          Sets the target grid to be edited.
 void setMessages(GridRowEditing.RowEditorMessages messages)
          Sets the row editor messages.
 void setMonitorPoll(int monitorPoll)
          Sets the polling interval that the row editor validation is run (defaults to 200).
 void setMonitorValid(boolean monitorValid)
          True to monitor the valid status of this row editor (defaults to true).
 void startEditing(Grid.GridCell cell)
          Starts editing for the given cell.
 
Methods inherited from class com.sencha.gxt.widget.core.client.grid.editing.AbstractGridEditing
addBeforeStartEditHandler, addCancelEditHandler, addCompleteEditHandler, addEditor, addEditor, addStartEditHandler, clearEditors, fireEvent, getActiveCell, getClicksToEdit, getConverter, getEditableGrid, getEditor, isEditing, removeEditor, setClicksToEdit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridRowEditing

public GridRowEditing(Grid<M> editableGrid)
Creates a new row editing instance.

Parameters:
editableGrid - the target grid
Method Detail

cancelEditing

public void cancelEditing()
Description copied from interface: GridEditing
Cancels an active edit.

Specified by:
cancelEditing in interface GridEditing<M>
Specified by:
cancelEditing in class AbstractGridEditing<M>

completeEditing

public void completeEditing()
Description copied from interface: GridEditing
Completes the active edit.

Specified by:
completeEditing in interface GridEditing<M>
Specified by:
completeEditing in class AbstractGridEditing<M>

getMessages

public GridRowEditing.RowEditorMessages getMessages()
Returns the row editor messages.

Returns:
the messages

getMonitorPoll

public int getMonitorPoll()
Returns the interval that the row editor is validated.

Returns:
the interval in ms

setEditableGrid

public void setEditableGrid(Grid<M> editableGrid)
Description copied from interface: GridEditing
Sets the target grid to be edited.

Specified by:
setEditableGrid in interface GridEditing<M>
Overrides:
setEditableGrid in class AbstractGridEditing<M>
Parameters:
editableGrid - the editable grid

setMessages

public void setMessages(GridRowEditing.RowEditorMessages messages)
Sets the row editor messages.

Parameters:
messages - the messages

setMonitorPoll

public void setMonitorPoll(int monitorPoll)
Sets the polling interval that the row editor validation is run (defaults to 200).

Parameters:
monitorPoll - the polling interval in ms in that validation is done

setMonitorValid

public void setMonitorValid(boolean monitorValid)
True to monitor the valid status of this row editor (defaults to true).

Parameters:
monitorValid - true to monitor this row editor

startEditing

public void startEditing(Grid.GridCell cell)
Description copied from interface: GridEditing
Starts editing for the given cell.

Specified by:
startEditing in interface GridEditing<M>
Specified by:
startEditing in class AbstractGridEditing<M>
Parameters:
cell - the cell


Copyright © 2012. All Rights Reserved.