Class AbstractViewComponent<T extends com.vaadin.ui.Component,P,V>

java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<T>
io.jmix.ui.component.impl.AbstractViewComponent<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:
DateFieldImpl, LabelImpl, ProgressBarImpl

public abstract class AbstractViewComponent<T extends com.vaadin.ui.Component,P,V> extends AbstractComponent<T> implements HasValue<V>, HasValueSource<V>
  • Field Details

    • internalValue

      protected V internalValue
    • valueBinding

      protected ValueBinding<V> valueBinding
    • uiTestIdsSupport

      protected UiTestIdsSupport uiTestIdsSupport
  • Constructor Details

    • AbstractViewComponent

      public AbstractViewComponent()
  • Method Details

    • setUiTestIdsSupport

      @Autowired public void setUiTestIdsSupport(UiTestIdsSupport uiTestIdsSupport)
    • getValueSource

      @Nullable public ValueSource<V> getValueSource()
      Specified by:
      getValueSource in interface HasValueSource<T extends com.vaadin.ui.Component>
      Returns:
      currently bound value source
    • setValueSource

      public void setValueSource(@Nullable ValueSource<V> valueSource)
      Description copied from interface: HasValueSource
      Sets value source for component.
      Specified by:
      setValueSource in interface HasValueSource<T extends com.vaadin.ui.Component>
      Parameters:
      valueSource - value source
    • setUiTestId

      protected void setUiTestId(ValueSource<V> valueSource)
    • valueBindingConnected

      protected void valueBindingConnected(ValueSource<V> valueSource)
    • valueBindingActivated

      protected void valueBindingActivated(ValueSource<V> valueSource)
    • addValueChangeListener

      public Subscription addValueChangeListener(Consumer<HasValue.ValueChangeEvent<V>> listener)
      Specified by:
      addValueChangeListener in interface HasValue<T extends com.vaadin.ui.Component>
    • getValue

      @Nullable public V getValue()
      Specified by:
      getValue in interface HasValue<T extends com.vaadin.ui.Component>
    • setValue

      public void setValue(@Nullable V value)
      Specified by:
      setValue in interface HasValue<T extends com.vaadin.ui.Component>
    • setValueToPresentation

      protected abstract void setValueToPresentation(@Nullable P value)
    • convertToPresentation

      @Nullable protected P convertToPresentation(@Nullable V modelValue) throws ConversionException
      Throws:
      ConversionException
    • fieldValueEquals

      protected boolean fieldValueEquals(@Nullable V value, @Nullable V oldValue)