Uses of Class
org.openhab.core.types.StateOption
Package
Description
-
Uses of StateOption in org.openhab.core.thing.binding
Modifier and TypeFieldDescriptionprotected final Map
<ChannelUID, List<StateOption>> BaseDynamicStateDescriptionProvider.channelOptionsMap
Modifier and TypeMethodDescriptionprotected List
<StateOption> BaseDynamicStateDescriptionProvider.localizedStateOptions
(List<StateOption> options, Channel channel, @Nullable Locale locale) Localizes aList
ofStateOption
s that should be used for the channel.Modifier and TypeMethodDescriptionprotected List
<StateOption> BaseDynamicStateDescriptionProvider.localizedStateOptions
(List<StateOption> options, Channel channel, @Nullable Locale locale) Localizes aList
ofStateOption
s that should be used for the channel.void
BaseDynamicStateDescriptionProvider.setStateOptions
(ChannelUID channelUID, List<StateOption> options) For a givenChannelUID
, set aList
ofStateOption
s that should be used for the channel, instead of the one defined statically in theChannelType
. -
Uses of StateOption in org.openhab.core.thing.events
Modifier and TypeFieldDescriptionThingEventFactory.ChannelDescriptionStateOptionsPayloadBean.options
Modifier and TypeMethodDescriptionThingEventFactory.createChannelDescriptionStateOptionsChangedEvent
(ChannelUID channelUID, Set<String> linkedItemNames, List<StateOption> options, @Nullable List<StateOption> oldOptions) Creates aChannelDescriptionChangedEvent
for changedStateOption
s.ModifierConstructorDescription -
Uses of StateOption in org.openhab.core.thing.i18n
Modifier and TypeMethodDescriptionChannelTypeI18nLocalizationService.createLocalizedStateOptions
(org.osgi.framework.Bundle bundle, List<StateOption> stateOptions, ChannelTypeUID channelTypeUID, @Nullable Locale locale) Modifier and TypeMethodDescriptionChannelTypeI18nLocalizationService.createLocalizedStateOptions
(org.osgi.framework.Bundle bundle, List<StateOption> stateOptions, ChannelTypeUID channelTypeUID, @Nullable Locale locale) -
Uses of StateOption in org.openhab.core.types
Modifier and TypeMethodDescriptionStateDescription.getOptions()
Returns a list of predefined states with their label.@Nullable List
<StateOption> StateDescriptionFragment.getOptions()
Returns a list of predefined states with their label.Modifier and TypeMethodDescriptionStateDescriptionFragmentBuilder.withOption
(StateOption option) Ass aStateOption
for the resultingStateDescriptionFragment
.Modifier and TypeMethodDescriptionStateDescriptionFragmentBuilder.withOptions
(List<StateOption> options) Set theStateOption
s for the resultingStateDescriptionFragment
.ModifierConstructorDescriptionprotected
StateDescription
(@Nullable BigDecimal minimum, @Nullable BigDecimal maximum, @Nullable BigDecimal step, @Nullable String pattern, boolean readOnly, @Nullable List<StateOption> options) Creates a state description object.