public class LabelImpl<V> extends AbstractViewComponent<com.vaadin.ui.Label,java.lang.String,V> implements Label<V>
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 |
---|---|
protected Formatter<? super V> |
formatter |
protected io.jmix.core.MetadataTools |
metadataTools |
internalValue, uiTestIdsSupport, valueBinding
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME, TYPE_BIGDECIMAL, TYPE_DATE, TYPE_DATETIME, TYPE_DEFAULT, TYPE_DOUBLE, TYPE_INTEGER, TYPE_LOCALDATE, TYPE_LOCALDATETIME, TYPE_LONG, TYPE_OFFSETTIME, TYPE_STRING, TYPE_TIME
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
LabelImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convertToPresentation(V modelValue) |
protected com.vaadin.ui.Label |
createComponent() |
Formatter<V> |
getFormatter() |
java.lang.String |
getRawValue()
Returns a string representation of the value.
|
protected void |
initComponent(com.vaadin.ui.Label component) |
boolean |
isHtmlEnabled() |
void |
setFormatter(Formatter<? super V> formatter) |
void |
setHtmlEnabled(boolean htmlEnabled) |
void |
setMetadataTools(io.jmix.core.MetadataTools metadataTools) |
protected void |
setValueToPresentation(java.lang.String value) |
addValueChangeListener, fieldValueEquals, getValue, getValueSource, setUiTestId, setUiTestIdsSupport, setValue, setValueSource, valueBindingActivated, valueBindingConnected
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValue
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
getValueSource, setValueSource
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isDescriptionAsHtml, setDescriptionAsHtml
getDescription, setDescription
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
protected com.vaadin.ui.Label createComponent()
protected void initComponent(com.vaadin.ui.Label component)
@Autowired public void setMetadataTools(io.jmix.core.MetadataTools metadataTools)
protected void setValueToPresentation(@Nullable java.lang.String value)
setValueToPresentation
in class AbstractViewComponent<com.vaadin.ui.Label,java.lang.String,V>
@Nullable protected java.lang.String convertToPresentation(@Nullable V modelValue)
convertToPresentation
in class AbstractViewComponent<com.vaadin.ui.Label,java.lang.String,V>
@Nullable public Formatter<V> getFormatter()
getFormatter
in interface HasFormatter<V>
public void setFormatter(@Nullable Formatter<? super V> formatter)
setFormatter
in interface HasFormatter<V>
public boolean isHtmlEnabled()
isHtmlEnabled
in interface Label<V>
public void setHtmlEnabled(boolean htmlEnabled)
setHtmlEnabled
in interface Label<V>
public java.lang.String getRawValue()
Label
getRawValue
in interface Label<V>