source: trunk/JavaHelperLib/src/de/ugoe/cs/util/console/ConsoleObserver.java @ 56

Last change on this file since 56 was 1, checked in by sherbold, 14 years ago
File size: 1010 bytes
Line 
1package de.ugoe.cs.util.console;
2
3/**
4 * <p>
5 * Observer for Console.
6 * </p>
7 *
8 * @author Steffen Herbold
9 */
10public interface ConsoleObserver {
11
12        /**
13         * <p>
14         * If a new message is send to the console, all observers are updated using
15         * this method.
16         * </p>
17         *
18         * @param newMessage
19         *            message that was send to the console.
20         */
21        public void updateText(String newMessage);
22
23        /**
24         * <p>
25         * Send messages to the error stream of all observers.
26         * </p>
27         *
28         * @param errMessage
29         *            error message
30         */
31        public void errStream(String errMessage);
32
33        /**
34         * <p>
35         * Send messages to the trace stream of all observers.
36         * </p>
37         *
38         * @param traceMesssage
39         *            error message
40         */
41        public void trace(String traceMessage);
42
43        /**
44         * <p>
45         * Prints the stack trace of an exception.
46         * </p>
47         *
48         * @param e
49         *            exception whose stack trace is to be printed
50         */
51        public void printStacktrace(Exception e);
52
53}
Note: See TracBrowser for help on using the repository browser.