java.lang .Object net.mygwt.ui.client.widget.layout .RowData RowData public class RowData (Code) Layout data for RowLayouts
. A layout will not adjust the
height or width if its value is DEFAULT.
Styles:
FILL_BOTH, FILL_HORIZONTAL, FILL_VERTICAL
Constructor Summary public RowData () Creates a new row data.public RowData (float height, float width) Creates a new row data instance.public RowData (int style) Creates a new row data.
Method Summary public booleangetFillHeight () Returns true
if the height should fill.public booleangetFillWidth () Returns true
if the width should fill.public floatgetHeight () Returns the height.public floatgetWidth () Returns the width.public voidsetFillHeight (boolean fillHeight) Sets if the widget's height should fill its region.public voidsetFillWidth (boolean fillWidth) Sets if the widget's width should fill its region.public voidsetHeight (float height) Sets the preferred height in pixels.public voidsetWidth (float width) Sets the desired width in pixels.
FILL_BOTH final public static int FILL_BOTH (Code) Fills both horizontally and vertically.
FILL_HORIZONTAL final public static int FILL_HORIZONTAL (Code) Fills horizontally.
FILL_VERTICAL final public static int FILL_VERTICAL (Code) Fills vertically.
calcWidthcalcHeight float calcWidthcalcHeight (Code)
fillHeight boolean fillHeight (Code)
fillWidth boolean fillWidth (Code)
RowData public RowData()(Code) Creates a new row data.
RowData public RowData(float height, float width)(Code) Creates a new row data instance.
Parameters: height - the height in pixelsParameters: width - the width in pixels
RowData public RowData(int style)(Code) Creates a new row data.
Parameters: style - the style information
getFillHeight public boolean getFillHeight()(Code) Returns true
if the height should fill.
the fill height state
getFillWidth public boolean getFillWidth()(Code) Returns true
if the width should fill.
the fill width state
getHeight public float getHeight()(Code) Returns the height.
the height
getWidth public float getWidth()(Code) Returns the width.
the width
setFillHeight public void setFillHeight(boolean fillHeight)(Code) Sets if the widget's height should fill its region. When true
,
the height field is ignored. Default value is false
.
Parameters: fillHeight - the fill height state
setFillWidth public void setFillWidth(boolean fillWidth)(Code) Sets if the widget's width should fill its region. When true
,
the width field is ignored. Default value is false
.
Parameters: fillWidth - the fill width state
setHeight public void setHeight(float height)(Code) Sets the preferred height in pixels. Default value is DEFAULT.
Parameters: height - the height
setWidth public void setWidth(float width)(Code) Sets the desired width in pixels. Default value is DEFAULT.
Parameters: width - the width