com.extjs.gxt.ui.client.widget.layout
Class ColumnLayout
java.lang.Object
com.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.Layout
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:
- Sized : Yes - the width of a widget is adjusted by the ColumnData
hint
- Positioned : Yes - widgets are placed in columns
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. |
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 |
innerCt
protected El innerCt
adjustForScroll
protected boolean adjustForScroll
ColumnLayout
public ColumnLayout()
- Creates a new column layout.
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