Class MapEntityOptions<E>
java.lang.Object
io.jmix.ui.component.data.options.MapOptions<E>
io.jmix.ui.component.data.options.MapEntityOptions<E>
- Type Parameters:
E
- entity type
- All Implemented Interfaces:
DataUnit
,EntityDataUnit
,EntityOptions<E>
,Options<E>
Options based on a map that contains entities.
-
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.ui.component.data.meta.EntityOptions
EntityOptions.ValueChangeEvent<T>
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.Options
Options.OptionsChangeEvent<T>
-
Field Summary
Fields inherited from class io.jmix.ui.component.data.options.MapOptions
options
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsItem
(E item) void
refresh()
Refreshes the source moving it to theBindingState.ACTIVE
statevoid
setSelectedItem
(E item) Set current item in the source.void
updateItem
(E item) Update an item in the collection if it is already there.Methods inherited from class io.jmix.ui.component.data.options.MapOptions
addOptionsChangeListener, addStateChangeListener, getItemsCollection, getOptions, getState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
Methods inherited from interface io.jmix.ui.component.data.Options
addOptionsChangeListener, getOptions
-
Field Details
-
metadata
-
selectedItem
-
-
Constructor Details
-
MapEntityOptions
-
-
Method Details
-
setSelectedItem
Description copied from interface:EntityOptions
Set current item in the source.- Specified by:
setSelectedItem
in interfaceEntityOptions<E>
- Parameters:
item
- the item to set
-
getSelectedItem
-
containsItem
- Specified by:
containsItem
in interfaceEntityOptions<E>
- Returns:
- true if the underlying collection contains an item with the specified ID
-
updateItem
Description copied from interface:EntityOptions
Update an item in the collection if it is already there.- Specified by:
updateItem
in interfaceEntityOptions<E>
-
refresh
public void refresh()Description copied from interface:EntityOptions
Refreshes the source moving it to theBindingState.ACTIVE
state- Specified by:
refresh
in interfaceEntityOptions<E>
-
addValueChangeListener
- Specified by:
addValueChangeListener
in interfaceEntityOptions<E>
-
getEntityMetaClass
- Specified by:
getEntityMetaClass
in interfaceEntityDataUnit
- Returns:
MetaClass
of an entity contained in the source
-