Class ContainerDataVectorSourceItems<E>
java.lang.Object
io.jmix.mapsflowui.component.data.ContainerDataVectorSourceItems<E>
- All Implemented Interfaces:
- DataUnit,- EntityDataUnit,- DataVectorSourceItems<E>,- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationContextAware
public class ContainerDataVectorSourceItems<E>
extends Object
implements DataVectorSourceItems<E>, org.springframework.context.ApplicationContextAware
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnitDataUnit.StateChangeEventNested classes/interfaces inherited from interface io.jmix.mapsflowui.component.data.DataVectorSourceItemsDataVectorSourceItems.GeometryChangeEvent<E>, DataVectorSourceItems.ItemSetChangeEvent<E>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected InstanceContainer<E>protected EventBusprotected GeometryPropertiesResolverprotected MetaPropertyPath
- 
Constructor SummaryConstructorsConstructorDescriptionContainerDataVectorSourceItems(InstanceContainer<E> container) Deprecated.ContainerDataVectorSourceItems(InstanceContainer<E> container, String property) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationRegisters a new geometry change listener.com.vaadin.flow.shared.RegistrationRegisters a new item set change listener.com.vaadin.flow.shared.RegistrationRegisters a new state change listener.protected voidprotected voidprotected voidprotected StringgetItems()getState()protected voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected voidSubscribes to every item change in property path to correctly handle property change event.
- 
Field Details- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
- 
geometryPropertiesResolver
- 
container
- 
metaPropertyPath
- 
events
 
- 
- 
Constructor Details- 
ContainerDataVectorSourceItems
- 
ContainerDataVectorSourceItemsDeprecated.Constructor should be used together withGeometryannotation in an entity from the provided container. Due toGeometryannotation, geometry property can be retrieved without specifying it in XML element.- Parameters:
- container- items container
 
 
- 
- 
Method Details- 
getEntityMetaClass- Specified by:
- getEntityMetaClassin interface- EntityDataUnit
- Returns:
- MetaClassof an entity contained in the source
 
- 
getState
- 
addStateChangeListenerpublic com.vaadin.flow.shared.Registration addStateChangeListener(Consumer<DataUnit.StateChangeEvent> listener) Description copied from interface:DataUnitRegisters a new state change listener.- Specified by:
- addStateChangeListenerin interface- DataUnit
- Parameters:
- listener- the listener to be added
- Returns:
- a registration object for removing an event listener added to a source
 
- 
addGeometryChangeListenerpublic com.vaadin.flow.shared.Registration addGeometryChangeListener(Consumer<DataVectorSourceItems.GeometryChangeEvent<E>> listener) Description copied from interface:DataVectorSourceItemsRegisters a new geometry change listener.- Specified by:
- addGeometryChangeListenerin interface- DataVectorSourceItems<E>
- Parameters:
- listener- the listener to be added
- Returns:
- a registration object for removing an event listener added to a source
 
- 
addItemSetChangeListenerpublic com.vaadin.flow.shared.Registration addItemSetChangeListener(Consumer<DataVectorSourceItems.ItemSetChangeEvent<E>> listener) Description copied from interface:DataVectorSourceItemsRegisters a new item set change listener.- Specified by:
- addItemSetChangeListenerin interface- DataVectorSourceItems<E>
- Parameters:
- listener- the listener to be added
- Returns:
- a registration object for removing an event listener added to a source
 
- 
getItems- Specified by:
- getItemsin interface- DataVectorSourceItems<E>
- Returns:
- collection of items contained in the source
 
- 
getMetaPropertyPath- Specified by:
- getMetaPropertyPathin interface- DataVectorSourceItems<E>
- Returns:
- a meta property path of the specified geometry property from which will be displayed geo-objects
 
- 
containerItemChanged
- 
containerItemPropertyChanged
- 
containerCollectionChangedprotected void containerCollectionChanged(@Nullable CollectionContainer.CollectionChangeEvent<E> event) 
- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
initGeometryPropertyprotected void initGeometryProperty()
- 
subscribeToGeometryPropertyPathContainersprotected void subscribeToGeometryPropertyPathContainers()Subscribes to every item change in property path to correctly handle property change event. It enables usingInstanceContainerand property path together.
- 
getAnnotatedGeometryProperty
 
- 
ContainerDataVectorSourceItems(InstanceContainer, String)instead