public class Distance extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
Distance()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
String |
getText()
A string representation of the distance value, using the UnitSystem specified in the request.
|
int |
getValue()
The distance in meters.
|
static Distance |
newInstance()
A representation of distance as a numeric value and a display string.
|
void |
setText(String text)
A string representation of the distance value, using the UnitSystem specified in the request.
|
void |
setValue(int value)
The distance in meters.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final Distance newInstance()
public final void setText(String text)
text
- public final String getText()
public final void setValue(int value)
value
- public final int getValue()
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.