|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.gwtutils.client.ui.CssLength
public class CssLength
Encapsulates a CSS length, that is a value and the CSS unit of this value ("2em", "5px" etc).
| Constructor Summary | |
|---|---|
CssLength(double value,
Style.Unit unit)
Creates a new CssLength object with the specified value and
CSS unit. |
|
| Method Summary | |
|---|---|
Style.Unit |
getUnit()
Returns the CSS unit. |
double |
getValue()
Returns the value. |
String |
toString()
Returns the value with the name of the unit appended to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CssLength(double value,
Style.Unit unit)
CssLength object with the specified value and
CSS unit.
| Method Detail |
|---|
public double getValue()
public Style.Unit getUnit()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||