Package org.openhab.core.sitemap
Interface ButtonDefinition
@NonNullByDefault
public interface ButtonDefinition
A representation of a sitemap
Buttongrid button definition. All buttons will act on the same item defined in
the button grid.- Author:
- Mark Herwege - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiongetCmd()Get button command.intGet button column in grid.@Nullable StringgetIcon()Get button icon.getLabel()Get button label.intgetRow()Get button row in grid.voidSet button command.voidsetColumn(int column) Set button column in grid.voidSet button icon.voidSet button label.voidsetRow(int row) Set button row in grid.
-
Method Details
-
getRow
int getRow()Get button row in grid.- Returns:
- row
-
setRow
void setRow(int row) Set button row in grid.- Parameters:
row-
-
getColumn
int getColumn()Get button column in grid.- Returns:
- column
-
setColumn
void setColumn(int column) Set button column in grid.- Parameters:
column-
-
getCmd
String getCmd()Get button command.- Returns:
- cmd
-
setCmd
Set button command.- Parameters:
cmd-
-
getLabel
String getLabel()Get button label.- Returns:
- label
-
setLabel
Set button label.- Parameters:
label-
-
getIcon
@Nullable String getIcon()Get button icon.- Returns:
- icon
-
setIcon
Set button icon.- Parameters:
icon-
-