Package org.pepstock.charba.client.utils
Class Console
- java.lang.Object
-
- org.pepstock.charba.client.utils.Console
-
public final class Console extends Object
Provides access to the browser's debugging console.
This object is the wrapper to console java script object.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
dir(Object object)
Displays an interactive list of the properties of the specified JavaScript object.
The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.
In other words, it is the way to see all the properties of a specified JavaScript object in console by which the developer can easily get the properties of the object.static void
dirxml(Object object)
Displays an interactive tree of the descendant elements of the specified XML/HTML element.
If it is not possible to display as an element the JavaScript Object view is shown instead.
The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes.static void
log(Object... objects)
Outputs a message to the Web Console.
-
-
-
Method Detail
-
log
public static void log(Object... objects)
Outputs a message to the Web Console.- Parameters:
objects
- a list of JavaScript objects to output.
The string representations of each of these objects are appended together in the order listed and output.
-
dir
public static void dir(Object object)
Displays an interactive list of the properties of the specified JavaScript object.
The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.
In other words, it is the way to see all the properties of a specified JavaScript object in console by which the developer can easily get the properties of the object.- Parameters:
object
- a JavaScript object whose properties should be output.
-
dirxml
public static void dirxml(Object object)
Displays an interactive tree of the descendant elements of the specified XML/HTML element.
If it is not possible to display as an element the JavaScript Object view is shown instead.
The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes.- Parameters:
object
- a JavaScript object whose properties should be output.
-
-