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

Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName
 
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.
protected  void layoutHorizontal(El target)
           
protected  void layoutVertical(El target)
           
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).
 void setOrientation(Style.Orientation orientation)
          Sets the orientation of the layout.
 
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

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

layoutHorizontal

protected void layoutHorizontal(El target)

layoutVertical

protected void layoutVertical(El target)

onLayout

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