GuidedDatePickerAction.BuilderBase
public
static
abstract
class
GuidedDatePickerAction.BuilderBase
extends BuilderBase<B extends BuilderBase>
Base Builder class to build GuidedDatePickerAction. Subclass this BuilderBase when app needs
to subclass GuidedDatePickerAction, implement your build() which should call
applyDatePickerValues(GuidedDatePickerAction)
. When using GuidedDatePickerAction
directly, use GuidedDatePickerAction.Builder
.
Summary
Public methods |
B
|
date(long date)
Sets a Date for date picker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault() time zone.
|
B
|
datePickerFormat(String format)
Sets format of date Picker or null for default.
|
B
|
maxDate(long maxDate)
Sets maximum Date for date picker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault() time zone.
|
B
|
minDate(long minDate)
Sets minimal Date for date picker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault() time zone.
|
Inherited methods |
From class
androidx.leanback.widget.GuidedAction.BuilderBase
final
void
|
applyValues(GuidedAction action)
Subclass of BuilderBase should call this function to apply values.
|
B
|
autoSaveRestoreEnabled(boolean autoSaveRestoreEnabled)
Explicitly sets auto restore feature on the GuidedAction.
|
B
|
autofillHints(String... hints)
Sets autofill hints.
|
B
|
checkSetId(int checkSetId)
Indicates whether this action is part of a single-select group similar to radio buttons
or this action is a checkbox.
|
B
|
checked(boolean checked)
Indicates whether this action is initially checked.
|
B
|
clickAction(long id)
Construct a clickable action with associated id and auto assign pre-defined title for the
action.
|
B
|
description(int descriptionResourceId)
Sets the description for this action.
|
B
|
description(CharSequence description)
Sets the description for this action.
|
B
|
descriptionEditInputType(int inputType)
Sets InputType of this action description in editing.
|
B
|
descriptionEditable(boolean editable)
Indicates whether this action's description is editable
|
B
|
descriptionInputType(int inputType)
Sets InputType of this action description not in editing.
|
B
|
editDescription(CharSequence description)
Sets the optional description text to edit.
|
B
|
editDescription(int descriptionResourceId)
Sets the optional description text to edit.
|
B
|
editInputType(int inputType)
Sets InputType of this action title in editing.
|
B
|
editTitle(CharSequence editTitle)
Sets the optional title text to edit.
|
B
|
editTitle(int editTitleResourceId)
Sets the optional title text to edit.
|
B
|
editable(boolean editable)
Indicates whether this action title is editable.
|
B
|
enabled(boolean enabled)
Indicates whether this action is enabled.
|
B
|
focusable(boolean focusable)
Indicates whether this action can take focus.
|
Context
|
getContext()
Returns Context of this Builder.
|
B
|
hasEditableActivatorView(boolean editable)
Indicates whether this action has a view can be activated to edit, e.g.
|
B
|
hasNext(boolean hasNext)
Indicates whether this action has a next state and should display a chevron.
|
B
|
icon(Drawable icon)
Sets the action's icon drawable.
|
B
|
icon(int iconResourceId)
Sets the action's icon drawable by retrieving it by resource ID from Builder's
context.
|
B
|
iconResourceId(int iconResourceId, Context context)
This method is deprecated.
Use icon(int) .
|
B
|
id(long id)
Sets the ID associated with this action.
|
B
|
infoOnly(boolean infoOnly)
Indicates whether this action is for information purposes only and cannot be clicked.
|
B
|
inputType(int inputType)
Sets InputType of this action title not in editing.
|
B
|
intent(Intent intent)
Sets the intent associated with this action.
|
B
|
multilineDescription(boolean multilineDescription)
Indicates whether the title and description are long, and should be displayed
appropriately.
|
B
|
subActions(List<GuidedAction> subActions)
Sets sub actions list.
|
B
|
title(CharSequence title)
Sets the title for this action.
|
B
|
title(int titleResourceId)
Sets the title for this action.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
BuilderBase
public BuilderBase (Context context)
Parameters |
context |
Context |
Public methods
date
public B date (long date)
Sets a Date for date picker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault()
time zone.
Returns |
B |
This Builder Object.
|
public B datePickerFormat (String format)
Sets format of date Picker or null for default. 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.
Parameters |
format |
String : Format of showing Date, e.g. "YMD". |
Returns |
B |
This Builder object.
|
maxDate
public B maxDate (long maxDate)
Sets maximum Date for date picker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault()
time zone.
Returns |
B |
This Builder Object.
|
minDate
public B minDate (long minDate)
Sets minimal Date for date picker in milliseconds since January 1, 1970 00:00:00 in
TimeZone.getDefault()
time zone.
Returns |
B |
This Builder Object.
|
Protected methods
protected final void applyDatePickerValues (GuidedDatePickerAction action)
Apply values to GuidedDatePickerAction.
Parameters |
action |
GuidedDatePickerAction : GuidedDatePickerAction to apply values.
|