Package networktablesviewer
Class RootTableSidebar.SidebarList
java.lang.Object
javax.swing.AbstractListModel
networktablesviewer.RootTableSidebar.SidebarList
- All Implemented Interfaces:
Serializable,ListModel
- Enclosing class:
- RootTableSidebar
Holds information about the sidebar list
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new topic valuevoidEdits an existing topic valuegetElementAt(int i) Gets the string value of the topic at the specified indexintgetSize()Gets the number of topicsGets all stored topicsMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Constructor Details
-
SidebarList
public SidebarList()
-
-
Method Details
-
addVal
Adds a new topic value- Parameters:
val- new topic value
-
editVal
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
Gets the string value of the topic at the specified index- Parameters:
i- specified index to get topic value
-