com.extjs.gxt.ui.client.widget.grid
Class EditorSupport<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.grid.EditorSupport<M>

public class EditorSupport<M extends ModelData>
extends java.lang.Object


Constructor Summary
EditorSupport()
           
 
Method Summary
 void bind(Grid grid)
           
 void doRender()
           
 CellEditor getActiveEditor()
           
 EditorGrid.ClicksToEdit getClicksToEdit()
          Returns the clicks to edit.
 boolean isEditing()
          Returns true if editing is active.
 boolean onDoubleClick(GridEvent<M> e)
           
 void setClicksToEdit(EditorGrid.ClicksToEdit clicksToEdit)
          Sets the number of clicks to edit (defaults to ONE).
 void startEditing(int row, int col)
           
 void stopEditing()
           
 void stopEditing(boolean cancel)
          Stops any active editing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorSupport

public EditorSupport()
Method Detail

bind

public void bind(Grid grid)

doRender

public void doRender()

getActiveEditor

public CellEditor getActiveEditor()

getClicksToEdit

public EditorGrid.ClicksToEdit getClicksToEdit()
Returns the clicks to edit.

Returns:
the clicks to edit

isEditing

public boolean isEditing()
Returns true if editing is active.

Returns:
the editing state

onDoubleClick

public boolean onDoubleClick(GridEvent<M> e)

setClicksToEdit

public void setClicksToEdit(EditorGrid.ClicksToEdit clicksToEdit)
Sets the number of clicks to edit (defaults to ONE).

Parameters:
clicksToEdit - the clicks to edit

startEditing

public void startEditing(int row,
                         int col)

stopEditing

public void stopEditing()

stopEditing

public void stopEditing(boolean cancel)
Stops any active editing.

Parameters:
cancel - true to cancel, false to complete