public static class ResultHistoryList.ResultHistoryModel extends AbstractListModel
Modifier and Type | Field and Description |
---|---|
protected ResultHistory |
m_History
the underlying history list.
|
listenerList
Constructor and Description |
---|
ResultHistoryModel()
Initializes the model with an empty history.
|
ResultHistoryModel(ResultHistory history)
Initializes the model with the history.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(Result result,
Object payload,
String suffix)
Adds the element to the history.
|
void |
clear()
Clears the history.
|
Object |
getElementAt(int index)
Returns the element at the specified location.
|
ResultHistory |
getHistory()
Returns the underlying history.
|
Object |
getPayloadAt(int index)
Returns the payload at the specified location.
|
Result |
getResultAt(int index)
Returns the element at the specified location.
|
int |
getSize()
Returns the number of history entries.
|
String |
getSuffixAt(int index)
Returns the suffix at the specified location.
|
Date |
getTimestampAt(int index)
Returns the element at the specified location.
|
Result |
removeElementAt(int index)
Removes the element at the specified location.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
protected ResultHistory m_History
public ResultHistoryModel()
public ResultHistoryModel(ResultHistory history)
history
- the history to usepublic void clear()
public int getSize()
public void addElement(Result result, Object payload, String suffix)
result
- the item to addpayload
- the payload to addsuffix
- the suffix to addpublic Object getElementAt(int index)
index
- the locationpublic Date getTimestampAt(int index)
index
- the locationpublic Result getResultAt(int index)
index
- the locationpublic Object getPayloadAt(int index)
index
- the locationpublic String getSuffixAt(int index)
index
- the locationpublic Result removeElementAt(int index)
index
- the locationpublic ResultHistory getHistory()
Copyright © 2017. All Rights Reserved.