Package io.jmix.ui.component
Interface DatePicker<V>
- Type Parameters:
- V- type of value
- All Superinterfaces:
- Buffered,- Component,- Component.BelongToFrame,- Component.Editable,- Component.Focusable,- Component.HasCaption,- Component.HasDescription,- Component.HasIcon,- Field<V>,- HasContextHelp,- HasDatatype<V>,- HasHtmlCaption,- HasHtmlDescription,- HasHtmlSanitizer,- HasRange<V>,- HasValidator<V>,- HasValue<V>,- HasValueSource<V>,- Requirable,- Validatable
- All Known Implementing Classes:
- DatePickerImpl
@StudioComponent(caption="DatePicker",
                 category="Components",
                 xmlElement="datePicker",
                 icon="io/jmix/ui/icon/component/datePicker.svg",
                 canvasBehaviour=DATE_PICKER,
                 documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/date-picker.html")
public interface DatePicker<V>
extends Field<V>, HasDatatype<V>, Component.Focusable, HasRange<V>, Buffered
A date entry component, which displays the actual date selector inline.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface io.jmix.ui.component.ComponentComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelpHasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasValueHasValue.ValueChangeEvent<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.springframework.core.ParameterizedTypeReference<DatePicker<Date>>static final org.springframework.core.ParameterizedTypeReference<DatePicker<Date>>static final org.springframework.core.ParameterizedTypeReference<DatePicker<Date>>static final org.springframework.core.ParameterizedTypeReference<DatePicker<LocalDate>>static final org.springframework.core.ParameterizedTypeReference<DatePicker<LocalDateTime>>static final org.springframework.core.ParameterizedTypeReference<DatePicker<OffsetDateTime>>Fields inherited from interface io.jmix.ui.component.ComponentAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
- 
Method SummaryModifier and TypeMethodDescriptionReturns resolution of the DatePicker.getValue()voidsetResolution(DatePicker.Resolution resolution) Sets resolution of the DatePicker.Methods inherited from interface io.jmix.ui.component.Bufferedcommit, discard, isBuffered, isModified, setBufferedMethods inherited from interface io.jmix.ui.component.ComponentaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFramegetFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.EditableisEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.Focusablefocus, getTabIndex, isFocusable, setFocusable, setTabIndexMethods inherited from interface io.jmix.ui.component.Component.HasCaptiongetCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescriptiongetDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcongetIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelpgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasDatatypegetDatatype, setDatatypeMethods inherited from interface io.jmix.ui.component.HasHtmlCaptionisCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescriptionisDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizerisHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasRangegetRangeEnd, getRangeStart, setRangeEnd, setRangeStartMethods inherited from interface io.jmix.ui.component.HasValidatoraddValidator, addValidators, getValidators, removeValidatorMethods inherited from interface io.jmix.ui.component.HasValueaddValueChangeListener, clear, getEmptyValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.data.HasValueSourcegetValueSource, setValueSourceMethods inherited from interface io.jmix.ui.component.RequirablegetRequiredMessage, isRequired, setRequired, setRequiredMessageMethods inherited from interface io.jmix.ui.component.ValidatableisValid, isValidateOnCommit, validate
- 
Field Details- 
NAME- See Also:
 
- 
TYPE_DEFAULT
- 
TYPE_DATE
- 
TYPE_DATETIME
- 
TYPE_LOCALDATEstatic final org.springframework.core.ParameterizedTypeReference<DatePicker<LocalDate>> TYPE_LOCALDATE
- 
TYPE_LOCALDATETIMEstatic final org.springframework.core.ParameterizedTypeReference<DatePicker<LocalDateTime>> TYPE_LOCALDATETIME
- 
TYPE_OFFSETDATETIMEstatic final org.springframework.core.ParameterizedTypeReference<DatePicker<OffsetDateTime>> TYPE_OFFSETDATETIME
 
- 
- 
Method Details- 
getResolutionDatePicker.Resolution getResolution()Returns resolution of the DatePicker.- Returns:
- Resolution
 
- 
setResolution@StudioProperty(type=ENUMERATION, defaultValue="DAY", options={"YEAR","MONTH","DAY"}) void setResolution(DatePicker.Resolution resolution) Sets resolution of the DatePicker.- Parameters:
- resolution- resolution
 
- 
getValue
 
-