public class VBoxLayoutContainer extends BoxLayoutContainer
VBoxLayoutContainer c = new VBoxLayoutContainer(); c.setVBoxLayoutAlign(VBoxLayoutAlign.LEFT); BoxLayoutData layoutData = new BoxLayoutData(new Margins(5, 0, 0, 5)); c.add(new TextButton("Button 1"), layoutData); c.add(new TextButton("Button 2"), layoutData); c.add(new TextButton("Button 3"), layoutData); Viewport v = new Viewport(); v.add(c); RootPanel.get().add(v);
Modifier and Type | Class and Description |
---|---|
static class |
VBoxLayoutContainer.VBoxLayoutAlign
Alignment enumeration for horizontal alignment.
|
BoxLayoutContainer.BoxLayoutContainerAppearance, BoxLayoutContainer.BoxLayoutData, BoxLayoutContainer.BoxLayoutPack
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 |
---|
VBoxLayoutContainer()
Creates a vbox layout.
|
VBoxLayoutContainer(VBoxLayoutContainer.VBoxLayoutAlign align)
Creates a vbox layout with the specified alignment.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doLayout() |
VBoxLayoutContainer.VBoxLayoutAlign |
getVBoxLayoutAlign()
Returns the horizontal alignment.
|
void |
setVBoxLayoutAlign(VBoxLayoutContainer.VBoxLayoutAlign vBoxLayoutAlign)
Sets the horizontal alignment for child items (defaults to LEFT).
|
add, getAppearance, getContainerTarget, getPack, getPadding, getScrollOffset, insert, isAdjustForFlexRemainder, onRemove, setAdjustForFlexRemainder, setPack, setPadding, setScrollOffset
insert, insert
applyLayout, applyLayout, 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 VBoxLayoutContainer()
public VBoxLayoutContainer(VBoxLayoutContainer.VBoxLayoutAlign align)
align
- the horizontal alignmentpublic VBoxLayoutContainer.VBoxLayoutAlign getVBoxLayoutAlign()
public void setVBoxLayoutAlign(VBoxLayoutContainer.VBoxLayoutAlign vBoxLayoutAlign)
vBoxLayoutAlign
- the horizontal alignmentprotected void doLayout()
doLayout
in class ResizeContainer
Copyright © 2018. All rights reserved.