Package io.jmix.ui.component.impl
Class AbstractValueComponent<T extends com.vaadin.ui.Component & com.vaadin.data.HasValue<P>,P,V>
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<T>
io.jmix.ui.component.impl.AbstractValueComponent<T,P,V>
- All Implemented Interfaces:
AttachNotifier
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasValueSource<V>
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,HasValue<V>
- Direct Known Subclasses:
AbstractField
public abstract class AbstractValueComponent<T extends com.vaadin.ui.Component & com.vaadin.data.HasValue<P>,P,V>
extends AbstractComponent<T>
implements HasValue<V>, HasValueSource<V>
-
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 TypeFieldDescriptionprotected V
protected UiTestIdsSupport
protected ValueBinding<V>
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValueChangeListener
(Consumer<HasValue.ValueChangeEvent<V>> listener) protected void
commit()
protected void
componentValueChanged
(P prevComponentValue, P newComponentValue, boolean isUserOriginated) protected V
convertToModel
(P componentRawValue) protected P
convertToPresentation
(V modelValue) protected void
discard()
protected boolean
fieldValueEquals
(V value, V oldValue) getValue()
protected boolean
protected boolean
protected void
setBuffered
(boolean buffered) protected void
setUiTestId
(ValueSource<V> valueSource) void
setUiTestIdsSupport
(UiTestIdsSupport uiTestIdsSupport) void
void
setValueSource
(ValueSource<V> valueSource) Sets value source for component.protected void
setValueToPresentation
(P value) protected void
valueBindingActivated
(ValueSource<V> valueSource) protected void
valueBindingConnected
(ValueSource<V> valueSource) Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.HasValue
clear, getEmptyValue, isEmpty
-
Field Details
-
internalValue
-
valueBinding
-
uiTestIdsSupport
-
-
Constructor Details
-
AbstractValueComponent
public AbstractValueComponent()
-
-
Method Details
-
setUiTestIdsSupport
-
setValueSource
Description copied from interface:HasValueSource
Sets value source for component.- Specified by:
setValueSource
in interfaceHasValueSource<T extends com.vaadin.ui.Component & com.vaadin.data.HasValue<P>>
- Parameters:
valueSource
- value source
-
setUiTestId
-
valueBindingConnected
-
valueBindingActivated
-
getValueSource
- Specified by:
getValueSource
in interfaceHasValueSource<T extends com.vaadin.ui.Component & com.vaadin.data.HasValue<P>>
- Returns:
- currently bound value source
-
getValue
-
setValue
-
addValueChangeListener
- Specified by:
addValueChangeListener
in interfaceHasValue<T extends com.vaadin.ui.Component & com.vaadin.data.HasValue<P>>
-
setValueToPresentation
-
componentValueChanged
-
convertToModel
- Throws:
ConversionException
-
convertToPresentation
- Throws:
ConversionException
-
fieldValueEquals
-
commit
protected void commit() -
discard
protected void discard() -
isBuffered
protected boolean isBuffered() -
setBuffered
protected void setBuffered(boolean buffered) -
isModified
protected boolean isModified()
-