|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.AbsoluteLayout.ComponentPosition
public class AbsoluteLayout.ComponentPosition
The CompontPosition class represents a components position within the absolute layout. It contains the attributes for left, right, top and bottom and the units used to specify them.
| Constructor Summary | |
|---|---|
AbsoluteLayout.ComponentPosition()
|
|
| Method Summary | |
|---|---|
int |
getBottomUnits()
Gets the unit for the 'bottom' attribute |
Float |
getBottomValue()
Gets the 'bottom' attributes value using current units. |
String |
getCSSString()
Converts the internal values into a valid CSS string. |
int |
getLeftUnits()
Gets the unit for the 'left' attribute |
Float |
getLeftValue()
Gets the 'left' attributes value using current units. |
int |
getRightUnits()
Gets the unit for the 'right' attribute |
Float |
getRightValue()
Gets the 'right' attributes value in current units. |
int |
getTopUnits()
Gets the unit for the 'top' attribute |
Float |
getTopValue()
Gets the 'top' attributes value in current units. |
int |
getZIndex()
Gets the 'z-index' attribute. |
void |
setBottom(Float bottomValue,
int bottomUnits)
Sets the 'bottom' attribute; distance from the bottom of the component to the bottom edge of the layout. |
void |
setBottomUnits(int bottomUnits)
Sets the unit for the 'bottom' attribute |
void |
setBottomValue(Float bottomValue)
Sets the 'bottom' attribute value (distance from the bottom of the component to the bottom edge of the layout). |
void |
setCSSString(String css)
Sets the position attributes using CSS syntax. |
void |
setLeft(Float leftValue,
int leftUnits)
Sets the 'left' attribute; distance from the left of the component to the left edge of the layout. |
void |
setLeftUnits(int leftUnits)
Sets the unit for the 'left' attribute |
void |
setLeftValue(Float leftValue)
Sets the 'left' attribute value (distance from the left of the component to the left edge of the layout). |
void |
setRight(Float rightValue,
int rightUnits)
Sets the 'right' attribute; distance from the right of the component to the right edge of the layout. |
void |
setRightUnits(int rightUnits)
Sets the unit for the 'right' attribute |
void |
setRightValue(Float rightValue)
Sets the 'right' attribute value (distance from the right of the component to the right edge of the layout). |
void |
setTop(Float topValue,
int topUnits)
Sets the 'top' attribute; distance from the top of the component to the top edge of the layout. |
void |
setTopUnits(int topUnits)
Sets the unit for the 'top' attribute |
void |
setTopValue(Float topValue)
Sets the value of the 'top' attribute; distance from the top of the component to the top edge of the layout. |
void |
setZIndex(int zIndex)
Sets the 'z-index' attribute; the visual stacking order |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbsoluteLayout.ComponentPosition()
| Method Detail |
|---|
public void setCSSString(String css)
setCSSString("top:10px;left:20%;z-index:16;");
css - public String getCSSString()
public void setTop(Float topValue,
int topUnits)
topValue - The value of the 'top' attributetopUnits - The unit of the 'top' attribute. See UNIT_SYMBOLS for a
description of the available units.
public void setRight(Float rightValue,
int rightUnits)
rightValue - The value of the 'right' attributerightUnits - The unit of the 'right' attribute. See UNIT_SYMBOLS for a
description of the available units.
public void setBottom(Float bottomValue,
int bottomUnits)
bottomValue - The value of the 'bottom' attributeunits - The unit of the 'bottom' attribute. See UNIT_SYMBOLS for a
description of the available units.
public void setLeft(Float leftValue,
int leftUnits)
leftValue - The value of the 'left' attributeunits - The unit of the 'left' attribute. See UNIT_SYMBOLS for a
description of the available units.public void setZIndex(int zIndex)
zIndex - The z-index for the component.public void setTopValue(Float topValue)
topValue - The value of the 'left' attributepublic Float getTopValue()
getTopUnits()public Float getRightValue()
getRightUnits()public void setRightValue(Float rightValue)
rightValue - The value of the 'right' attributesetRightUnits(int)public Float getBottomValue()
getBottomUnits()public void setBottomValue(Float bottomValue)
bottomValue - The value of the 'bottom' attributesetBottomUnits(int)public Float getLeftValue()
getLeftUnits()public void setLeftValue(Float leftValue)
leftValue - The value of the 'left' CSS-attributesetLeftUnits(int)public int getTopUnits()
Sizeable UNIT_SYMBOLS for a description of the
available units.public void setTopUnits(int topUnits)
topUnits - See Sizeable UNIT_SYMBOLS for a description of the
available units.public int getRightUnits()
Sizeable UNIT_SYMBOLS for a description of the
available units.public void setRightUnits(int rightUnits)
rightUnits - See Sizeable UNIT_SYMBOLS for a description of the
available units.public int getBottomUnits()
Sizeable UNIT_SYMBOLS for a description of the
available units.public void setBottomUnits(int bottomUnits)
bottomUnits - See Sizeable UNIT_SYMBOLS for a description of the
available units.public int getLeftUnits()
Sizeable UNIT_SYMBOLS for a description of the
available units.public void setLeftUnits(int leftUnits)
leftUnits - See Sizeable UNIT_SYMBOLS for a description of the
available units.public int getZIndex()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||