Subclass of GuidedAction that can choose a date. The Action is editable by default; to make it
read only, call hasEditableActivatorView(false) on the Builder.
Nested classes |
class |
GuidedDatePickerAction.Builder
Builder class to build a GuidedDatePickerAction.
|
class |
GuidedDatePickerAction.BuilderBase<B extends BuilderBase>
Base Builder class to build GuidedDatePickerAction.
|
Public methods |
long
|
getDate()
Get current value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
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
getDefault() time zone.
|
long
|
getMinDate()
Get minimal value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
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
getDefault() time zone.
|
Public constructors
GuidedDatePickerAction
GuidedDatePickerAction ()
Public methods
getDate
long getDate ()
Get current value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
getDefault()
time zone.
Returns |
long |
Current value of DatePicker Action.
|
String getDatePickerFormat ()
Returns format of date Picker or null if not specified. The format is a case insensitive
String containing the * day ('d'), month ('m'), and year ('y'). When the format is not
specified, a default format of current locale will
be used.
Returns |
String |
Format of showing Date, e.g. "YMD". Returns null if using current locale's default.
|
getMaxDate
long getMaxDate ()
Get maximum value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
getDefault()
time zone.
Returns |
long |
Maximum value of DatePicker Action or Long.MAX_VALUE if not set.
|
getMinDate
long getMinDate ()
Get minimal value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
getDefault()
time zone. -1 if not set.
Returns |
long |
Minimal value of DatePicker Action or Long.MIN_VALUE if not set.
|
setDate
void setDate (long date)
Sets current value of DatePicker in milliseconds since January 1, 1970 00:00:00 in
getDefault()
time zone.
Parameters |
date |
long : New value to update current value of DatePicker Action.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-11 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."]]