public static class ResultHistoryList.ResultHistoryModel
extends javax.swing.AbstractListModel
Constructor and Description |
---|
ResultHistoryList.ResultHistoryModel()
Initializes the model with an empty history.
|
ResultHistoryList.ResultHistoryModel(ResultHistory history)
Initializes the model with the history.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(Result result,
java.lang.String suffix)
Adds the element to the history.
|
void |
clear()
Clears the history.
|
java.lang.Object |
getElementAt(int index)
Returns the element at the specified location.
|
ResultHistory |
getHistory()
Returns the underlying history.
|
Result |
getResultAt(int index)
Returns the element at the specified location.
|
int |
getSize()
Returns the number of history entries.
|
java.lang.String |
getSuffixAt(int index)
Returns the suffix at the specified location.
|
java.util.Date |
getTimestampAt(int index)
Returns the element at the specified location.
|
Result |
removeElementAt(int index)
Removes the element at the specified location.
|
public ResultHistoryList.ResultHistoryModel()
public ResultHistoryList.ResultHistoryModel(ResultHistory history)
history
- the history to usepublic void clear()
public int getSize()
public void addElement(Result result, java.lang.String suffix)
result
- the item to addsuffix
- the suffix to addpublic java.lang.Object getElementAt(int index)
index
- the locationpublic java.util.Date getTimestampAt(int index)
index
- the locationpublic Result getResultAt(int index)
index
- the locationpublic java.lang.String getSuffixAt(int index)
index
- the locationpublic Result removeElementAt(int index)
index
- the locationpublic ResultHistory getHistory()