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 Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static 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.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Method Summary
Modifier and TypeMethodDescriptionReturns resolution of the DatePicker.getValue()
void
setResolution
(DatePicker.Resolution resolution) Sets resolution of the DatePicker.Methods inherited from interface io.jmix.ui.component.Buffered
commit, discard, isBuffered, isModified, setBuffered
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, 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, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditable
Methods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
Methods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
Methods inherited from interface io.jmix.ui.component.HasDatatype
getDatatype, setDatatype
Methods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtml
Methods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtml
Methods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
Methods inherited from interface io.jmix.ui.component.HasRange
getRangeEnd, getRangeStart, setRangeEnd, setRangeStart
Methods inherited from interface io.jmix.ui.component.HasValidator
addValidator, addValidators, getValidators, removeValidator
Methods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, isEmpty, setValue
Methods inherited from interface io.jmix.ui.component.data.HasValueSource
getValueSource, setValueSource
Methods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessage
Methods inherited from interface io.jmix.ui.component.Validatable
isValid, isValidateOnCommit, validate
-
Field Details
-
NAME
- See Also:
-
TYPE_DEFAULT
-
TYPE_DATE
-
TYPE_DATETIME
-
TYPE_LOCALDATE
static final org.springframework.core.ParameterizedTypeReference<DatePicker<LocalDate>> TYPE_LOCALDATE -
TYPE_LOCALDATETIME
static final org.springframework.core.ParameterizedTypeReference<DatePicker<LocalDateTime>> TYPE_LOCALDATETIME -
TYPE_OFFSETDATETIME
static final org.springframework.core.ParameterizedTypeReference<DatePicker<OffsetDateTime>> TYPE_OFFSETDATETIME
-
-
Method Details
-
getResolution
DatePicker.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
-