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

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

public class RowData
extends MarginData

Layout data for RowLayout that controls the width and height of a widget.

The height and width of each component can be specified with a RowData instance. There are 3 types of values:

See Also:
RowLayout

Constructor Summary
RowData()
          Creates a new row data.
RowData(double width, double height)
          Creates a new row data.
RowData(double width, double height, Margins margins)
          Creates a new row data.
 
Method Summary
 double getHeight()
          Returns the height.
 double getWidth()
          Returns the width.
 void setHeight(double height)
          Sets the height in pixels (defauls to DEFAULT).
 void setWidth(double width)
          Sets the height in pixels (defaults to DEFAULT).
 
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

RowData

public RowData()
Creates a new row data.


RowData

public RowData(double width,
               double height)
Creates a new row data.

Parameters:
width - the width, values of 1 or less treated as percentages
height - the height, values of 1 or less treated as percentages

RowData

public RowData(double width,
               double height,
               Margins margins)
Creates a new row data.

Parameters:
width - the width, values of 1 or less treated as percentages
height - the height, values of 1 or less treated as percentages
margins - the margins
Method Detail

getHeight

public double getHeight()
Returns the height.

Returns:
the height

getWidth

public double getWidth()
Returns the width.

Returns:
the width

setHeight

public void setHeight(double height)
Sets the height in pixels (defauls to DEFAULT). The default value indicates that the layout should use the widget's computed height.

Parameters:
height - the height, values of 1 or less treated as percentages

setWidth

public void setWidth(double width)
Sets the height in pixels (defaults to DEFAULT). The default value indicates that the layout should use the widget's computed width.

Parameters:
width - the width, values of 1 treated as percentages