Follow us on GitHub

com.google.gwt.maps.client.services
Class Duration

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.services.Duration

public class Duration
extends JavaScriptObject

A representation of duration as a numeric value and a display string.

See Duration API Doc


Constructor Summary
protected Duration()
          use newInstance();
 
Method Summary
 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.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Duration

protected Duration()
use newInstance();

Method Detail

newInstance

public static final Duration newInstance()
A representation of duration as a numeric value and a display string.


setText

public final void setText(String text)
A string representation of the duration value.

Parameters:
text -

getText

public final String getText()
A string representation of the duration value.


setValue

public final void setValue(int value)
The duration in seconds.

Parameters:
value -

getValue

public final int getValue()
The duration in seconds.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.