use of org.jivesoftware.spark.ui.ChatPrinter in project Spark by igniterealtime.
the class SparkManager method printChatTranscript.
/**
* Displays a print dialog to print the transcript found in a <code>TranscriptWindow</code>
*
* @param transcriptWindow the <code>TranscriptWindow</code> containing the transcript.
*/
public static void printChatTranscript(TranscriptWindow transcriptWindow) {
final ChatPrinter printer = new ChatPrinter();
printer.print(transcriptWindow);
}
use of org.jivesoftware.spark.ui.ChatPrinter in project Spark by igniterealtime.
the class SparkManager method printChatRoomTranscript.
/**
* Prints the transcript of a given chat room.
*
* @param room the chat room that contains the transcript to print.
*/
public static void printChatRoomTranscript(ChatRoom room) {
final ChatPrinter printer = new ChatPrinter();
final TranscriptWindow currentWindow = room.getTranscriptWindow();
if (currentWindow != null) {
printer.print(currentWindow);
}
}
Aggregations