Package org.openhab.core.sitemap
Interface Sitemap
- All Superinterfaces:
Identifiable<String>,Parent
A representation of a 'Sitemap'.
- Author:
- Mark Herwege - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetIcon()Returns the sitemap icon.@Nullable StringgetLabel()Returns the sitemap label.getName()Returns the sitemap name.Returns the top level list of widgets in the sitemap.voidSets the sitemap icon.voidSets the sitemap label.voidSets the sitemap name.voidsetWidgets(List<Widget> widgets) Replace the sitemap child widgets with a new list of widgets.Methods inherited from interface org.openhab.core.common.registry.Identifiable
getUID
-
Method Details
-
getName
String getName()Returns the sitemap name.- Returns:
- sitemap name.
-
setName
Sets the sitemap name.- Parameters:
name- the new sitemap name.
-
getLabel
@Nullable String getLabel()Returns the sitemap label.- Returns:
- sitemap label.
-
setLabel
Sets the sitemap label.- Parameters:
label- the new sitemap label.
-
getIcon
@Nullable String getIcon()Returns the sitemap icon.- Returns:
- sitemap icon.
-
setIcon
Sets the sitemap icon.- Parameters:
icon- the new sitemap icon.
-
getWidgets
Returns the top level list of widgets in the sitemap. The returned list is a modifiable list.- Returns:
- list of widgets.
-
setWidgets
Replace the sitemap child widgets with a new list of widgets.- Parameters:
widgets-
-