public abstract class ResizeComposite extends Composite implements RequiresResize
Composite
implementation that implements RequiresResize
and
automatically delegates that interface's methods to its wrapped widget, which
must itself implement RequiresResize
.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
eventsToSink
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
Constructor and Description |
---|
ResizeComposite() |
Modifier and Type | Method and Description |
---|---|
protected void |
initWidget(Widget widget)
Sets the widget to be wrapped by the composite.
|
void |
onResize()
This method must be called whenever the implementor's size has been
modified.
|
claimElement, getWidget, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
protected void initWidget(Widget widget)
Composite
Widget
methods on this object, or adding it
to a panel. This method may only be called once for a given composite.initWidget
in class Composite
widget
- the widget to be wrappedpublic void onResize()
RequiresResize
onResize
in interface RequiresResize