Package org.openhab.core.sitemap
Interface Switch
- All Superinterfaces:
NonLinkableWidget,Widget
A representation of a sitemap Switch widget.
- Author:
- Mark Herwege - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionGet the switchMappings.voidsetMappings(List<Mapping> mappings) Replace the widget mappings with a new list of mappings.Methods inherited from interface org.openhab.core.sitemap.Widget
getConfirmCmd, getConfirmCmdRules, getIcon, getIconColor, getIconRules, getItem, getLabel, getLabelColor, getParent, getValueColor, getVisibility, getWidgetType, isStaticIcon, setConfirmCmd, setConfirmCmdRules, setIcon, setIconColor, setIconRules, setItem, setLabel, setLabelColor, setParent, setStaticIcon, setValueColor, setVisibility
-
Method Details
-
getMappings
Get the switchMappings. This method should return a modifiable list, allowing updates to the mappings.- Returns:
- mappings
-
setMappings
Replace the widget mappings with a new list of mappings.- Parameters:
mappings-
-