no.ntnu.vegare.visualizer.client.main.details
Class LogReportSet
java.lang.Object
javax.swing.AbstractListModel
no.ntnu.vegare.visualizer.client.main.details.LogReportSet
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel
public class LogReportSet
- extends javax.swing.AbstractListModel
- implements javax.swing.ComboBoxModel
Contains a history of viewed log reports. Serves both as a cache of database
data and a model for the JComboBox allowing navigation between reports.
- Author:
- vegare
- See Also:
- Serialized Form
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, removeListDataListener |
LogReportSet
public LogReportSet()
addEntry
public void addEntry(LogReport entry)
- Called when a new log report is selected from the filter view.
This is the only way to generate a new detailed log report.
isEmpty
public boolean isEmpty()
isFirst
public boolean isFirst()
isLast
public boolean isLast()
getCurrentEntry
public LogReport getCurrentEntry()
nextEntry
public void nextEntry()
prevEntry
public void prevEntry()
lastEntry
public void lastEntry()
switchEntry
public void switchEntry(int index)
reloadCurrent
public void reloadCurrent()
getSize
public int getSize()
- Specified by:
getSize
in interface javax.swing.ListModel
getElementAt
public java.lang.Object getElementAt(int index)
- Specified by:
getElementAt
in interface javax.swing.ListModel
setSelectedItem
public void setSelectedItem(java.lang.Object anItem)
- Specified by:
setSelectedItem
in interface javax.swing.ComboBoxModel
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem
in interface javax.swing.ComboBoxModel