All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.swm.gwt.client.utils.Utils Maven / Gradle / Ivy

There is a newer version: 3.1
Show newest version
package de.swm.gwt.client.utils;

/**
 * Utility class.
 * @author wiese.daniel
 * 
copyright (C) 2011, SWM Services GmbH * */ public final class Utils { /** * Util constructor. */ private Utils() { } /** * Sreibt eine Debug meldung in die Browser-Console. * @param msg die Nachricht die geschriben werden soll */ public static void console(String msg) { consoleLogNative("[UI] " + msg); } /** * Writes a log message to widow console. * @param msg the message */ private static native void consoleLogNative(String msg) /*-{ var log = $doc.getElementById('log'); if (log) { log.innerHTML = msg + '
' + log.innerHTML; } else { if ($wnd.console) { $wnd.console.log(msg); } } }-*/; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy