org.sonar.gwt
Class Utils
java.lang.Object
org.sonar.gwt.Utils
public final class Utils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPageWidth
public static int getPageWidth()
- Returns:
- width in pixels of the GWT component in the Sonar page
escapeHtml
public static java.lang.String escapeHtml(java.lang.String maybeHtml)
formatPercent
public static java.lang.String formatPercent(java.lang.String percentage)
formatPercent
public static java.lang.String formatPercent(double percentage)
formatNumber
public static java.lang.String formatNumber(java.lang.String number)
formatNumber
public static java.lang.String formatNumber(double number)
showError
public static void showError(java.lang.String message)
showWarning
public static void showWarning(java.lang.String message)
showInfo
public static void showInfo(java.lang.String message)
Copyright © 2009-2010 SonarSource. All Rights Reserved.