|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.app.Dialog
com.wimm.framework.app.Dialog
com.wimm.framework.app.TimePickerDialog
public class TimePickerDialog
A Dialog
for selecting a time (hour and minute).
Use this class instead of Android's TimePickerDialog
.
Dialog
,
DatePickerDialog
,
YearPickerDialog
Nested Class Summary | |
---|---|
static interface |
TimePickerDialog.OnTimeSelectedListener
Interface supporting a callback function called when the time is selected. |
Nested classes/interfaces inherited from interface android.content.DialogInterface |
---|
DialogInterface.OnCancelListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, DialogInterface.OnKeyListener, DialogInterface.OnMultiChoiceClickListener |
Field Summary |
---|
Fields inherited from interface android.content.DialogInterface |
---|
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3 |
Constructor Summary | |
---|---|
TimePickerDialog(Context context)
Constructor. |
|
TimePickerDialog(Context context,
boolean cancelable,
DialogInterface.OnCancelListener cancelListener)
Constructor. |
Method Summary | |
---|---|
void |
setTime(int hour,
int minute)
Sets the hour and minute to display as initially selected in the dialog. |
void |
setTimeSelectedListener(TimePickerDialog.OnTimeSelectedListener listener)
Sets the listener for the onTimeSelected event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimePickerDialog(Context context)
context
- The Context
.public TimePickerDialog(Context context, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
context
- The Context
.cancelable
- A flag specifying whether the dialog can be cancelled.cancelListener
- The listener to inform when the dialog's cancel
method is called.Method Detail |
---|
public void setTimeSelectedListener(TimePickerDialog.OnTimeSelectedListener listener)
onTimeSelected
event.
listener
- Holds the listener for onTimeSelected
.public void setTime(int hour, int minute)
hour
- The selected hour.minute
- The selected minute.
|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |