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

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
              extended by com.extjs.gxt.ui.client.widget.layout.FillLayout
All Implemented Interfaces:
Observable

public class FillLayout
extends RowLayout

FillLayout places its components in a single row or column, forcing them to be the same size.

Each components margins can be specified by using a FillData instance for each child. Only 1 component should specify a margin on adjacent sides.


Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName
 
Constructor Summary
FillLayout()
          Creates a new vertical fill layout.
FillLayout(Style.Orientation orientation)
          Creates a new fill layout with the given orientation.
 
Method Summary
protected  void layoutHorizontal(El target)
           
protected  void layoutVertical(El target)
           
protected  void onLayout(Container<?> container, El target)
           
 
Methods inherited from class com.extjs.gxt.ui.client.widget.layout.RowLayout
getOrientation, isAdjustForScroll, setAdjustForScroll, setOrientation
 
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

FillLayout

public FillLayout()
Creates a new vertical fill layout.


FillLayout

public FillLayout(Style.Orientation orientation)
Creates a new fill layout with the given orientation.

Parameters:
orientation - the orientation
Method Detail

layoutHorizontal

protected void layoutHorizontal(El target)
Overrides:
layoutHorizontal in class RowLayout

layoutVertical

protected void layoutVertical(El target)
Overrides:
layoutVertical in class RowLayout

onLayout

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