Package org.openhab.core.sitemap
Interface Mapping
@NonNullByDefault
public interface Mapping
A representation of a sitemap widget Mapping.
- Author:
- Mark Herwege - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiongetCmd()Get the click command mapped to the widget item state.@Nullable StringgetIcon()Get the icon mapped to the widget item state.getLabel()Get the label mapped to the widget item state.@Nullable StringGet the release command mapped to the widget item state.voidSet the click command mapped to the widget item state.voidSet the label mapped to the widget item state.voidSet the label mapped to the widget item state.voidsetReleaseCmd(@Nullable String releaseCmd) Set the release command mapped to the widget item state.
-
Method Details
-
getCmd
String getCmd()Get the click command mapped to the widget item state.- Returns:
- cmd
-
setCmd
Set the click command mapped to the widget item state.- Parameters:
cmd-
-
getReleaseCmd
@Nullable String getReleaseCmd()Get the release command mapped to the widget item state.- Returns:
- releaseCmd
-
setReleaseCmd
Set the release command mapped to the widget item state.- Parameters:
releaseCmd-
-
getLabel
String getLabel()Get the label mapped to the widget item state.- Returns:
- label
-
setLabel
Set the label mapped to the widget item state.- Parameters:
label-
-
getIcon
@Nullable String getIcon()Get the icon mapped to the widget item state.- Returns:
- icon
-
setIcon
Set the label mapped to the widget item state.- Parameters:
icon-
-