|
||||||||||
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>
R
- the type of the row value associated with the editorpublic abstract class InlineCellEditor<R>
An abstract representation of an editor used to edit the contents of a cell.
Nested Class Summary | |
---|---|
static interface |
InlineCellEditor.InlineCellEditorImages
An ImageBundle that provides images for InlineCellEditor . |
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 | |
---|---|
static java.lang.String |
DEFAULT_STYLENAME
Default style name. |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
protected |
InlineCellEditor(com.google.gwt.user.client.ui.Widget content)
Constructor. |
protected |
InlineCellEditor(com.google.gwt.user.client.ui.Widget content,
InlineCellEditor.InlineCellEditorImages images)
Constructor. |
Method Summary | |
---|---|
protected void |
accept()
Save the value in the cell editor to the actual cell. |
protected void |
cancel()
Cancel the cell edit. |
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.Widget |
getAcceptWidget()
|
protected com.google.gwt.user.client.ui.Widget |
getCancelWidget()
|
protected com.google.gwt.user.client.ui.Widget |
getContentWidget()
|
java.lang.String |
getLabel()
|
protected abstract java.lang.Object |
getValue()
Get the value from the editor to put into the cell. |
protected boolean |
onAccept()
Called before an accept takes place. |
protected boolean |
onCancel()
Called before a cancel takes place. |
protected void |
setAcceptWidget(com.google.gwt.user.client.ui.Widget w)
Set the Widget that is used to accept the current value. |
protected void |
setCancelWidget(com.google.gwt.user.client.ui.Widget w)
Set the Widget that is used to cancel editing. |
void |
setLabel(java.lang.String label)
Set the label for this cell editor. |
protected abstract 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.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 |
Field Detail |
---|
public static final java.lang.String DEFAULT_STYLENAME
Constructor Detail |
---|
protected InlineCellEditor(com.google.gwt.user.client.ui.Widget content)
content
- the Widget
used to editprotected InlineCellEditor(com.google.gwt.user.client.ui.Widget content, InlineCellEditor.InlineCellEditorImages images)
content
- the Widget
used to editimages
- 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>
cellEditInfo
- information about the source of the edit requestcallback
- callback used when editing is completeAbstractCellEditor.editCell(CellEditInfo, Callback)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the new labelprotected void accept()
protected void cancel()
protected com.google.gwt.user.client.ui.Widget getAcceptWidget()
protected com.google.gwt.user.client.ui.Widget getCancelWidget()
protected com.google.gwt.user.client.ui.Widget getContentWidget()
protected abstract java.lang.Object getValue()
protected boolean onAccept()
protected boolean onCancel()
protected void setAcceptWidget(com.google.gwt.user.client.ui.Widget w)
w
- the widgetprotected void setCancelWidget(com.google.gwt.user.client.ui.Widget w)
w
- the widgetprotected abstract void setValue(java.lang.Object value)
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 |