Search in sources :

Example 1 with ChatPrinter

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);
}
Also used : ChatPrinter(org.jivesoftware.spark.ui.ChatPrinter)

Example 2 with ChatPrinter

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);
    }
}
Also used : TranscriptWindow(org.jivesoftware.spark.ui.TranscriptWindow) ChatPrinter(org.jivesoftware.spark.ui.ChatPrinter)

Aggregations

ChatPrinter (org.jivesoftware.spark.ui.ChatPrinter)2 TranscriptWindow (org.jivesoftware.spark.ui.TranscriptWindow)1