Class DashboardItem


  • public class DashboardItem
    extends Object
    A dashboard item.
    Author:
    Robert Fromont robert@fromont.nz
    • Constructor Detail

      • DashboardItem

        public DashboardItem()
        Default constructor.
      • DashboardItem

        public DashboardItem​(javax.json.JsonObject json)
        Constructor from JSON.
        Parameters:
        json - A JSON representation of the object to construct.
    • Method Detail

      • getItemId

        public int getItemId()
        Getter for itemId: The ID of the item.
        Returns:
        The ID of the item.
      • setItemId

        public DashboardItem setItemId​(int newItemId)
        Setter for itemId: The ID of the item.
        Parameters:
        newItemId - The ID of the item.
      • getType

        public String getType()
        Getter for type: 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 for type: 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 for label: The item's text label.
        Returns:
        The item's text label.
      • setLabel

        public DashboardItem setLabel​(String newLabel)
        Setter for label: The item's text label.
        Parameters:
        newLabel - The item's text label.
      • getIcon

        public String getIcon()
        Getter for icon: The item's icon.
        Returns:
        The item's icon.
      • setIcon

        public DashboardItem setIcon​(String newIcon)
        Setter for icon: 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.