com.extjs.gxt.ui.client.widget
Class Layout

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.Layout
All Implemented Interfaces:
Observable
Direct Known Subclasses:
AnchorLayout, BorderLayout, ColumnLayout, FitLayout, FlowLayout, RowLayout, TableLayout

public abstract class Layout
extends BaseObservable

Layout provides the basic foundation for all other layout classes in GXT. It is a non-visual class that simply provides the base logic required to function as a layout. This class is intended to be extended.

Layout instances should not be shared with multiple containers.

See Also:
LayoutContainer
 

Constructor Summary
Layout()
           
 
Method Summary
 java.lang.String getExtraStyle()
          Returns the extra style name.
 int getResizeDelay()
          Returns the window resize delay.
 boolean isRenderHidden()
          Returns true if the container will be render child components hidden.
 void layout()
           
 void setContainer(Container ct)
          Sets the layout's container.
 void setExtraStyle(java.lang.String extraStyle)
          Sets an optional extra CSS style name that will be added to the container.
 void setRenderHidden(boolean renderHidden)
          True to hide each contained component on render (defaults to false).
 void setResizeDelay(int resizeDelay)
          Sets the number of milliseconds to buffer resize events (defaults to 400).
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layout

public Layout()
Method Detail

layout

public void layout()

getExtraStyle

public java.lang.String getExtraStyle()
Returns the extra style name.

Returns:
the extra style

getResizeDelay

public int getResizeDelay()
Returns the window resize delay.

Returns:
the delay

isRenderHidden

public boolean isRenderHidden()
Returns true if the container will be render child components hidden.

Returns:
the render hidden state

setContainer

public void setContainer(Container ct)
Sets the layout's container.

Parameters:
ct - the container

setExtraStyle

public void setExtraStyle(java.lang.String extraStyle)
Sets an optional extra CSS style name that will be added to the container. This can be useful for adding customized styles to the container or any of its children using standard CSS rules.

Parameters:
extraStyle - the extra style name

setRenderHidden

public void setRenderHidden(boolean renderHidden)
True to hide each contained component on render (defaults to false).

Parameters:
renderHidden - true to render hidden

setResizeDelay

public void setResizeDelay(int resizeDelay)
Sets the number of milliseconds to buffer resize events (defaults to 400). Only applies when monitorResize = true.

Parameters:
resizeDelay - the delay in milliseconds