|
|||||||||
| 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.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.Container
com.gwtext.client.widgets.Panel
com.gwtext.client.widgets.grid.GridPanel
com.gwtext.client.widgets.grid.EditorGridPanel
public class EditorGridPanel
Class for creating and editable grid.
| Nested Class Summary |
|---|
| 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.gwtext.client.widgets.Component |
|---|
config, id |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
EditorGridPanel()
|
|
EditorGridPanel(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
EditorGridPanel(Store store,
ColumnModel columnModel)
Creates a new Editor Grid. |
|
EditorGridPanel(java.lang.String id,
int width,
int height,
Store store,
ColumnModel columnModel)
Creates a new Editor Grid. |
|
| Method Summary | |
|---|---|
void |
addEditorGridListener(EditorGridListener listener)
Add an EditorGridPanel listener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject configJS)
|
CellSelectionModel |
getCellSelectionModel()
Returns the grid's cell selection model |
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
void |
setAutoEncode(boolean autoEncode)
True to automatically HTML encode and decode values pre and post edit (defaults to false) |
void |
setClicksToEdit(int clicksToEdit)
The number of clicks on a cell required to display the cell's editor (defaults to 2). |
void |
startEditing(int rowIndex,
int colIndex)
Starts editing the specified for the specified row/column. |
void |
stopEditing()
Stops any active editing. |
| Methods inherited from class com.gwtext.client.widgets.Container |
|---|
add, add, add, add, addListener, bubble, cascade, clear, doLayout, doLayout, findBy, findByID, findByType, getActiveItem, getActiveItemID, getAutoDestroy, getBufferResize, getComponent, getComponent, getComponents, getHideBorders, getItems, getLayout, getMonitorResize, insert, iterator, remove, remove, remove, remove, removeAll, removeAll, setActiveItem, setActiveItemID, setAutoDestroy, setBufferResize, setDefaults, setHideBorders, setLayout, setMonitorResize |
| Methods inherited from class com.gwtext.client.widgets.BoxComponent |
|---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EditorGridPanel()
public EditorGridPanel(Store store,
ColumnModel columnModel)
store - the Grid's data storecolumnModel - the Grids column modelpublic EditorGridPanel(com.google.gwt.core.client.JavaScriptObject jsObj)
public EditorGridPanel(java.lang.String id,
int width,
int height,
Store store,
ColumnModel columnModel)
id - the Grid IDwidth - the Grid widthheight - the Grid heightstore - the Grid's data storecolumnModel - the Grids column model| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype in class GridPanelpublic java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType in class GridPanelprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject configJS)
create in class GridPanelpublic void addEditorGridListener(EditorGridListener listener)
listener - the listener
public void startEditing(int rowIndex,
int colIndex)
rowIndex - row to editcolIndex - column to editpublic void stopEditing()
public CellSelectionModel getCellSelectionModel()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if called before grid creation or before calling setSelectionModel(...)
public void setClicksToEdit(int clicksToEdit)
throws java.lang.IllegalStateException
clicksToEdit - the number of clicks to edit
java.lang.IllegalStateException - this property cannot be changed after the Component has been renderedpublic void setAutoEncode(boolean autoEncode)
autoEncode - true to auto encode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||