public class HistoryTranscript extends SwingWorker
Constructor and Description |
---|
HistoryTranscript(java.text.SimpleDateFormat notificationDateFormatter,
java.text.SimpleDateFormat messageDateFormatter)
Open the Transcript with the given formatter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildString(java.util.List<HistoryMessage> messages)
Builds html string with the stored messages
|
java.lang.Object |
construct()
Compute the value to be returned by the
get method. |
void |
finished()
Set the layout settings
|
void |
showHistory(java.lang.String jid)
Show the History for the given Contact.
|
get, getValue, interrupt, start
public HistoryTranscript(java.text.SimpleDateFormat notificationDateFormatter, java.text.SimpleDateFormat messageDateFormatter)
notificationDateFormatter
- the formatter for the notificationsmessageDateFormatter
- the formatter for datespublic void showHistory(java.lang.String jid)
jid
- the JID of the current transcriptpublic final java.lang.String buildString(java.util.List<HistoryMessage> messages)
notificationDateFormatter
- SimpleDateFormat for formating notificationsmessageDateFormatter
- notificationDateFormatter SimpleDateFormat for formating messagespublic void finished()
finished
in class SwingWorker
public java.lang.Object construct()
SwingWorker
get
method.construct
in class SwingWorker