public class Duration extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
Duration()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
String |
getText()
A string representation of the duration value.
|
int |
getValue()
The duration in seconds.
|
static Duration |
newInstance()
A representation of duration as a numeric value and a display string.
|
void |
setText(String text)
A string representation of the duration value.
|
void |
setValue(int value)
The duration in seconds.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final Duration 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.