public class IlluminationDialog extends java.lang.Object implements TimeZonePickerFragment.TimeZonePickerListener, DatePickerFragment.DatePickerListener, TimePickerFragment.TimePickerListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
IlluminationDialog.Callback
Callback when the date time is set.
|
| Constructor and Description |
|---|
IlluminationDialog(MapView mapView) |
| Modifier and Type | Method and Description |
|---|---|
void |
onDatePicked(int year,
int month,
int dayOfMonth) |
void |
onTimePicked(int hourOfDay,
int minute)
Returns the valid hours and minutes for the picker or will not be called if
the Time Picker is cancelled
|
void |
onTimeZonePicked(java.util.TimeZone timeZone)
Returns the valid timezone when picked or will not be called if the dialog
is cancelled.
|
IlluminationDialog |
setCallback(IlluminationDialog.Callback cb)
Sets the callback for the IlluminationDialog
|
IlluminationDialog |
setTime(long time)
Sets the date time of the IlluminationDialog
|
IlluminationDialog |
setTitle(java.lang.String title)
Sets the title of the IlluminationDialog
|
void |
show() |
public IlluminationDialog(MapView mapView)
public IlluminationDialog setTitle(java.lang.String title)
title - the title to be used on the dialogpublic IlluminationDialog setTime(long time)
time - the time to use based on millis since epochpublic IlluminationDialog setCallback(IlluminationDialog.Callback cb)
cb - the callback to usepublic void onTimeZonePicked(java.util.TimeZone timeZone)
TimeZonePickerFragment.TimeZonePickerListeneronTimeZonePicked in interface TimeZonePickerFragment.TimeZonePickerListenertimeZone - the timezone pickedpublic void onDatePicked(int year,
int month,
int dayOfMonth)
onDatePicked in interface DatePickerFragment.DatePickerListenerpublic void onTimePicked(int hourOfDay,
int minute)
TimePickerFragment.TimePickerListeneronTimePicked in interface TimePickerFragment.TimePickerListenerhourOfDay - the hours of the day [0,23]minute - the minutes of the day [0,59]public void show()