Class JmixVirtualList<V>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.virtuallist.VirtualList<V>
io.jmix.flowui.component.virtuallist.JmixVirtualList<V>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.virtuallist.VirtualList<V>>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.Focusable<com.vaadin.flow.component.virtuallist.VirtualList<V>>, com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.virtuallist.VirtualList<V>>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.data.binder.HasDataProvider<V>, com.vaadin.flow.data.binder.HasItems<V>, SupportsDataProvider<V>, SupportsItemsContainer<V>, SupportsItemsEnum<V>, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class JmixVirtualList<V> extends com.vaadin.flow.component.virtuallist.VirtualList<V> implements SupportsDataProvider<V>, SupportsItemsContainer<V>, SupportsItemsEnum<V>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier

    com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier

    com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
     
     
    protected MetadataTools
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    protected void
    bindDataProvider(com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider)
     
     
    com.vaadin.flow.data.provider.DataProvider<V,?>
     
    protected void
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     
    void
    setDataProvider(com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider)
     
    void
    Sets items from the passed CollectionContainer.
    void
    setItems(Class<V> itemsEnum)
    Sets items from the passed EnumClass.

    Methods inherited from class com.vaadin.flow.component.virtuallist.VirtualList

    getDataCommunicator, getPlaceholderItem, onEnabledStateChanged, scrollToEnd, scrollToIndex, scrollToStart, setPlaceholderItem, setRenderer, setRenderer

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.BlurNotifier

    addBlurListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.Focusable

    addFocusShortcut, blur, focus, getTabIndex, setTabIndex

    Methods inherited from interface com.vaadin.flow.component.FocusNotifier

    addFocusListener

    Methods inherited from interface com.vaadin.flow.data.binder.HasDataProvider

    setItems

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.data.binder.HasItems

    setItems, setItems

    Methods inherited from interface com.vaadin.flow.component.HasSize

    getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • metadataTools

      protected MetadataTools metadataTools
    • delegate

      protected VirtualListDelegate<V> delegate
  • Constructor Details

    • JmixVirtualList

      public JmixVirtualList()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • autowireDependencies

      protected void autowireDependencies()
    • initComponent

      protected void initComponent()
    • createDelegate

      protected VirtualListDelegate<V> createDelegate()
    • setItems

      public void setItems(CollectionContainer<V> container)
      Description copied from interface: SupportsItemsContainer
      Sets items from the passed CollectionContainer.
      Specified by:
      setItems in interface SupportsItemsContainer<V>
      Parameters:
      container - a CollectionContainer to be used as items source
      See Also:
    • setItems

      public void setItems(Class<V> itemsEnum)
      Description copied from interface: SupportsItemsEnum
      Sets items from the passed EnumClass.
      Specified by:
      setItems in interface SupportsItemsEnum<V>
      Parameters:
      itemsEnum - a EnumClass to be used as items source
      See Also:
    • setDataProvider

      public void setDataProvider(com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider)
      Specified by:
      setDataProvider in interface com.vaadin.flow.data.binder.HasDataProvider<V>
      Overrides:
      setDataProvider in class com.vaadin.flow.component.virtuallist.VirtualList<V>
    • bindDataProvider

      protected void bindDataProvider(com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider)
    • getDataProvider

      @Nullable public com.vaadin.flow.data.provider.DataProvider<V,?> getDataProvider()
      Specified by:
      getDataProvider in interface SupportsDataProvider<V>
      Overrides:
      getDataProvider in class com.vaadin.flow.component.virtuallist.VirtualList<V>