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
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected VirtualListDelegate<V>
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected void
bindDataProvider
(com.vaadin.flow.data.provider.DataProvider<V, ?> dataProvider) protected VirtualListDelegate<V>
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
setItems
(CollectionContainer<V> container) Sets items from the passedCollectionContainer
.void
Sets items from the passedEnumClass
.Methods inherited from class com.vaadin.flow.component.virtuallist.VirtualList
getDataCommunicator, getPlaceholderItem, onEnabledStateChanged, 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
-
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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
autowireDependencies
protected void autowireDependencies() -
initComponent
protected void initComponent() -
createDelegate
-
setItems
Description copied from interface:SupportsItemsContainer
Sets items from the passedCollectionContainer
.- Specified by:
setItems
in interfaceSupportsItemsContainer<V>
- Parameters:
container
- aCollectionContainer
to be used as items source- See Also:
-
setItems
Description copied from interface:SupportsItemsEnum
Sets items from the passedEnumClass
.- Specified by:
setItems
in interfaceSupportsItemsEnum<V>
- Parameters:
itemsEnum
- aEnumClass
to be used as items source- See Also:
-
setDataProvider
-
bindDataProvider
-
getDataProvider
- Specified by:
getDataProvider
in interfaceSupportsDataProvider<V>
- Overrides:
getDataProvider
in classcom.vaadin.flow.component.virtuallist.VirtualList<V>
-