V
- type of value@StudioComponent(caption="TimeField", category="Components", xmlElement="timeField", icon="io/jmix/ui/icon/component/timeField.svg", canvasBehaviour=TIME_FIELD, documentationURL="https://docs.jmix.io/jmix/%VERSION%/backoffice-ui/vcl/components/time-field.html") public interface TimeField<V> extends Field<V>, HasDatatype<V>, Buffered, Component.Focusable
Modifier and Type | Interface and Description |
---|---|
static class |
TimeField.Resolution |
static class |
TimeField.TimeMode
Defines component time mode (12h AP/PM or 24h).
|
HasValue.ValueChangeEvent<V>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static org.springframework.core.ParameterizedTypeReference<TimeField<java.sql.Date>> |
TYPE_DEFAULT |
static org.springframework.core.ParameterizedTypeReference<TimeField<java.time.LocalTime>> |
TYPE_LOCALTIME |
static org.springframework.core.ParameterizedTypeReference<TimeField<java.time.OffsetTime>> |
TYPE_OFFSETTIME |
static org.springframework.core.ParameterizedTypeReference<TimeField<java.sql.Time>> |
TYPE_TIME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormat()
Returns the time format of the TimeField.
|
TimeField.Resolution |
getResolution()
Returns the resolution of the TimeField.
|
TimeField.TimeMode |
getTimeMode() |
void |
setFormat(java.lang.String timeFormat)
Sets the time format of the TimeField.
|
void |
setResolution(TimeField.Resolution resolution)
Sets the resolution of the TimeField.
|
void |
setTimeMode(TimeField.TimeMode timeMode)
Sets time mode to use (12h AM/PM or 24h).
|
getValueSource, setValueSource
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
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
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
addValidator, addValidators, getValidators, removeValidator
getRequiredMessage, isRequired, setRequired, setRequiredMessage
getDatatype, setDatatype
commit, discard, isBuffered, isModified, setBuffered
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
static final java.lang.String NAME
static final org.springframework.core.ParameterizedTypeReference<TimeField<java.sql.Date>> TYPE_DEFAULT
static final org.springframework.core.ParameterizedTypeReference<TimeField<java.sql.Time>> TYPE_TIME
static final org.springframework.core.ParameterizedTypeReference<TimeField<java.time.LocalTime>> TYPE_LOCALTIME
static final org.springframework.core.ParameterizedTypeReference<TimeField<java.time.OffsetTime>> TYPE_OFFSETTIME
TimeField.Resolution getResolution()
@StudioProperty(type=ENUMERATION, defaultValue="MIN", options={"HOUR","MIN","SEC"}) void setResolution(TimeField.Resolution resolution)
resolution
- resolutionjava.lang.String getFormat()
@StudioProperty(name="timeFormat", type=LOCALIZED_STRING) void setFormat(java.lang.String timeFormat)
timeFormat
- time format@StudioProperty(type=ENUMERATION, defaultValue="H_24", options={"H_12","H_24"}) void setTimeMode(TimeField.TimeMode timeMode)
By default the 24h mode is used.
timeMode
- time modeTimeField.TimeMode getTimeMode()
TimeField.TimeMode
that is used by component