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

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.HBoxLayoutData

public class HBoxLayoutData
extends MarginData

Layout data for HBoxLayout.


Constructor Summary
HBoxLayoutData()
          Creates a new hbox layout.
HBoxLayoutData(int top, int right, int bottom, int left)
          Creates a new hbox layout.
HBoxLayoutData(Margins m)
          Creates a new hbox layout.
 
Method Summary
 double getFlex()
          Returns the flex value which is a weight used by the layout for sizing calculations.
 int getMaxHeight()
          Returns the max height.
 int getMinHeight()
          Returns the minimum height.
 void setFlex(double flex)
          Sets the weighted flex value.
 void setMaxHeight(int maxHeight)
          Sets the max height (defaults to 1000000).
 void setMinHeight(int minHeight)
          Sets the minimum height (defaults 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

HBoxLayoutData

public HBoxLayoutData()
Creates a new hbox layout.


HBoxLayoutData

public HBoxLayoutData(Margins m)
Creates a new hbox layout.

Parameters:
m - the margins

HBoxLayoutData

public HBoxLayoutData(int top,
                      int right,
                      int bottom,
                      int left)
Creates a new hbox 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

getMaxHeight

public int getMaxHeight()
Returns the max height.

Returns:
the max height

getMinHeight

public int getMinHeight()
Returns the minimum height.

Returns:
the minimum height

setFlex

public void setFlex(double flex)
Sets the weighted flex value. Each child item with a flex value will be flexed horizontally 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 width not being changed.

Parameters:
flex - the flex value

setMaxHeight

public void setMaxHeight(int maxHeight)
Sets the max height (defaults to 1000000).

Parameters:
maxHeight - the max height

setMinHeight

public void setMinHeight(int minHeight)
Sets the minimum height (defaults to 0).

Parameters:
minHeight - the minimum