Class DateRangePickerOverlay<D extends DateRange>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
software.xdev.vaadin.daterange_picker.ui.DateRangePickerOverlay<D>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.orderedlayout.FlexComponent,com.vaadin.flow.data.binder.HasItems<D>,Serializable
@CssImport("./styles/dateRangePicker.css")
public class DateRangePickerOverlay<D extends DateRange>
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
implements com.vaadin.flow.data.binder.HasItems<D>, com.vaadin.flow.component.orderedlayout.FlexComponent
Overlay of the expanded
DateRangePicker- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment, com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.vaadin.flow.component.button.Buttonprotected final com.vaadin.flow.component.button.Buttonprotected com.vaadin.flow.component.combobox.ComboBox<D>protected DateRangeModel<D>protected DateRangePicker<D>protected com.vaadin.flow.component.datepicker.DatePickerprotected com.vaadin.flow.component.datepicker.DatePickerprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddValueChangeListener(com.vaadin.flow.component.ComponentEventListener<DateRangePickerOverlay<D>.DateRangeOverlayValueChangeEvent> listener) protected voidcalcModel(Optional<DateRangeResult> optResult, DateRangeModel<D> model) protected voidfireValueChanged(DateRangeModel<D> oldValue, boolean isFromClient) com.vaadin.flow.component.combobox.ComboBox<D>com.vaadin.flow.component.datepicker.DatePickergetDpEnd()com.vaadin.flow.component.datepicker.DatePickergetModel()protected DateRangeModel<D>protected voidinitDatePicker(com.vaadin.flow.component.datepicker.DatePicker dp) protected voidinitUI()booleanprotected voidmoveRange(int dif) protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) protected voidonComboBoxDateRangeValueChanged(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<D>, D> ev) protected voidonDatePickerValueChanged(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datepicker.DatePicker, LocalDate> ev) protected voidonValueChange(Function<DateRangeModel<D>, Optional<DateRangeResult>> calcFunc) protected voidprotected voidsetCurrentModel(DateRangeModel<D> model) voidsetItems(Collection<D> items) voidsetModel(DateRangeModel<D> model) voidsetReadOnly(boolean readOnly) protected voidsetTextFieldDefaultWidthFlexConform(com.vaadin.flow.component.HasStyle component) protected voidupdateComponentsFromModel(DateRangeModel<D> model) Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent
expand, getAlignItems, getAlignSelf, getFlexGrow, getFlexShrink, getJustifyContentMode, replace, setAlignItems, setAlignSelf, setFlexGrow, setFlexShrink, setJustifyContentModeMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.data.binder.HasItems
setItems, setItemsMethods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOfMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
readOnly
protected boolean readOnly -
dateRangePicker
-
currentModel
-
btnBackwardRange
protected final com.vaadin.flow.component.button.Button btnBackwardRange -
cbDateRange
-
btnForwardRange
protected final com.vaadin.flow.component.button.Button btnForwardRange -
dpStart
protected com.vaadin.flow.component.datepicker.DatePicker dpStart -
dpEnd
protected com.vaadin.flow.component.datepicker.DatePicker dpEnd
-
-
Constructor Details
-
DateRangePickerOverlay
-
-
Method Details
-
initUI
protected void initUI() -
initDatePicker
protected void initDatePicker(com.vaadin.flow.component.datepicker.DatePicker dp) -
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttachin classcom.vaadin.flow.component.Component
-
setTextFieldDefaultWidthFlexConform
protected void setTextFieldDefaultWidthFlexConform(com.vaadin.flow.component.HasStyle component) -
registerListeners
protected void registerListeners() -
onComboBoxDateRangeValueChanged
-
onDatePickerValueChanged
protected void onDatePickerValueChanged(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.datepicker.DatePicker, LocalDate> ev) -
moveRange
protected void moveRange(int dif) -
calcModel
-
onValueChange
-
getModelFromComponents
-
updateComponentsFromModel
-
setCurrentModel
-
fireValueChanged
-
setItems
-
getCbDateRange
-
getDpStart
public com.vaadin.flow.component.datepicker.DatePicker getDpStart() -
getDpEnd
public com.vaadin.flow.component.datepicker.DatePicker getDpEnd() -
getModel
-
setModel
-
setReadOnly
public void setReadOnly(boolean readOnly) -
isReadOnly
public boolean isReadOnly() -
addValueChangeListener
public com.vaadin.flow.shared.Registration addValueChangeListener(com.vaadin.flow.component.ComponentEventListener<DateRangePickerOverlay<D>.DateRangeOverlayValueChangeEvent> listener)
-