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

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.ColumnLayout
All Implemented Interfaces:
Observable

public class ColumnLayout
extends Layout

This layout positions and sizes the container's children in columns horizontally. Each component may specify its width in pixels or as percentage of the parent remaining width.

Child Widgets are:

Code snippet:

   LayoutContainer container = new LayoutContainer();
   container.setLayout(new ColumnLayout());
   container.add(new Button("100px"), new ColumnData(100));
   container.add(new Button("30%"), new ColumnData(.3));
   container.add(new Button("50px"), new ColumnData(50));
 

See Also:
ColumnData

Field Summary
protected  boolean adjustForScroll
           
protected  El innerCt
           
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName
 
Constructor Summary
ColumnLayout()
          Creates a new column layout.
 
Method Summary
 boolean isAdjustForScroll()
          Returns true if adjust for scroll is enabled.
protected  void onLayout(Container<?> container, El target)
           
 void setAdjustForScroll(boolean adjustForScroll)
          True to adjust the container width calculations to account for the scroll bar (defaults to false).
 
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
 

Field Detail

innerCt

protected El innerCt

adjustForScroll

protected boolean adjustForScroll
Constructor Detail

ColumnLayout

public ColumnLayout()
Creates a new column layout.

Method Detail

isAdjustForScroll

public boolean isAdjustForScroll()
Returns true if adjust for scroll is enabled.

Returns:
the adjust for scroll state

setAdjustForScroll

public void setAdjustForScroll(boolean adjustForScroll)
True to adjust the container width calculations to account for the scroll bar (defaults to false).

Parameters:
adjustForScroll - the adjust for scroll state

onLayout

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