|
||||||||||
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.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.DecoratorPanel
com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.widgetideas.table.client.InlineCellEditor<R>
com.google.gwt.widgetideas.table.client.TextCellEditor<R>
R
- the type of the row value associated with the editorpublic class TextCellEditor<R>
A text editor used to edit a single line of text.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.InlineCellEditor |
---|
InlineCellEditor.InlineCellEditorImages |
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel |
---|
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback |
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 |
Nested classes/interfaces inherited from interface com.google.gwt.widgetideas.table.client.AbstractCellEditor |
---|
AbstractCellEditor.Callback<R>, AbstractCellEditor.CellEditInfo<R> |
Field Summary |
---|
Fields inherited from class com.google.gwt.widgetideas.table.client.InlineCellEditor |
---|
DEFAULT_STYLENAME |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
TextCellEditor()
Constructor. |
|
TextCellEditor(com.google.gwt.user.client.ui.TextBoxBase textBox)
Constructor. |
|
TextCellEditor(com.google.gwt.user.client.ui.TextBoxBase textBox,
InlineCellEditor.InlineCellEditorImages images)
Constructor. |
Method Summary | |
---|---|
void |
editCell(AbstractCellEditor.CellEditInfo<R> cellEditInfo,
AbstractCellEditor.Callback<R> callback)
Handle a request from the table to edit a cell. |
protected com.google.gwt.user.client.ui.TextBoxBase |
getTextBox()
|
protected java.lang.Object |
getValue()
Get the value from the editor to put into the cell. |
protected void |
setValue(java.lang.Object value)
Set the value in the editor based on the value in the cell. |
Methods inherited from class com.google.gwt.widgetideas.table.client.InlineCellEditor |
---|
accept, cancel, getAcceptWidget, getCancelWidget, getContentWidget, getLabel, onAccept, onCancel, setAcceptWidget, setCancelWidget, setLabel |
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
---|
addPopupListener, center, getContainerElement, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, isAnimationEnabled, onDetach, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setAnimationEnabled, setAnimationType, setHeight, setPopupPosition, setPopupPositionAndShow, setTitle, setVisible, setWidget, setWidth, show |
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
---|
add, getWidget, iterator, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
getParent, isAttached, onAttach, onBrowserEvent, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextCellEditor()
public TextCellEditor(com.google.gwt.user.client.ui.TextBoxBase textBox)
textBox
- the text box to usepublic TextCellEditor(com.google.gwt.user.client.ui.TextBoxBase textBox, InlineCellEditor.InlineCellEditorImages images)
textBox
- the text box to useimages
- the images to use for the accept/cancel buttonsMethod Detail |
---|
public void editCell(AbstractCellEditor.CellEditInfo<R> cellEditInfo, AbstractCellEditor.Callback<R> callback)
AbstractCellEditor
editCell
in interface AbstractCellEditor<R>
editCell
in class InlineCellEditor<R>
cellEditInfo
- information about the source of the edit requestcallback
- callback used when editing is completeAbstractCellEditor.editCell(CellEditInfo, Callback)
protected com.google.gwt.user.client.ui.TextBoxBase getTextBox()
protected java.lang.Object getValue()
InlineCellEditor
getValue
in class InlineCellEditor<R>
protected void setValue(java.lang.Object value)
InlineCellEditor
setValue
in class InlineCellEditor<R>
value
- the value in the cell, either a Widget or HTML string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |