public class ExpirationPickerBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ExpirationPickerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ExpirationPickerBuilder |
addExpirationPickerDialogHandler(ExpirationPickerDialogFragment.ExpirationPickerDialogHandler handler)
Attach universal objects as additional handlers for notification when the Picker is set.
|
ExpirationPickerBuilder |
removeExpirationPickerDialogHandler(ExpirationPickerDialogFragment.ExpirationPickerDialogHandler handler)
Remove objects previously added as handlers.
|
ExpirationPickerBuilder |
setFragmentManager(FragmentManager manager)
Attach a FragmentManager.
|
ExpirationPickerBuilder |
setMinYear(int year)
Set the minimum year that the user is allowed to pick.
|
ExpirationPickerBuilder |
setMonthOfYear(int monthOfYear)
Pre-set a zero-indexed month of year.
|
ExpirationPickerBuilder |
setOnDismissListener(OnDialogDismissListener onDismissListener) |
ExpirationPickerBuilder |
setReference(int reference)
Attach a reference to this Picker instance.
|
ExpirationPickerBuilder |
setStyleResId(int styleResId)
Attach a style resource ID for theming.
|
ExpirationPickerBuilder |
setTargetFragment(Fragment targetFragment)
Attach a target Fragment.
|
ExpirationPickerBuilder |
setYear(int year)
Pre-set a year.
|
void |
show()
Instantiate and show the Picker
|
public ExpirationPickerBuilder setFragmentManager(FragmentManager manager)
manager - the FragmentManager that handles the transactionpublic ExpirationPickerBuilder setStyleResId(int styleResId)
styleResId - the style resource ID to use for themingpublic ExpirationPickerBuilder setTargetFragment(Fragment targetFragment)
targetFragment - the Fragment to attach topublic ExpirationPickerBuilder setReference(int reference)
reference - a user-defined int intended for Picker trackingpublic ExpirationPickerBuilder setMinYear(int year)
year - the year to set as the minimumpublic ExpirationPickerBuilder setMonthOfYear(int monthOfYear)
monthOfYear - the zero-indexed month of year to pre-setpublic ExpirationPickerBuilder setYear(int year)
year - the year to pre-setpublic ExpirationPickerBuilder addExpirationPickerDialogHandler(ExpirationPickerDialogFragment.ExpirationPickerDialogHandler handler)
handler - an Object implementing the appropriate Picker Handlerpublic ExpirationPickerBuilder removeExpirationPickerDialogHandler(ExpirationPickerDialogFragment.ExpirationPickerDialogHandler handler)
handler - the Object to removepublic void show()
public ExpirationPickerBuilder setOnDismissListener(OnDialogDismissListener onDismissListener)