org.sonar.gwt
Class Utils

java.lang.Object
  extended by org.sonar.gwt.Utils

public final class Utils
extends Object


Method Summary
static String escapeHtml(String maybeHtml)
           
static String formatDate(Date date)
           
static String formatNumber(double number)
           
static String formatNumber(String number)
           
static String formatPercent(double percentage)
           
static String formatPercent(String percentage)
           
static int getPageWidth()
           
static void showError(String message)
           
static void showInfo(String message)
           
static void showWarning(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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-2012 SonarSource. All Rights Reserved.