Package org.openhab.core.ui.items
Enum Class ItemUIRegistry.WidgetLabelSource
java.lang.Object
java.lang.Enum<ItemUIRegistry.WidgetLabelSource>
org.openhab.core.ui.items.ItemUIRegistry.WidgetLabelSource
- All Implemented Interfaces:
Serializable
,Comparable<ItemUIRegistry.WidgetLabelSource>
,Constable
- Enclosing interface:
ItemUIRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLabel is taken from the widget's backing item definitionLabel equals the widget's backing item nameNo suitable label source could be determinedLabel is taken from widget definition in sitemap -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ItemUIRegistry.WidgetLabelSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SITEMAP_WIDGET
Label is taken from widget definition in sitemap -
ITEM_LABEL
Label is taken from the widget's backing item definition -
ITEM_NAME
Label equals the widget's backing item name -
NONE
No suitable label source could be determined
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-