|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.grid.Grid<M>
com.extjs.gxt.ui.client.widget.grid.EditorGrid<M>
public class EditorGrid<M extends ModelData>
Adds editing capabilities to Grid.
BaseEvent.setCancelled(boolean).BaseEvent.setCancelled(boolean).
| Nested Class Summary | |
|---|---|
static class |
EditorGrid.ClicksToEdit
ClicksToEdit enumeration. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.extjs.gxt.ui.client.widget.grid.Grid |
|---|
cm, editSupport, sm, store, stringProvider, view, viewReady |
| Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
| Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
EditorGrid(ListStore store,
ColumnModel cm)
Creates a new editor grid. |
|
| Method Summary | |
|---|---|
CellEditor |
getActiveEditor()
Returns the active editor. |
EditorGrid.ClicksToEdit |
getClicksToEdit()
Returns the clicks to edit. |
boolean |
isEditing()
Returns true if editing is active. |
protected void |
onDoubleClick(GridEvent<M> e)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
reconfigure(ListStore<M> store,
ColumnModel cm)
Reconfigures the grid to use a different Store and Column Model. |
void |
setClicksToEdit(EditorGrid.ClicksToEdit clicksToEdit)
Sets the number of clicks to edit (defaults to ONE). |
void |
startEditing(int row,
int col)
Starts editing the specified for the specified row/column. |
void |
stopEditing()
Stops any active editing. |
void |
stopEditing(boolean cancel)
Stops any active editing. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EditorGrid(ListStore store,
ColumnModel cm)
store - the storecm - the column model| Method Detail |
|---|
public CellEditor getActiveEditor()
public EditorGrid.ClicksToEdit getClicksToEdit()
public boolean isEditing()
public void reconfigure(ListStore<M> store,
ColumnModel cm)
Grid
reconfigure in class Grid<M extends ModelData>store - the new storecm - the new column modelpublic void setClicksToEdit(EditorGrid.ClicksToEdit clicksToEdit)
clicksToEdit - the clicks to edit
public void startEditing(int row,
int col)
row - the row indexcol - the column indexpublic void stopEditing()
public void stopEditing(boolean cancel)
cancel - true to cancel, false to completeprotected void onDoubleClick(GridEvent<M> e)
onDoubleClick in class Grid<M extends ModelData>
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Grid<M extends ModelData>target - the target elementindex - the insert location
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||