Package io.jmix.mapsui.component.data
Class ContainerVectorLayerItems<E>
java.lang.Object
io.jmix.mapsui.component.data.ContainerVectorLayerItems<E>
- All Implemented Interfaces:
VectorLayerItems<E>
,DataUnit
,EntityDataUnit
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class ContainerVectorLayerItems<E>
extends Object
implements VectorLayerItems<E>, org.springframework.context.ApplicationContextAware
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEvent
Nested classes/interfaces inherited from interface io.jmix.mapsui.component.data.VectorLayerItems
VectorLayerItems.GeometryChangeEvent<E>, VectorLayerItems.ItemSetChangeEvent<E>, VectorLayerItems.SelectedItemChangeEvent<E>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRegisters a new geometry change listener.Registers a new item set change listener.Registers a new selected item change listener.Registers a new state change listener.getItems()
getState()
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setSelectedItem
(E item) Set current item in the source.
-
Field Details
-
container
-
events
-
-
Constructor Details
-
ContainerVectorLayerItems
-
-
Method Details
-
getSelectedItem
- Specified by:
getSelectedItem
in interfaceVectorLayerItems<E>
- Returns:
- the current item contained in the source
-
setSelectedItem
Description copied from interface:VectorLayerItems
Set current item in the source.- Specified by:
setSelectedItem
in interfaceVectorLayerItems<E>
- Parameters:
item
- the item to set
-
getItems
- Specified by:
getItems
in interfaceVectorLayerItems<E>
- Returns:
- collection of items contained in the source
-
addGeometryChangeListener
public Subscription addGeometryChangeListener(Consumer<VectorLayerItems.GeometryChangeEvent<E>> listener) Description copied from interface:VectorLayerItems
Registers a new geometry change listener.- Specified by:
addGeometryChangeListener
in interfaceVectorLayerItems<E>
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addSelectedItemChangeListener
public Subscription addSelectedItemChangeListener(Consumer<VectorLayerItems.SelectedItemChangeEvent<E>> listener) Description copied from interface:VectorLayerItems
Registers a new selected item change listener.- Specified by:
addSelectedItemChangeListener
in interfaceVectorLayerItems<E>
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addItemSetChangeListener
public Subscription addItemSetChangeListener(Consumer<VectorLayerItems.ItemSetChangeEvent<E>> listener) Description copied from interface:VectorLayerItems
Registers a new item set change listener.- Specified by:
addItemSetChangeListener
in interfaceVectorLayerItems<E>
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
getEntityMetaClass
- Specified by:
getEntityMetaClass
in interfaceEntityDataUnit
- Returns:
MetaClass
of an entity contained in the source
-
getState
-
addStateChangeListener
Description copied from interface:DataUnit
Registers a new state change listener.- Specified by:
addStateChangeListener
in interfaceDataUnit
- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
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
-