|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.control.DefaultController
org.olat.core.gui.control.controller.BasicController
org.olat.core.logging.JavaScriptTracingController
public class JavaScriptTracingController
In addition, you can leave some helpful debugging messages in the code if you need to do some real-time debugging.
When the log4j log level for this class is set to debug, all java script debug messages will be logged to the system console. While development, it can be usefull to set the debug level for this class to debug by default (webapp/WEB-INF/log4j.properties):
log4j.logger.org.olat.core.logging.JavaScriptTracingController=DEBUG
JS Example:
[...]
if (B_AjaxLogger.isDebugEnabled()) {
// always test if in log debug before loggin!!
B_AjaxLogger.logDebug("This is a cool ajaxified debug message", "myjsfile.js");
}
[...]
Initial Date: 09.07.2007
| Constructor Summary | |
|---|---|
JavaScriptTracingController(UserRequest ureq,
WindowControl wControl)
Constructor for the javascript tracing. |
|
| Method Summary | |
|---|---|
void |
event(UserRequest ureq,
Component source,
Event event)
abstract event method for subclasses. |
| Methods inherited from class org.olat.core.gui.control.DefaultController |
|---|
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaScriptTracingController(UserRequest ureq,
WindowControl wControl)
DO NOT USE THIS CONTROLLER! Only the chief conroller should use this controller. In your code you can use the B_AjaxLogger directly without dealing with any java code at all!
ureq - wControl - | Method Detail |
|---|
public void event(UserRequest ureq,
Component source,
Event event)
DefaultController
DefaultController.event(org.olat.core.gui.UserRequest,
org.olat.core.gui.components.Component,
org.olat.core.gui.control.Event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||