author | Anton Epple <toni.epple@eppleton.de> |
Sun, 08 Sep 2013 10:58:10 +0200 | |
branch | canvas |
changeset 1267 | 0f775bd8d210 |
parent 1158 | 633572e14095 |
child 1296 | 6fed3663b751 |
permissions | -rw-r--r-- |
toni@1158 | 1 |
/* |
toni@1158 | 2 |
* To change this template, choose Tools | Templates |
toni@1158 | 3 |
* and open the template in the editor. |
toni@1158 | 4 |
*/ |
toni@1158 | 5 |
package org.apidesign.bck2brwsr.htmlpage; |
toni@1158 | 6 |
|
toni@1158 | 7 |
import org.apidesign.bck2brwsr.core.JavaScriptBody; |
toni@1158 | 8 |
|
toni@1158 | 9 |
/** |
toni@1158 | 10 |
* |
toni@1158 | 11 |
* @author antonepple |
toni@1158 | 12 |
*/ |
toni@1158 | 13 |
public class Logger { |
toni@1158 | 14 |
|
toni@1158 | 15 |
@JavaScriptBody(args = "message",body = "console.log(message)") |
toni@1158 | 16 |
public static native void log(String text); |
toni@1158 | 17 |
|
toni@1267 | 18 |
@JavaScriptBody(args = "object",body = "console.log(object)") |
toni@1267 | 19 |
public static native void logObject(Object object); |
toni@1267 | 20 |
|
toni@1158 | 21 |
} |