Package nzilbb.labbcat.model
Class DashboardItem
- java.lang.Object
-
- nzilbb.labbcat.model.DashboardItem
-
public class DashboardItem extends Object
A dashboard item.- Author:
- Robert Fromont robert@fromont.nz
-
-
Constructor Summary
Constructors Constructor Description DashboardItem()Default constructor.DashboardItem(javax.json.JsonObject json)Constructor from JSON.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIcon()Getter foricon: The item's icon.intgetItemId()Getter foritemId: The ID of the item.StringgetLabel()Getter forlabel: The item's text label.StringgetType()Getter fortype: The type of the itme: "link", "sql", or "exec".DashboardItemsetIcon(String newIcon)Setter foricon: The item's icon.DashboardItemsetItemId(int newItemId)Setter foritemId: The ID of the item.DashboardItemsetLabel(String newLabel)Setter forlabel: The item's text label.DashboardItemsetType(String newType)Setter fortype: The type of the itme: "link", "sql", or "exec".javax.json.JsonObjecttoJson()Serializes the object to JSON.
-
-
-
Method Detail
-
getItemId
public int getItemId()
Getter foritemId: The ID of the item.- Returns:
- The ID of the item.
-
setItemId
public DashboardItem setItemId(int newItemId)
Setter foritemId: The ID of the item.- Parameters:
newItemId- The ID of the item.
-
getType
public String getType()
Getter fortype: The type of the itme: "link", "sql", or "exec".- Returns:
- The type of the itme: "link", "sql", or "exec".
-
setType
public DashboardItem setType(String newType)
Setter fortype: The type of the itme: "link", "sql", or "exec".- Parameters:
newType- The type of the itme: "link", "sql", or "exec".
-
getLabel
public String getLabel()
Getter forlabel: The item's text label.- Returns:
- The item's text label.
-
setLabel
public DashboardItem setLabel(String newLabel)
Setter forlabel: The item's text label.- Parameters:
newLabel- The item's text label.
-
getIcon
public String getIcon()
Getter foricon: The item's icon.- Returns:
- The item's icon.
-
setIcon
public DashboardItem setIcon(String newIcon)
Setter foricon: The item's icon.- Parameters:
newIcon- The item's icon.
-
toJson
public javax.json.JsonObject toJson()
Serializes the object to JSON.- Returns:
- A JSON serialization of the object.
-
-