public static class CssProperty.NumberValue extends CssProperty.Value
Constructor and Description |
---|
NumberValue(float value) |
NumberValue(float value,
String units) |
Modifier and Type | Method and Description |
---|---|
String |
getExpression()
Generate a Java expression whose execution results in the value.
|
String |
getUnits() |
float |
getValue() |
CssProperty.NumberValue |
isNumberValue() |
String |
toCss()
Generate a CSS expression that represents the Value.
|
isDotPathValue, isExpressionValue, isFunctionValue, isIdentValue, isListValue, isSpaceRequired, isStatic, isStringValue, toString
public NumberValue(float value)
public NumberValue(float value, String units)
public String getExpression()
CssProperty.Value
getExpression
in class CssProperty.Value
public String getUnits()
public float getValue()
public CssProperty.NumberValue isNumberValue()
isNumberValue
in class CssProperty.Value
public String toCss()
CssProperty.Value
toCss
in class CssProperty.Value
Copyright © 2018. All rights reserved.