public static class WidgetUtil.CssSize extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static boolean |
equals(String cssSize1,
String cssSize2)
Check whether the two sizes are equals.
|
static WidgetUtil.CssSize |
fromString(String s)
Parse the size from string format to
WidgetUtil.CssSize. |
static WidgetUtil.CssSize |
fromValueUnit(float value,
com.google.gwt.dom.client.Style.Unit unit)
Creates a
WidgetUtil.CssSize using a value and its measurement unit. |
com.google.gwt.dom.client.Style.Unit |
getUnit()
Gets the measurement unit for this css size.
|
float |
getValue()
Gets the value for this css size.
|
String |
toString() |
static com.google.gwt.dom.client.Style.Unit |
unitByType(String type)
Gets the unit value by its type.
|
public static com.google.gwt.dom.client.Style.Unit unitByType(String type)
type - the type of the unit as found in the style.public static WidgetUtil.CssSize fromString(String s)
WidgetUtil.CssSize.s - the size as string.WidgetUtil.CssSize object.public static WidgetUtil.CssSize fromValueUnit(float value, com.google.gwt.dom.client.Style.Unit unit)
WidgetUtil.CssSize using a value and its measurement unit.value - the value.unit - the unit.WidgetUtil.CssSize object.public float getValue()
public com.google.gwt.dom.client.Style.Unit getUnit()
Copyright © 2016 Vaadin Ltd. All rights reserved.