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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected VirtualListDelegate<V>protected MetadataTools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprotected voidbindDataProvider(com.vaadin.flow.data.provider.DataProvider<V, ?> dataProvider) protected VirtualListDelegate<V>com.vaadin.flow.data.provider.DataProvider<V,?> protected voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetDataProvider(com.vaadin.flow.data.provider.DataProvider<V, ?> dataProvider) voidsetItems(CollectionContainer<V> container) Sets items from the passedCollectionContainer.voidSets items from the passedEnumClass.Methods inherited from class com.vaadin.flow.component.virtuallist.VirtualList
getDataCommunicator, getPlaceholderItem, onEnabledStateChanged, scrollToEnd, scrollToIndex, scrollToStart, setPlaceholderItem, setRenderer, setRendererMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.data.binder.HasDataProvider
setItemsMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.data.binder.HasItems
setItems, setItemsMethods 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, setWidthFullMethods 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
-
delegate
-
-
Constructor Details
-
JmixVirtualList
public JmixVirtualList()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
autowireDependencies
protected void autowireDependencies() -
initComponent
protected void initComponent() -
createDelegate
-
setItems
Description copied from interface:SupportsItemsContainerSets items from the passedCollectionContainer.- Specified by:
setItemsin interfaceSupportsItemsContainer<V>- Parameters:
container- aCollectionContainerto be used as items source- See Also:
-
setItems
Description copied from interface:SupportsItemsEnumSets items from the passedEnumClass.- Specified by:
setItemsin interfaceSupportsItemsEnum<V>- Parameters:
itemsEnum- aEnumClassto be used as items source- See Also:
-
setDataProvider
-
bindDataProvider
-
getDataProvider
- Specified by:
getDataProviderin interfaceSupportsDataProvider<V>- Overrides:
getDataProviderin classcom.vaadin.flow.component.virtuallist.VirtualList<V>
-