|
||||||||||
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 | |
---|---|
Sizeable.Unit |
getBottomUnits()
Gets the unit for the 'bottom' attribute |
java.lang.Float |
getBottomValue()
Gets the 'bottom' attributes value using current units. |
java.lang.String |
getCSSString()
Converts the internal values into a valid CSS string. |
Sizeable.Unit |
getLeftUnits()
Gets the unit for the 'left' attribute |
java.lang.Float |
getLeftValue()
Gets the 'left' attributes value using current units. |
Sizeable.Unit |
getRightUnits()
Gets the unit for the 'right' attribute |
java.lang.Float |
getRightValue()
Gets the 'right' attributes value in current units. |
Sizeable.Unit |
getTopUnits()
Gets the unit for the 'top' attribute |
java.lang.Float |
getTopValue()
Gets the 'top' attributes value in current units. |
int |
getZIndex()
Gets the 'z-index' attribute. |
void |
setBottom(java.lang.Float bottomValue,
Sizeable.Unit bottomUnits)
Sets the 'bottom' attribute; distance from the bottom of the component to the bottom edge of the layout. |
void |
setBottomUnits(Sizeable.Unit bottomUnits)
Sets the unit for the 'bottom' attribute |
void |
setBottomValue(java.lang.Float bottomValue)
Sets the 'bottom' attribute value (distance from the bottom of the component to the bottom edge of the layout). |
void |
setCSSString(java.lang.String css)
Sets the position attributes using CSS syntax. |
void |
setLeft(java.lang.Float leftValue,
Sizeable.Unit leftUnits)
Sets the 'left' attribute; distance from the left of the component to the left edge of the layout. |
void |
setLeftUnits(Sizeable.Unit leftUnits)
Sets the unit for the 'left' attribute |
void |
setLeftValue(java.lang.Float leftValue)
Sets the 'left' attribute value (distance from the left of the component to the left edge of the layout). |
void |
setRight(java.lang.Float rightValue,
Sizeable.Unit rightUnits)
Sets the 'right' attribute; distance from the right of the component to the right edge of the layout. |
void |
setRightUnits(Sizeable.Unit rightUnits)
Sets the unit for the 'right' attribute |
void |
setRightValue(java.lang.Float rightValue)
Sets the 'right' attribute value (distance from the right of the component to the right edge of the layout). |
void |
setTop(java.lang.Float topValue,
Sizeable.Unit topUnits)
Sets the 'top' attribute; distance from the top of the component to the top edge of the layout. |
void |
setTopUnits(Sizeable.Unit topUnits)
Sets the unit for the 'top' attribute |
void |
setTopValue(java.lang.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 |
java.lang.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(java.lang.String css)
setCSSString("top:10px;left:20%;z-index:16;");
css
- public java.lang.String getCSSString()
public void setTop(java.lang.Float topValue, Sizeable.Unit 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(java.lang.Float rightValue, Sizeable.Unit 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(java.lang.Float bottomValue, Sizeable.Unit 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(java.lang.Float leftValue, Sizeable.Unit 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(java.lang.Float topValue)
topValue
- The value of the 'left' attributepublic java.lang.Float getTopValue()
getTopUnits()
public java.lang.Float getRightValue()
getRightUnits()
public void setRightValue(java.lang.Float rightValue)
rightValue
- The value of the 'right' attribute#setRightUnits(int)
public java.lang.Float getBottomValue()
getBottomUnits()
public void setBottomValue(java.lang.Float bottomValue)
bottomValue
- The value of the 'bottom' attribute#setBottomUnits(int)
public java.lang.Float getLeftValue()
getLeftUnits()
public void setLeftValue(java.lang.Float leftValue)
leftValue
- The value of the 'left' CSS-attribute#setLeftUnits(int)
public Sizeable.Unit getTopUnits()
Sizeable
UNIT_SYMBOLS for a description of the
available units.public void setTopUnits(Sizeable.Unit topUnits)
topUnits
- See Sizeable
UNIT_SYMBOLS for a description of the
available units.public Sizeable.Unit getRightUnits()
Sizeable
UNIT_SYMBOLS for a description of the
available units.public void setRightUnits(Sizeable.Unit rightUnits)
rightUnits
- See Sizeable
UNIT_SYMBOLS for a description of the
available units.public Sizeable.Unit getBottomUnits()
Sizeable
UNIT_SYMBOLS for a description of the
available units.public void setBottomUnits(Sizeable.Unit bottomUnits)
bottomUnits
- See Sizeable
UNIT_SYMBOLS for a description of the
available units.public Sizeable.Unit getLeftUnits()
Sizeable
UNIT_SYMBOLS for a description of the
available units.public void setLeftUnits(Sizeable.Unit leftUnits)
leftUnits
- See Sizeable
UNIT_SYMBOLS for a description of the
available units.public int getZIndex()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |