|
|||||||||
| 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.Editor
com.gwtext.client.widgets.tree.TreeEditor
public class TreeEditor
A support class that allows you to make the nodes of a TreePanel editable. To do this, create an instance of
TreeEditor passing the TreePanel and the Field that you'd like to use when the user double clicks on a node to
edit it. For example you can assing a TextField or ComboBox.
| 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 | |
|---|---|
TreeEditor(TreePanel treePanel)
Create an editable tree using the default Field editor. |
|
TreeEditor(TreePanel treePanel,
Field field)
Create an editable tree using the specified Field as the editor. |
|
| Method Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject treePanel,
com.google.gwt.core.client.JavaScriptObject field)
|
void |
setCls(java.lang.String cls)
CSS class to apply to the editor (defaults to "x-small-editor x-tree-editor") |
void |
setEditDelay(int editDelay)
The edit delay in milliseconds. |
void |
setMaxWidth(int maxWidth)
The maximum width in pixels of the editor field (defaults to 250). |
void |
setShim(boolean shim)
True to shim the editor if selects/iframes could be displayed beneath it (defaults to false). |
void |
startEdit(TreeNode node)
Starts the editing process and shows the editor. |
| Methods inherited from class com.gwtext.client.widgets.Editor |
|---|
addListener, cancelEdit, completeEdit, create, getConfigPrototype, getValue, getValueAsString, getXType, realign, setAlignment, setAutosize, setAutosize, setCancelOnEsc, setCompleteOnEnter, setConstrain, setField, setHideEl, setIgnoreNoChange, setRevertInvalid, setShadow, setShadow, setSize, setSwallowKeys, setUpdateEl, setValue, setValue, setValue, setValue, setValue, setValueRendered, setValueRendered, startEdit, startEdit, startEdit, startEdit |
| 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, setSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TreeEditor(TreePanel treePanel)
treePanel - the TreePanel
public TreeEditor(TreePanel treePanel,
Field field)
treePanel - the TreePanelfield - the field| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject treePanel,
com.google.gwt.core.client.JavaScriptObject field)
public void startEdit(TreeNode node)
node - the tree node to editpublic void setCls(java.lang.String cls)
setCls in class Componentcls - the CSS classpublic void setMaxWidth(int maxWidth)
maxWidth - the max widthpublic void setEditDelay(int editDelay)
editDelay - the edit delaypublic void setShim(boolean shim)
shim - true to shim
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||