public abstract class ResizeContainer extends Container implements HasLayout
Modifier and Type | Field and Description |
---|---|
protected ScheduledCommand |
forceLayoutCommand |
protected boolean |
forceLayoutOnResize
By default, a container calls doLayout when resized which does not force
children to be laid out.
|
protected boolean |
hadLayoutRunning |
protected ScheduledCommand |
layoutCommand |
protected boolean |
layoutRequiredThisEventLoop |
protected boolean |
layoutRunning |
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
ResizeContainer() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyLayout(Widget widget,
int width,
int height) |
protected void |
applyLayout(Widget component,
Rectangle box) |
protected abstract void |
doLayout() |
void |
forceLayout()
Forces a class that implements
HasLayout to lay out its child
widgets. |
protected void |
forceLayoutOnChildren(HasWidgets widgets) |
protected void |
forceLayoutOnChildren(IndexedPanel widgets) |
protected int |
getLeftRightMargins(Widget w) |
protected Widget |
getParentLayoutWidget() |
protected int |
getSideMargins(Widget w)
Deprecated.
|
protected int |
getTopBottomMargins(Widget w) |
boolean |
isLayoutRunning()
Returns true if invoked when a class that implements
HasLayout
is in the process of laying out it's children. |
boolean |
isOrWasLayoutRunning()
Returns true if invoked when a class that implements
HasLayout
is in the process of laying out it's children or has performed a lay out in
the past. |
protected boolean |
isWidgetVisible(Widget w) |
protected void |
onBeforeDoLayout() |
protected void |
onLoad() |
void |
onResize() |
protected void |
onResize(int width,
int height)
Called after the widget is resized, this method is empty by default but can be implemented by any subclass that
needs to perform custom logic after a resize occurs.
|
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, adjustIndex, adopt, checkIndexBoundsForInsertion, clear, disable, doAttachChildren, doDetachChildren, doPhysicalAttach, doPhysicalDetach, enable, ensureGroupingHandlerRegistration, findWidget, getChildren, getContainerTarget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, onInsert, onRemove, onWidgetHide, onWidgetShow, orphan, remove, remove, remove
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disableContextMenu, disableEvents, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getElement, getFocusEl, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAfterFirstAttach, onAttach, onBlur, onBrowserEvent, onDetach, onDisable, onEnable, onFocus, onHide, onHideContextMenu, onPosition, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
protected ScheduledCommand forceLayoutCommand
protected ScheduledCommand layoutCommand
protected boolean hadLayoutRunning
protected boolean layoutRequiredThisEventLoop
protected boolean layoutRunning
protected boolean forceLayoutOnResize
public void forceLayout()
HasLayout
HasLayout
to lay out its child
widgets.forceLayout
in interface HasLayout
public boolean isLayoutRunning()
HasLayout
HasLayout
is in the process of laying out it's children. Useful in avoiding recursive
lay out operations.isLayoutRunning
in interface HasLayout
public boolean isOrWasLayoutRunning()
HasLayout
HasLayout
is in the process of laying out it's children or has performed a lay out in
the past.isOrWasLayoutRunning
in interface HasLayout
public void onResize()
protected void applyLayout(Widget widget, int width, int height)
protected void applyLayout(Widget component, Rectangle box)
protected abstract void doLayout()
protected void forceLayoutOnChildren(HasWidgets widgets)
protected void forceLayoutOnChildren(IndexedPanel widgets)
protected int getLeftRightMargins(Widget w)
protected Widget getParentLayoutWidget()
@Deprecated protected int getSideMargins(Widget w)
w
- widget to measureprotected int getTopBottomMargins(Widget w)
protected boolean isWidgetVisible(Widget w)
protected void onBeforeDoLayout()
protected void onResize(int width, int height)
Component
Copyright © 2018. All rights reserved.