public class Time extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
Time.Property |
Constructor and Description |
---|
Time()
Creates new Time object.
|
Time(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Returns value of text property.
|
java.lang.String |
getTimeZone()
Returns value of timeZone property.
|
java.util.Date |
getValue()
Returns value of value property.
|
void |
setText(java.lang.String value)
Sets new value for text property.
|
void |
setTimeZone(java.lang.String value)
Sets new value for timeZone property.
|
void |
setValue(java.util.Date value)
Sets new value for value property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public Time()
@Deprecated public Time(Map map)
map
- owner Map objectpublic java.lang.String getText()
Contains a string representing the time's value. The time is displayed in the time zone of the transit stop.
setText(java.lang.String)
public void setText(java.lang.String value)
value
- new property valuegetText()
public java.lang.String getTimeZone()
Contains the time zone in which this stop lies. The value is the name of the time zone as defined in the IANA Time Zone Database, e.g. "America/New_York".
setTimeZone(java.lang.String)
public void setTimeZone(java.lang.String value)
value
- new property valuegetTimeZone()
public java.util.Date getValue()
Contains the time of this departure or arrival, specified as a Java Date object.
setValue(java.util.Date)
public void setValue(java.util.Date value)
value
- new property valuegetValue()