org.sonar.gwt
Class Utils
java.lang.Object
org.sonar.gwt.Utils
public final class Utils
- extends 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 String escapeHtml(String maybeHtml)
formatPercent
public static String formatPercent(String percentage)
formatPercent
public static String formatPercent(double percentage)
formatNumber
public static String formatNumber(String number)
formatNumber
public static String formatNumber(double number)
formatDate
public static String formatDate(Date date)
- Since:
- 2.5
showError
public static void showError(String message)
showWarning
public static void showWarning(String message)
showInfo
public static void showInfo(String message)
Copyright © 2009-2011 SonarSource. All Rights Reserved.