Class DashboardElement

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DashboardElement extends JPanel
This class holds information and acts as a Component for displaying topics on the Dashboard
See Also:
  • Constructor Details

    • DashboardElement

      public DashboardElement(NetworkAbstraction.TopicValue top, JPanel content)
      Creates a JPanel and populates JLabels based on the topic
      Parameters:
      top - TopicValue to be displayed on this element
      content - JPanel for the parent container
  • Method Details

    • getName

      public String getName()
      Gets the name of the topic
      Overrides:
      getName in class Component
      Returns:
      Name of the topic
    • setTopic

      public void setTopic(NetworkAbstraction.TopicValue top)
      Updates the topic to a new value
      Parameters:
      top - New topic value