com.maryanovsky.gwtutils.client
Class BrowserUtils

java.lang.Object
  extended by com.maryanovsky.gwtutils.client.BrowserUtils

public class BrowserUtils
extends Object

Various browser related or browser specific utilities.

Author:
Maryanovsky Alexander

Field Summary
static String USER_AGENT
          The user-agent string of the browser we are running in.
 
Constructor Summary
BrowserUtils()
           
 
Method Summary
static String getHostPageUrl()
          Returns the URL of the host webpage.
static boolean isIE()
          Returns whether we are running in MSIE.
static boolean isIE6()
          Returns whether we are running in MSIE 6.
static boolean isMozilla()
          Returns whether we are running in a Mozilla browser.
static boolean isOpera()
          Returns whether we are running in Opera.
static boolean isSafari()
          Returns whether we are running in Safari.
static void setStatus(String statusText)
          Sets the status of the window we're running in to the specified string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_AGENT

public static final String USER_AGENT
The user-agent string of the browser we are running in.

Constructor Detail

BrowserUtils

public BrowserUtils()
Method Detail

isIE

public static boolean isIE()
Returns whether we are running in MSIE.


isIE6

public static boolean isIE6()
Returns whether we are running in MSIE 6.


isOpera

public static boolean isOpera()
Returns whether we are running in Opera.


isSafari

public static boolean isSafari()
Returns whether we are running in Safari.


isMozilla

public static boolean isMozilla()
Returns whether we are running in a Mozilla browser.


getHostPageUrl

public static String getHostPageUrl()
Returns the URL of the host webpage.


setStatus

public static void setStatus(String statusText)
Sets the status of the window we're running in to the specified string.