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
DEBUG_ID_PREFIX
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, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, 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
Copyright © 2018. All rights reserved.