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

Constructor Summary
ColumnLayout()
          Creates a new column layout.
 
Method Summary
 boolean isAdjustForScroll()
          Returns true if adjust for scroll is enabled.
 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
getExtraStyle, getResizeDelay, isRenderHidden, layout, setContainer, setExtraStyle, setRenderHidden, setResizeDelay
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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