public abstract class BoxLayoutContainer extends InsertResizeContainer
Modifier and Type | Class and Description |
---|---|
static interface |
BoxLayoutContainer.BoxLayoutContainerAppearance |
static class |
BoxLayoutContainer.BoxLayoutData
Specifies box layout parameters which control the minimum and maximum size,
as well as the "flex" value.
|
static class |
BoxLayoutContainer.BoxLayoutPack
BoxLayoutPack enumeration.
|
forceLayoutCommand, forceLayoutOnResize, hadLayoutRunning, layoutCommand, layoutRequiredThisEventLoop, 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 |
---|
BoxLayoutContainer()
Creates a box layout container with the default appearance.
|
BoxLayoutContainer(BoxLayoutContainer.BoxLayoutContainerAppearance appearance)
Creates a box layout container with the specified appearance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(IsWidget child,
BoxLayoutContainer.BoxLayoutData layoutData)
Adds a widget to this box layout container with the specified layout
parameters.
|
BoxLayoutContainer.BoxLayoutContainerAppearance |
getAppearance()
Returns the layout's appearance.
|
protected XElement |
getContainerTarget() |
BoxLayoutContainer.BoxLayoutPack |
getPack()
Returns the layout's pack value.
|
Padding |
getPadding()
Returns the padding between widgets.
|
int |
getScrollOffset()
Returns the scroll offset.
|
void |
insert(IsWidget w,
int beforeIndex,
BoxLayoutContainer.BoxLayoutData layoutData)
Inserts a widget into the box layout container.
|
boolean |
isAdjustForFlexRemainder()
Returns true if the remaining space after flex calculation is applied to
the last widget being flexed.
|
protected void |
onRemove(Widget child) |
void |
setAdjustForFlexRemainder(boolean adjustForFlexRemainder)
Set to true if the remaining space after flex calculation should be applied
to the last widget being flexed.
|
void |
setPack(BoxLayoutContainer.BoxLayoutPack pack)
Sets how the child items of the container are packed together.
|
void |
setPadding(Padding padding)
Sets the padding to use for the box layout container (i.e.
|
void |
setScrollOffset(int scrollOffset)
Sets the scroll offset (defaults to 0).
|
insert, insert
applyLayout, applyLayout, doLayout, forceLayout, forceLayoutOnChildren, forceLayoutOnChildren, getLeftRightMargins, getParentLayoutWidget, getSideMargins, getTopBottomMargins, isLayoutRunning, isOrWasLayoutRunning, isWidgetVisible, onBeforeDoLayout, onLoad, onResize, onResize
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, adjustIndex, adopt, checkIndexBoundsForInsertion, clear, disable, doAttachChildren, doDetachChildren, doPhysicalAttach, doPhysicalDetach, enable, ensureGroupingHandlerRegistration, findWidget, getChildren, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, onInsert, onWidgetHide, onWidgetShow, orphan, remove, remove, remove
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disableContextMenu, disableEvents, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getElement, getFocusEl, getFocusSupport, 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, 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
public BoxLayoutContainer()
public BoxLayoutContainer(BoxLayoutContainer.BoxLayoutContainerAppearance appearance)
appearance
- the box layout container appearancepublic void add(IsWidget child, BoxLayoutContainer.BoxLayoutData layoutData)
child
- the widget to addlayoutData
- the layout parameterspublic BoxLayoutContainer.BoxLayoutContainerAppearance getAppearance()
public BoxLayoutContainer.BoxLayoutPack getPack()
public Padding getPadding()
public int getScrollOffset()
public void insert(IsWidget w, int beforeIndex, BoxLayoutContainer.BoxLayoutData layoutData)
w
- the widgetbeforeIndex
- the insert indexlayoutData
- the layout parameterspublic boolean isAdjustForFlexRemainder()
public void setAdjustForFlexRemainder(boolean adjustForFlexRemainder)
adjustForFlexRemainder
- true to add the spacepublic void setPack(BoxLayoutContainer.BoxLayoutPack pack)
pack
- the pack valuepublic void setPadding(Padding padding)
padding
- the paddingpublic void setScrollOffset(int scrollOffset)
scrollOffset
- the scroll offsetprotected XElement getContainerTarget()
getContainerTarget
in class Container
Copyright © 2018. All rights reserved.