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

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.layout.LayoutData
      extended by com.extjs.gxt.ui.client.widget.layout.MarginData
          extended by com.extjs.gxt.ui.client.widget.layout.VBoxLayoutData

public class VBoxLayoutData
extends MarginData

Layout data for VBoxLayout


Constructor Summary
VBoxLayoutData()
          Creates a new vbox layout.
VBoxLayoutData(int top, int right, int bottom, int left)
          Creates a new vbox layout.
VBoxLayoutData(Margins m)
          Creates a new vbox layout.
 
Method Summary
 double getFlex()
          Returns the flex value which is a weight used by the layout for sizing calculations.
 int getMaxWidth()
          Returns the max width.
 int getMinWidth()
          Returns the minimum width.
 void setFlex(double flex)
          Sets the weighted flex value.
 void setMaxWidth(int maxWidth)
          Sets the max width (default to 1000000).
 void setMinWidth(int minWidth)
          Sets the minimum width (default to 0).
 
Methods inherited from class com.extjs.gxt.ui.client.widget.layout.MarginData
getMargins, setMargins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VBoxLayoutData

public VBoxLayoutData()
Creates a new vbox layout.


VBoxLayoutData

public VBoxLayoutData(Margins m)
Creates a new vbox layout.

Parameters:
m - the margins

VBoxLayoutData

public VBoxLayoutData(int top,
                      int right,
                      int bottom,
                      int left)
Creates a new vbox layout.

Parameters:
top - the top margin
right - the right margin
bottom - the bottom margin
left - the left margin
Method Detail

getFlex

public double getFlex()
Returns the flex value which is a weight used by the layout for sizing calculations.

Returns:
the flex

getMaxWidth

public int getMaxWidth()
Returns the max width.

Returns:
the max width

getMinWidth

public int getMinWidth()
Returns the minimum width.

Returns:
the minimum width

setFlex

public void setFlex(double flex)
Sets the weighted flex value. Each child item with a flex value will be flexed vertically according to each item's relative flex value compared to the sum of all items with a flex value specified. Values of 0 (default) will cause the child to not be 'flexed' with the initial height not being changed.

Parameters:
flex - the flex value

setMaxWidth

public void setMaxWidth(int maxWidth)
Sets the max width (default to 1000000).

Parameters:
maxWidth - the max width

setMinWidth

public void setMinWidth(int minWidth)
Sets the minimum width (default to 0).

Parameters:
minWidth - the minimum width