public class GuidedDatePickerAction extends GuidedAction
Modifier and Type | Class and Description |
---|---|
static class |
GuidedDatePickerAction.Builder
Builder class to build a GuidedDatePickerAction.
|
static class |
GuidedDatePickerAction.BuilderBase<B extends GuidedDatePickerAction.BuilderBase>
Base Builder class to build GuidedDatePickerAction.
|
ACTION_ID_CANCEL, ACTION_ID_CONTINUE, ACTION_ID_CURRENT, ACTION_ID_FINISH, ACTION_ID_NEXT, ACTION_ID_NO, ACTION_ID_OK, ACTION_ID_YES, CHECKBOX_CHECK_SET_ID, DEFAULT_CHECK_SET_ID, NO_CHECK_SET
Constructor and Description |
---|
GuidedDatePickerAction() |
Modifier and Type | Method and Description |
---|---|
long |
getDate()
Get current value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault() time zone. |
String |
getDatePickerFormat()
Returns format of date Picker or null if not specified.
|
long |
getMaxDate()
Get maximum value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault() time zone. |
long |
getMinDate()
Get minimal value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault() time zone |
void |
onRestoreInstanceState(Bundle bundle,
String key)
Restore action from a bundle using a given key.
|
void |
onSaveInstanceState(Bundle bundle,
String key)
Save action into a bundle using a given key.
|
void |
setDate(long date)
Sets current value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault() time zone. |
getCheckSetId, getDescription, getDescriptionEditInputType, getDescriptionInputType, getEditDescription, getEditInputType, getEditTitle, getInputType, getIntent, getSubActions, getTitle, hasEditableActivatorView, hasMultilineDescription, hasNext, hasSubActions, hasTextEditable, infoOnly, isAutoSaveRestoreEnabled, isChecked, isDescriptionEditable, isEditable, isEditTitleUsed, isEnabled, isFocusable, setChecked, setDescription, setEditDescription, setEditTitle, setEnabled, setFocusable, setIntent, setSubActions, setTitle
addKeyCode, getIcon, getId, getLabel1, getLabel2, removeKeyCode, respondsToKeyCode, setIcon, setId, setLabel1, setLabel2, toString
public String getDatePickerFormat()
public long getDate()
TimeZone.getDefault()
time zone.public void setDate(long date)
TimeZone.getDefault()
time zone.date
- New value to update current value of DatePicker Action.public long getMinDate()
TimeZone.getDefault()
time zone. -1 if not set.public long getMaxDate()
TimeZone.getDefault()
time zone.public void onSaveInstanceState(Bundle bundle, String key)
GuidedAction
GuidedAction.isEditable()
is true: save text of GuidedAction.getTitle()
GuidedAction.isDescriptionEditable()
is true: save text of GuidedAction.getDescription()
GuidedAction.getCheckSetId()
is not GuidedAction.NO_CHECK_SET
: save GuidedAction.isChecked()
}GuidedDatePickerAction
will be savedonSaveInstanceState
in class GuidedAction
bundle
- Bundle to save the Action.key
- Key used to save the Action.public void onRestoreInstanceState(Bundle bundle, String key)
GuidedAction
GuidedAction.isEditable()
is true: save text of GuidedAction.getTitle()
GuidedAction.isDescriptionEditable()
is true: save text of GuidedAction.getDescription()
GuidedAction.getCheckSetId()
is not GuidedAction.NO_CHECK_SET
: save GuidedAction.isChecked()
}GuidedDatePickerAction
will be savedonRestoreInstanceState
in class GuidedAction
bundle
- Bundle to restore the Action from.key
- Key used to restore the Action.