com.sibvisions.rad.ui.web.ext.gxt.layout
Class GVxLayout

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.Layout
          extended by com.sibvisions.rad.ui.web.ext.gxt.layout.GVxLayout
All Implemented Interfaces:
Observable, IPreferredSizeLayout
Direct Known Subclasses:
GVxBorderLayout, GVxFlowLayout, GVxFormLayout

public abstract class GVxLayout
extends Layout
implements IPreferredSizeLayout

Layout Extension.


Field Summary
static IllegalArgumentException BREAK_LAYOUTING
          Signal to break layouting.
protected  int horizontalGap
          The horizontal gap.
protected  Margins margins
          The margins.
protected  int verticalGap
          The vertical gap.
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName
 
Constructor Summary
GVxLayout()
           
 
Method Summary
protected  void clearCache(BoxComponent pComponent)
          Calculates the preferred size of the container.
 void configureTarget(Container<?> pContainer, El pTarget)
          Sets the correct position attribute.
 Margins getBorderMargins(BoxComponent pComponent)
          Calculates the preferred size of the container.
 int getHorizontalGap()
          The horizontal gap.
 Margins getMargins()
          The Margins.
 Size getPreferredSize(BoxComponent pComponent)
          Calculates the preferred size of the container.
protected  Size getPreferredSizeIntern(BoxComponent pComponent)
          Calculates the preferred size of the container.
 int getVerticalGap()
          The vertical gap.
 void setHorizontalGap(int pHorizontalGap)
          The horizontal gap.
 void setMargins(Margins pMargins)
          The Margins.
protected  void setSize(BoxComponent pComponent, int pWidth, int pHeight)
          Sets the size for a component.
 void setVerticalGap(int pVerticalGap)
          The vertical gap.
 
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, onLayout, 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
 
Methods inherited from interface com.sibvisions.rad.ui.web.ext.gxt.layout.IPreferredSizeLayout
getPreferredSize
 

Field Detail

BREAK_LAYOUTING

public static final IllegalArgumentException BREAK_LAYOUTING
Signal to break layouting.


margins

protected Margins margins
The margins.


horizontalGap

protected int horizontalGap
The horizontal gap.


verticalGap

protected int verticalGap
The vertical gap.

Constructor Detail

GVxLayout

public GVxLayout()
Method Detail

getMargins

public Margins getMargins()
The Margins.

Returns:
the Margins.

setMargins

public void setMargins(Margins pMargins)
The Margins.

Parameters:
pMargins - the Margins.

getHorizontalGap

public int getHorizontalGap()
The horizontal gap.

Returns:
the horizontal gap.

setHorizontalGap

public void setHorizontalGap(int pHorizontalGap)
The horizontal gap.

Parameters:
pHorizontalGap - the horizontal gap.

getVerticalGap

public int getVerticalGap()
The vertical gap.

Returns:
the vertical gap.

setVerticalGap

public void setVerticalGap(int pVerticalGap)
The vertical gap.

Parameters:
pVerticalGap - the vertical gap.

getPreferredSize

public Size getPreferredSize(BoxComponent pComponent)
Calculates the preferred size of the container.

Parameters:
pComponent - the container.
Returns:
the preferred size.

getPreferredSizeIntern

protected Size getPreferredSizeIntern(BoxComponent pComponent)
Calculates the preferred size of the container.

Parameters:
pComponent - the container.
Returns:
the preferred size.

clearCache

protected void clearCache(BoxComponent pComponent)
Calculates the preferred size of the container.

Parameters:
pComponent - the container.

getBorderMargins

public Margins getBorderMargins(BoxComponent pComponent)
Calculates the preferred size of the container.

Parameters:
pComponent - the container.
Returns:
the preferred size.

configureTarget

public void configureTarget(Container<?> pContainer,
                            El pTarget)
Sets the correct position attribute.

Parameters:
pContainer - the container.
pTarget - the target.

setSize

protected void setSize(BoxComponent pComponent,
                       int pWidth,
                       int pHeight)
Sets the size for a component.

Parameters:
pComponent - the component
pWidth - the width
pHeight - the height


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.