public class DatePickerDialogFragment
extends DialogFragment
| Modifier and Type | Class and Description |
|---|---|
static interface |
DatePickerDialogFragment.DatePickerDialogHandler
This interface allows objects to register for the Picker's set action.
|
| Constructor and Description |
|---|
DatePickerDialogFragment() |
| Modifier and Type | Method and Description |
|---|---|
static DatePickerDialogFragment |
newInstance(int reference,
int themeResId,
java.lang.Integer monthOfYear,
java.lang.Integer dayOfMonth,
java.lang.Integer year,
java.lang.Boolean yearOptional)
Create an instance of the Picker (used internally)
|
void |
onCreate(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDismiss(android.content.DialogInterface dialoginterface) |
void |
onSaveInstanceState(android.os.Bundle outState) |
void |
setDatePickerDialogHandlers(java.util.Vector<DatePickerDialogFragment.DatePickerDialogHandler> handlers)
Attach a Vector of handlers to be notified in addition to the Fragment's Activity and target Fragment.
|
void |
setOnDismissListener(OnDialogDismissListener ondialogdismisslistener) |
public static DatePickerDialogFragment newInstance(int reference, int themeResId, java.lang.Integer monthOfYear, java.lang.Integer dayOfMonth, java.lang.Integer year, java.lang.Boolean yearOptional)
reference - an (optional) user-defined reference, helpful when tracking multiple PickersthemeResId - the style resource ID for themingmonthOfYear - (optional) zero-indexed month of year to pre-setdayOfMonth - (optional) day of month to pre-setyear - (optional) year to pre-setpublic void onSaveInstanceState(android.os.Bundle outState)
public void onCreate(android.os.Bundle savedInstanceState)
public android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
public void onDismiss(android.content.DialogInterface dialoginterface)
public void setOnDismissListener(OnDialogDismissListener ondialogdismisslistener)
public void setDatePickerDialogHandlers(java.util.Vector<DatePickerDialogFragment.DatePickerDialogHandler> handlers)
handlers - a Vector of handlers