Class RootTableSidebar.SidebarList

java.lang.Object
javax.swing.AbstractListModel
networktablesviewer.RootTableSidebar.SidebarList
All Implemented Interfaces:
Serializable, ListModel
Enclosing class:
RootTableSidebar

public class RootTableSidebar.SidebarList extends AbstractListModel
Holds information about the sidebar list
See Also:
  • Constructor Details

    • SidebarList

      public SidebarList()
  • Method Details

    • addVal

      public void addVal(NetworkAbstraction.TopicValue val)
      Adds a new topic value
      Parameters:
      val - new topic value
    • editVal

      public void editVal(NetworkAbstraction.TopicValue val)
      Edits an existing topic value
      Parameters:
      val - latest update for a topic value
    • getTopics

      Gets all stored topics
      Returns:
      All stored topics
    • getSize

      public int getSize()
      Gets the number of topics
      Returns:
      number of topics
    • getElementAt

      public String getElementAt(int i)
      Gets the string value of the topic at the specified index
      Parameters:
      i - specified index to get topic value