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

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.RowLayout
All Implemented Interfaces:
Observable
Direct Known Subclasses:
FillLayout

public class RowLayout
extends Layout

This layout positions the container's children in a single horizontal or vertical row. Each component may specify its height and width in pixels or as percentage.

Each components margin may also be specified using a RowData instance. Only 1 component should specify a margin on adjacent sides.

See Also:
RowData

Constructor Summary
RowLayout()
          Creates a new vertical row layout.
RowLayout(Style.Orientation orientation)
          Creates a new row layout with the given orientation.
 
Method Summary
 Style.Orientation getOrientation()
          Returns the orientation of the layout.
 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).
 void setOrientation(Style.Orientation orientation)
          Sets the orientation of the layout.
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Layout
getExtraStyle, getResizeDelay, isRenderHidden, isRunning, 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

RowLayout

public RowLayout()
Creates a new vertical row layout.


RowLayout

public RowLayout(Style.Orientation orientation)
Creates a new row layout with the given orientation.

Parameters:
orientation - the orientation of row layout
Method Detail

getOrientation

public Style.Orientation getOrientation()
Returns the orientation of the layout.

Returns:
the orientation

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

setOrientation

public void setOrientation(Style.Orientation orientation)
Sets the orientation of the layout.

Parameters:
orientation - the orientation