|
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.DatePickerDialog
public class DatePickerDialog
A Dialog
for selecting a date (month and day).
Use this class and YearPickerDialog
instead of Android's DatePickerDialog
.
Dialog
,
TimePickerDialog
,
YearPickerDialog
Nested Class Summary | |
---|---|
static interface |
DatePickerDialog.OnDateSelectedListener
This interface supports a callback function that is called when the date 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 | |
---|---|
DatePickerDialog(Context context)
Constructor. |
|
DatePickerDialog(Context context,
boolean cancelable,
DialogInterface.OnCancelListener cancelListener)
Constructor. |
Method Summary | |
---|---|
void |
setDate(int month,
int day)
Sets the month and day to display as initially selected in the dialog. |
void |
setDateSelectedListener(DatePickerDialog.OnDateSelectedListener listener)
Sets the listener for the onDateSelected event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatePickerDialog(Context context)
context
- The Context
.public DatePickerDialog(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 setDateSelectedListener(DatePickerDialog.OnDateSelectedListener listener)
onDateSelected
event.
listener
- The listener.public void setDate(int month, int day)
month
- The selected month.day
- The selected day.
|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |