@NotThreadSafe public static final class DatePicker.Builder extends Object
DatePicker.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
DatePicker |
build()
Builds a new
DatePicker. |
DatePicker.Builder |
from(DatePickerIF instance)
Fill a builder with attribute values from the provided
DatePickerIF instance. |
DatePicker.Builder |
setActionId(String actionId)
Initializes the value for the
actionId attribute. |
DatePicker.Builder |
setConfirmationDialog(ConfirmationDialog confirmationDialog)
Initializes the optional value
confirmationDialog to confirmationDialog. |
DatePicker.Builder |
setConfirmationDialog(Optional<ConfirmationDialog> confirmationDialog)
Initializes the optional value
confirmationDialog to confirmationDialog. |
DatePicker.Builder |
setInitialDate(LocalDate initialDate)
Initializes the optional value
initialDate to initialDate. |
DatePicker.Builder |
setInitialDate(Optional<LocalDate> initialDate)
Initializes the optional value
initialDate to initialDate. |
DatePicker.Builder |
setPlaceholder(Optional<Text> placeholder)
Initializes the optional value
placeholder to placeholder. |
DatePicker.Builder |
setPlaceholder(Text placeholder)
Initializes the optional value
placeholder to placeholder. |
public final DatePicker.Builder from(DatePickerIF instance)
DatePickerIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final DatePicker.Builder setActionId(String actionId)
actionId attribute.actionId - The value for actionIdthis builder for use in a chained invocationpublic final DatePicker.Builder setPlaceholder(@Nullable Text placeholder)
placeholder to placeholder.placeholder - The value for placeholder, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final DatePicker.Builder setPlaceholder(Optional<Text> placeholder)
placeholder to placeholder.placeholder - The value for placeholderthis builder for use in a chained invocationpublic final DatePicker.Builder setInitialDate(@Nullable LocalDate initialDate)
initialDate to initialDate.initialDate - The value for initialDate, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final DatePicker.Builder setInitialDate(Optional<LocalDate> initialDate)
initialDate to initialDate.initialDate - The value for initialDatethis builder for use in a chained invocationpublic final DatePicker.Builder setConfirmationDialog(@Nullable ConfirmationDialog confirmationDialog)
confirmationDialog to confirmationDialog.confirmationDialog - The value for confirmationDialog, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final DatePicker.Builder setConfirmationDialog(Optional<ConfirmationDialog> confirmationDialog)
confirmationDialog to confirmationDialog.confirmationDialog - The value for confirmationDialogthis builder for use in a chained invocationpublic DatePicker build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
DatePicker.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.