public class Duration extends MapObject
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Duration.Property |
| Constructor and Description |
|---|
Duration()
Creates new Duration object.
|
Duration(Map map)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Returns value of text property.
|
double |
getValue()
Returns value of value property.
|
void |
setText(java.lang.String value)
Sets new value for text property.
|
void |
setValue(double value)
Sets new value for value property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updatePropertypublic Duration()
@Deprecated public Duration(Map map)
map - owner Map objectpublic java.lang.String getText()
Represents a string representation of the duration value.
setText(java.lang.String)public void setText(java.lang.String value)
value - new property valuegetText()public double getValue()
Represents the duration in seconds.
setValue(double)public void setValue(double value)
value - new property valuegetValue()