Package Torello.Browser
Class Printing
- java.lang.Object
-
- Torello.Browser.Printing
-
public class Printing extends java.lang.Object
Simple printer for the example classes in this package
Hi-Lited Source-Code:- View Here: Torello/Browser/Printing.java
- Open New Browser-Tab: Torello/Browser/Printing.java
File Size: 1,454 Bytes Line Count: 48 '\n' Characters Found
-
-
Field Summary
Fields Modifier and Type Field static StringYELLOW_LINE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method static voidnotice(String msg)static voidprintObj(Object o)
-
-
-
Field Detail
-
YELLOW_LINE
public static final java.lang.String YELLOW_LINE
Used to print a Yellow Line across the Screen.- Code:
- Exact Field Declaration Expression:
public static final String YELLOW_LINE = BYELLOW_BKGND + StringParse.nChars(' ', 60) + RESET + '\n';
-
-
Method Detail
-
notice
public static void notice(java.lang.String msg)
Used to print a Title-Bar with a Notice, as each Step in this Example-Class is executed- Code:
- Exact Method Body:
System.out.println( '\n' + YELLOW_LINE + BYELLOW_BKGND + ' ' + RESET + ' ' + StringParse.rightSpacePad(msg, 57) + BYELLOW_BKGND + ' ' + RESET + '\n' + YELLOW_LINE );
-
printObj
public static void printObj(java.lang.Object o)
A Handler which prints events and Data-Grams that are emitted by the Browser Connection & Browser-Connection Generated Web-Socket.- Code:
- Exact Method Body:
System.out.println( '\n' + BCYAN + "Example0(?).java: " + RESET + BPURPLE_BKGND + " Handler 1 " + RESET + " Browser Connection Handler has Received: " + BPURPLE_BKGND + ' ' + o.getClass().getSimpleName() + ' ' + RESET + '\n' + StrIndent.indent(o.toString(), 4) );
-
-