Package io.jmix.mapsui.component.data
Interface VectorLayerItems<E>
- Type Parameters:
E
- geo object type
- All Superinterfaces:
DataUnit
,EntityDataUnit
- All Known Implementing Classes:
ContainerVectorLayerItems
A common interface for providing data for
VectorLayer
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
An event that is fired when geometry value has changed in some item.static class
static class
An event that is fired when selected item has changed.Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEvent
-
Method Summary
Modifier and TypeMethodDescriptionRegisters a new geometry change listener.Registers a new item set change listener.Registers a new selected item change listener.getItems()
void
setSelectedItem
(E item) Set current item in the source.Methods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
Methods inherited from interface io.jmix.ui.component.data.meta.EntityDataUnit
getEntityMetaClass
-
Method Details
-
getSelectedItem
- Returns:
- the current item contained in the source
-
setSelectedItem
Set current item in the source.- Parameters:
item
- the item to set
-
getItems
Collection<E> getItems()- Returns:
- collection of items contained in the source
-
addGeometryChangeListener
Registers a new geometry change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addSelectedItemChangeListener
Subscription addSelectedItemChangeListener(Consumer<VectorLayerItems.SelectedItemChangeEvent<E>> listener) Registers a new selected item change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-
addItemSetChangeListener
Registers a new item set change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-