Uses of Class
org.openhab.core.types.StateOption
Packages that use StateOption
Package
Description
-
Uses of StateOption in org.openhab.core.thing.binding
Fields in org.openhab.core.thing.binding with type parameters of type StateOptionModifier and TypeFieldDescriptionprotected final Map<ChannelUID,
List<StateOption>> BaseDynamicStateDescriptionProvider.channelOptionsMap
Methods in org.openhab.core.thing.binding that return types with arguments of type StateOptionModifier 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.Method parameters in org.openhab.core.thing.binding with type arguments of type StateOptionModifier 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
Fields in org.openhab.core.thing.events with type parameters of type StateOptionModifier and TypeFieldDescriptionThingEventFactory.ChannelDescriptionStateOptionsPayloadBean.options
Method parameters in org.openhab.core.thing.events with type arguments of type StateOptionModifier and TypeMethodDescriptionThingEventFactory.createChannelDescriptionStateOptionsChangedEvent
(ChannelUID channelUID, Set<String> linkedItemNames, List<StateOption> options, @Nullable List<StateOption> oldOptions) Creates aChannelDescriptionChangedEvent
for changedStateOption
s.Constructor parameters in org.openhab.core.thing.events with type arguments of type StateOptionModifierConstructorDescription -
Uses of StateOption in org.openhab.core.thing.i18n
Methods in org.openhab.core.thing.i18n that return types with arguments of type StateOptionModifier and TypeMethodDescriptionChannelTypeI18nLocalizationService.createLocalizedStateOptions
(org.osgi.framework.Bundle bundle, List<StateOption> stateOptions, ChannelTypeUID channelTypeUID, @Nullable Locale locale) Method parameters in org.openhab.core.thing.i18n with type arguments of type StateOptionModifier and TypeMethodDescriptionChannelTypeI18nLocalizationService.createLocalizedStateOptions
(org.osgi.framework.Bundle bundle, List<StateOption> stateOptions, ChannelTypeUID channelTypeUID, @Nullable Locale locale) -
Uses of StateOption in org.openhab.core.types
Fields in org.openhab.core.types with type parameters of type StateOptionMethods in org.openhab.core.types that return types with arguments of type StateOptionModifier 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.Methods in org.openhab.core.types with parameters of type StateOptionModifier and TypeMethodDescriptionStateDescriptionFragmentBuilder.withOption
(StateOption option) Ass aStateOption
for the resultingStateDescriptionFragment
.Method parameters in org.openhab.core.types with type arguments of type StateOptionModifier and TypeMethodDescriptionStateDescriptionFragmentBuilder.withOptions
(List<StateOption> options) Set theStateOption
s for the resultingStateDescriptionFragment
.Constructor parameters in org.openhab.core.types with type arguments of type StateOptionModifierConstructorDescriptionprotected
StateDescription
(@Nullable BigDecimal minimum, @Nullable BigDecimal maximum, @Nullable BigDecimal step, @Nullable String pattern, boolean readOnly, @Nullable List<StateOption> options) Creates a state description object.