public class NumberPickerDialogFragment
extends DialogFragment
| Modifier and Type | Class and Description |
|---|---|
static interface |
NumberPickerDialogFragment.NumberPickerDialogHandlerV2
This interface allows objects to register for the Picker's set action.
|
| Constructor and Description |
|---|
NumberPickerDialogFragment() |
| Modifier and Type | Method and Description |
|---|---|
static NumberPickerDialogFragment |
newInstance(int reference,
int themeResId,
java.math.BigDecimal minNumber,
java.math.BigDecimal maxNumber,
java.lang.Integer plusMinusVisibility,
java.lang.Integer decimalVisibility,
java.lang.String labelText,
java.lang.Integer currentNumberValue,
java.lang.Double currentDecimalValue,
java.lang.Integer currentNumberSign)
Create an instance of the Picker (used internally)
|
void |
onCancel(android.content.DialogInterface dialog) |
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 |
setNumberPickerDialogHandlersV2(java.util.Vector<NumberPickerDialogFragment.NumberPickerDialogHandlerV2> 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 NumberPickerDialogFragment newInstance(int reference, int themeResId, java.math.BigDecimal minNumber, java.math.BigDecimal maxNumber, java.lang.Integer plusMinusVisibility, java.lang.Integer decimalVisibility, java.lang.String labelText, java.lang.Integer currentNumberValue, java.lang.Double currentDecimalValue, java.lang.Integer currentNumberSign)
reference - an (optional) user-defined reference, helpful when tracking multiple PickersthemeResId - the style resource ID for themingminNumber - (optional) the minimum possible numbermaxNumber - (optional) the maximum possible numberplusMinusVisibility - (optional) View.VISIBLE, View.INVISIBLE, or View.GONEdecimalVisibility - (optional) View.VISIBLE, View.INVISIBLE, or View.GONElabelText - (optional) text to add as a labelpublic 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 setNumberPickerDialogHandlersV2(java.util.Vector<NumberPickerDialogFragment.NumberPickerDialogHandlerV2> handlers)
handlers - a Vector of handlerspublic void onCancel(android.content.DialogInterface dialog)