Class ListOptions<I>
java.lang.Object
io.jmix.ui.component.data.options.ListOptions<I>
- Type Parameters:
I
- item type
- Direct Known Subclasses:
EnumOptions
,ListEntityOptions
Options based on a simple collection.
-
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.Options
Options.OptionsChangeEvent<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOptionsChangeListener
(Consumer<Options.OptionsChangeEvent<I>> listener) Registers a new state change listener.static <V> ListOptions<V>
empty()
getState()
static <V> ListOptions<V>
of
(V v, V... vs)
-
Field Details
-
options
-
-
Constructor Details
-
ListOptions
-
-
Method Details
-
of
-
empty
-
getItemsCollection
-
getOptions
- Specified by:
getOptions
in interfaceOptions<I>
-
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
-
addOptionsChangeListener
- Specified by:
addOptionsChangeListener
in interfaceOptions<I>
-