com.extjs.gxt.ui.client.widget.layout
Class VBoxLayout

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.Layout
          extended by com.extjs.gxt.ui.client.widget.layout.BoxLayout
              extended by com.extjs.gxt.ui.client.widget.layout.VBoxLayout
All Implemented Interfaces:
Observable

public class VBoxLayout
extends BoxLayout

Lays out it's children in a vertical column.

Because this layout positions it's children absolutely, the container will have no height. A height must be specified directly or by a parent layout.

The horizontal position and width can be managed by using setVBoxLayoutAlign(VBoxLayoutAlign).


Nested Class Summary
static class VBoxLayout.VBoxLayoutAlign
          Alignment enumeration for horizontal alignment.
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.layout.BoxLayout
BoxLayout.BoxLayoutPack
 
Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.widget.layout.BoxLayout
innerCt
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName
 
Constructor Summary
VBoxLayout()
           
VBoxLayout(VBoxLayout.VBoxLayoutAlign align)
           
 
Method Summary
 VBoxLayout.VBoxLayoutAlign getVBoxLayoutAlign()
          Returns the horizontal alignment.
protected  void onLayout(Container<?> container, El target)
           
 void setVBoxLayoutAlign(VBoxLayout.VBoxLayoutAlign vBoxLayoutAlign)
          Sets the horizontal alignment for child items (defaults to LEFT).
 
Methods inherited from class com.extjs.gxt.ui.client.widget.layout.BoxLayout
getPack, getPadding, getScrollOffset, isAdjustForFlexRemainder, setAdjustForFlexRemainder, setPack, setPadding, setScrollOffset
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Layout
applyMargins, applyPadding, callLayout, fly, fly, getExtraStyle, getLayoutData, getResizeDelay, getSideMargins, initTarget, isLayoutExecuted, isLayoutNeeded, isRenderHidden, isRunning, isValidParent, layout, layoutContainer, onAdd, onComponentHide, onComponentShow, onRemove, onResize, renderAll, renderComponent, setBounds, setContainer, setExtraStyle, setLayoutData, setLayoutNeeded, setLayoutOnChange, setPosition, setRenderHidden, setResizeDelay, setSize
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VBoxLayout

public VBoxLayout()

VBoxLayout

public VBoxLayout(VBoxLayout.VBoxLayoutAlign align)
Method Detail

getVBoxLayoutAlign

public VBoxLayout.VBoxLayoutAlign getVBoxLayoutAlign()
Returns the horizontal alignment.

Returns:
the horizontal alignment

setVBoxLayoutAlign

public void setVBoxLayoutAlign(VBoxLayout.VBoxLayoutAlign vBoxLayoutAlign)
Sets the horizontal alignment for child items (defaults to LEFT).

Parameters:
vBoxLayoutAlign - the horizontal alignment

onLayout

protected void onLayout(Container<?> container,
                        El target)
Overrides:
onLayout in class BoxLayout