Changeset 201
- Timestamp:
- 09/26/11 23:00:42 (13 years ago)
- Location:
- trunk/JavaHelperLib/src/de/ugoe/cs/util/console
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/Console.java
r199 r201 31 31 public final class Console { 32 32 33 /** 34 * <p> 35 * Listeners for the output stream. 36 * </p> 37 */ 33 38 private Collection<IOutputListener> outputListener; 39 40 /** 41 * <p> 42 * Listeners for the error stream. 43 * </p> 44 */ 34 45 private Collection<IErrorListener> errorListener; 46 47 /** 48 * <p> 49 * Listeners for the trace stream. 50 * </p> 51 */ 35 52 private Collection<ITraceListener> traceListener; 53 54 /** 55 * <p> 56 * Listeners for the command stream. 57 * </p> 58 */ 36 59 private Collection<ICommandListener> commandListener; 60 61 /** 62 * <p> 63 * Listeners for the exception stream. 64 * </p> 65 */ 37 66 private Collection<IExceptionListener> exceptionListener; 38 67 … … 240 269 } 241 270 for (IOutputListener observer : theInstance.outputListener) { 242 observer. updateText(msg);271 observer.outputMsg(msg); 243 272 } 244 273 } … … 258 287 } 259 288 for (IOutputListener observer : theInstance.outputListener) { 260 observer. updateText(msg + StringTools.ENDLINE);289 observer.outputMsg(msg + StringTools.ENDLINE); 261 290 } 262 291 } … … 276 305 } 277 306 for (IErrorListener observer : theInstance.errorListener) { 278 observer.err Stream(errMsg);307 observer.errorMsg(errMsg); 279 308 } 280 309 } … … 294 323 } 295 324 for (IErrorListener observer : theInstance.errorListener) { 296 observer.err Stream(errMsg + StringTools.ENDLINE);325 observer.errorMsg(errMsg + StringTools.ENDLINE); 297 326 } 298 327 } … … 329 358 } 330 359 for (ITraceListener observer : theInstance.traceListener) { 331 observer.trace (traceMsg);360 observer.traceMsg(traceMsg); 332 361 } 333 362 } … … 348 377 } 349 378 for (ITraceListener observer : theInstance.traceListener) { 350 observer.trace (traceMsg + StringTools.ENDLINE);379 observer.traceMsg(traceMsg + StringTools.ENDLINE); 351 380 } 352 381 } -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/TextConsole.java
r199 r201 44 44 * </p> 45 45 * 46 * @see ConsoleObserver# updateText(java.lang.String)46 * @see ConsoleObserver#outputMsg(java.lang.String) 47 47 */ 48 public void updateText(String newMessage) {48 public void outputMsg(String newMessage) { 49 49 System.out.print(newMessage); 50 50 } … … 55 55 * </p> 56 56 * 57 * @see ConsoleObserver#err Stream(String)57 * @see ConsoleObserver#errorMsg(String) 58 58 */ 59 59 @Override 60 public void err Stream(String errMessage) {60 public void errorMsg(String errMessage) { 61 61 System.err.print(errMessage); 62 62 } … … 81 81 */ 82 82 @Override 83 public void trace (String traceMessage) {83 public void traceMsg(String traceMessage) { 84 84 if (debugMode) { 85 85 System.out.print(traceMessage); -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/listener/IErrorListener.java
r199 r201 18 18 * </p> 19 19 * 20 * TODO: rename method to errorMsg()21 *22 20 * @param errMessage 23 21 * error message 24 22 */ 25 public void err Stream(String errMessage);23 public void errorMsg(String errMessage); 26 24 } -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/listener/IOutputListener.java
r199 r201 18 18 * </p> 19 19 * 20 * TODO: rename method to outputMsg()21 *22 20 * @param newMessage 23 21 * message that was send to the console. 24 22 */ 25 public void updateText(String newMessage);23 public void outputMsg(String newMessage); 26 24 27 25 } -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/listener/ITraceListener.java
r199 r201 17 17 * </p> 18 18 * 19 * TODO: rename method to traceMsg()20 *21 19 * @param traceMesssage 22 20 * error message 23 21 */ 24 public void trace (String traceMessage);22 public void traceMsg(String traceMessage); 25 23 }
Note: See TracChangeset
for help on using the changeset viewer.