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.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
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.
|
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.
|
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
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disableEvents, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, onBrowserEvent, 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
add
add
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
public BoxLayoutContainer()
public BoxLayoutContainer(BoxLayoutContainer.BoxLayoutContainerAppearance appearance)
appearance
- the box layout container appearance@UiChild(tagname="child") public 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 offsetCopyright © 2015. All rights reserved.