public class ContainerVectorLayerItems<E> extends java.lang.Object implements VectorLayerItems<E>, org.springframework.context.ApplicationContextAware
VectorLayerItems.GeometryChangeEvent<E>, VectorLayerItems.ItemSetChangeEvent<E>, VectorLayerItems.SelectedItemChangeEvent<E>| Modifier and Type | Field and Description |
|---|---|
protected io.jmix.ui.model.InstanceContainer<E> |
container |
protected io.jmix.core.common.event.EventHub |
events |
| Constructor and Description |
|---|
ContainerVectorLayerItems(io.jmix.ui.model.InstanceContainer<E> container) |
| Modifier and Type | Method and Description |
|---|---|
io.jmix.core.common.event.Subscription |
addGeometryChangeListener(java.util.function.Consumer<VectorLayerItems.GeometryChangeEvent<E>> listener)
Registers a new geometry change listener.
|
io.jmix.core.common.event.Subscription |
addItemSetChangeListener(java.util.function.Consumer<VectorLayerItems.ItemSetChangeEvent<E>> listener)
Registers a new item set change listener.
|
io.jmix.core.common.event.Subscription |
addSelectedItemChangeListener(java.util.function.Consumer<VectorLayerItems.SelectedItemChangeEvent<E>> listener)
Registers a new selected item change listener.
|
io.jmix.core.common.event.Subscription |
addStateChangeListener(java.util.function.Consumer<io.jmix.ui.component.data.DataUnit.StateChangeEvent> listener) |
io.jmix.core.metamodel.model.MetaClass |
getEntityMetaClass() |
java.util.Collection<E> |
getItems() |
E |
getSelectedItem() |
io.jmix.ui.component.data.BindingState |
getState() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setSelectedItem(E item)
Set current item in the source.
|
protected io.jmix.ui.model.InstanceContainer<E> container
protected io.jmix.core.common.event.EventHub events
public ContainerVectorLayerItems(io.jmix.ui.model.InstanceContainer<E> container)
@Nullable public E getSelectedItem()
getSelectedItem in interface VectorLayerItems<E>public void setSelectedItem(@Nullable
E item)
VectorLayerItemssetSelectedItem in interface VectorLayerItems<E>item - the item to setpublic java.util.Collection<E> getItems()
getItems in interface VectorLayerItems<E>public io.jmix.core.common.event.Subscription addGeometryChangeListener(java.util.function.Consumer<VectorLayerItems.GeometryChangeEvent<E>> listener)
VectorLayerItemsaddGeometryChangeListener in interface VectorLayerItems<E>listener - the listener to be addedpublic io.jmix.core.common.event.Subscription addSelectedItemChangeListener(java.util.function.Consumer<VectorLayerItems.SelectedItemChangeEvent<E>> listener)
VectorLayerItemsaddSelectedItemChangeListener in interface VectorLayerItems<E>listener - the listener to be addedpublic io.jmix.core.common.event.Subscription addItemSetChangeListener(java.util.function.Consumer<VectorLayerItems.ItemSetChangeEvent<E>> listener)
VectorLayerItemsaddItemSetChangeListener in interface VectorLayerItems<E>listener - the listener to be addedpublic io.jmix.core.metamodel.model.MetaClass getEntityMetaClass()
getEntityMetaClass in interface io.jmix.ui.component.data.meta.EntityDataUnitpublic io.jmix.ui.component.data.BindingState getState()
getState in interface io.jmix.ui.component.data.DataUnitpublic io.jmix.core.common.event.Subscription addStateChangeListener(java.util.function.Consumer<io.jmix.ui.component.data.DataUnit.StateChangeEvent> listener)
addStateChangeListener in interface io.jmix.ui.component.data.DataUnitpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException