Package io.jmix.ui.component
Interface Label<V>
- Type Parameters:
V- type of value
- All Superinterfaces:
Component,Component.HasDescription,Component.HasIcon,HasContextHelp,HasFormatter<V>,HasHtmlDescription,HasHtmlSanitizer,HasValue<V>,HasValueSource<V>
- All Known Subinterfaces:
NotificationsIndicator
- All Known Implementing Classes:
LabelImpl,NotificationsIndicatorImpl
@StudioComponent(caption="Label",
category="Components",
xmlElement="label",
icon="io/jmix/ui/icon/component/label.svg",
canvasBehaviour=LABEL,
canvasText="New Label",
canvasTextProperty="value",
unsupportedProperties={"enable","responsive"},
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/label.html")
public interface Label<V>
extends Component, HasValue<V>, HasValueSource<V>, HasFormatter<V>, Component.HasDescription, Component.HasIcon, HasContextHelp, HasHtmlDescription, HasHtmlSanitizer
Label component for showing non-editable short texts.
-
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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.springframework.core.ParameterizedTypeReference<Label<BigDecimal>>static final org.springframework.core.ParameterizedTypeReference<Label<LocalDateTime>>static final org.springframework.core.ParameterizedTypeReference<Label<OffsetTime>>Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionReturns a string representation of the value.booleanstatic <T,V> org.springframework.core.ParameterizedTypeReference<Label<T>> voidsetHtmlEnabled(boolean htmlEnabled) 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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasFormatter
getFormatter, setFormatterMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.data.HasValueSource
getValueSource, setValueSource
-
Field Details
-
NAME
- See Also:
-
TYPE_DEFAULT
-
TYPE_STRING
-
TYPE_INTEGER
-
TYPE_LONG
-
TYPE_DOUBLE
-
TYPE_BIGDECIMAL
-
TYPE_DATE
-
TYPE_DATETIME
-
TYPE_LOCALDATE
-
TYPE_LOCALDATETIME
static final org.springframework.core.ParameterizedTypeReference<Label<LocalDateTime>> TYPE_LOCALDATETIME -
TYPE_TIME
-
TYPE_OFFSETTIME
-
-
Method Details
-
of
-
isHtmlEnabled
boolean isHtmlEnabled() -
setHtmlEnabled
-
getRawValue
String getRawValue()Returns a string representation of the value.
-