C
- the type that the Cell representspublic class CellComponent<C> extends Component implements HasKeyProvider<C>, HasValue<C>, LeafValueEditor<C>
Component
that wraps a Cell
.
It is important to note that a single cell instance should not be used in a
single CellComponent
instance.
Subclasses should be aware that redraw()
calls are deferred before
the component is "rendered". The component is rendered when getElement is
called for the first time, typically, when the component is added to a panel
or container. To force a redraw use redraw(boolean)
.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Editor.Ignore, Editor.Path
DEBUG_ID_PREFIX
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<C> handler) |
Cell<C> |
getCell()
Get the
Cell wrapped by this widget. |
XElement |
getElement()
Gets a handle to the object's underlying DOM element.
|
ProvidesKey<C> |
getKeyProvider() |
C |
getValue() |
void |
onBrowserEvent(Event event) |
void |
redraw()
Redraw the widget.
|
void |
setValue(C value) |
void |
setValue(C value,
boolean fireEvents) |
void |
setValue(C value,
boolean fireEvents,
boolean redraw)
Sets this object's value and optionally redraw the widget.
|
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<C> handler)
addValueChangeHandler
in interface HasValueChangeHandlers<C>
public Cell<C> getCell()
Cell
wrapped by this widget.Cell
being wrappedpublic XElement getElement()
Component
UIObject.setElement(com.google.gwt.dom.client.Element)
.getElement
in class Component
public ProvidesKey<C> getKeyProvider()
getKeyProvider
in interface HasKeyProvider<C>
public C getValue()
public void onBrowserEvent(Event event)
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Component
public void redraw()
public void setValue(C value)
This method will redraw the widget if the new value does not equal the existing value.
public void setValue(C value, boolean fireEvents)
This method will redraw the widget if the new value does not equal the existing value.
public void setValue(C value, boolean fireEvents, boolean redraw)
ValueChangeEvent
when
fireEvents is true and the new value does not equal the existing value.
Redraws the widget when redraw is true and the new value does not equal the
existing value.value
- the object's new valuefireEvents
- fire events if true and value is newredraw
- redraw the widget if true and value is newCopyright © 2015. All rights reserved.