|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.terminal.gwt.client.BrowserInfo
public class BrowserInfo
Class used to query information about web browser. Browser details are detected only once and those are stored in this singleton class.
Field Summary | |
---|---|
static String |
ENGINE_GECKO
|
static String |
ENGINE_PRESTO
|
static String |
ENGINE_TRIDENT
|
static String |
ENGINE_WEBKIT
|
Method Summary | |
---|---|
static BrowserInfo |
get()
Singleton method to get BrowserInfo object. |
static String |
getBrowserString()
|
String |
getCSSClass()
Returns a string representing the browser in use, for use in CSS classnames. |
float |
getGeckoVersion()
Returns the Gecko version if the browser is Gecko based. |
float |
getIEVersion()
|
float |
getOperaVersion()
|
int |
getScreenHeight()
|
int |
getScreenWidth()
|
float |
getWebkitVersion()
Returns the WebKit version if the browser is WebKit based. |
boolean |
isAndroid()
Checks if the browser is run on Android |
boolean |
isAndroidWithBrokenScrollTop()
Tests if this is an Android devices with a broken scrollTop implementation |
boolean |
isChrome()
|
boolean |
isFirefox()
|
boolean |
isGecko()
|
boolean |
isIE()
|
boolean |
isIE8()
|
boolean |
isIE9()
|
boolean |
isIOS()
Checks if the browser is run on iOS |
boolean |
isOpera()
|
boolean |
isOpera10()
|
boolean |
isOpera11()
|
boolean |
isSafari()
|
boolean |
isTouchDevice()
|
boolean |
isWebkit()
|
boolean |
requiresOverflowAutoFix()
Indicates whether the browser might require juggling to properly update sizes inside elements with overflow: auto. |
boolean |
requiresTouchScrollDelegate()
Checks if the browser is capable of handling scrolling natively or if a touch scroll helper is needed for scrolling. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENGINE_GECKO
public static final String ENGINE_WEBKIT
public static final String ENGINE_PRESTO
public static final String ENGINE_TRIDENT
Method Detail |
---|
public static BrowserInfo get()
public String getCSSClass()
public boolean isIE()
public boolean isFirefox()
public boolean isSafari()
public boolean isIE8()
public boolean isIE9()
public boolean isChrome()
public boolean isGecko()
public boolean isWebkit()
public float getGeckoVersion()
public float getWebkitVersion()
public float getIEVersion()
public float getOperaVersion()
public boolean isOpera()
public boolean isOpera10()
public boolean isOpera11()
public static String getBrowserString()
public int getScreenWidth()
public int getScreenHeight()
public boolean isTouchDevice()
public boolean requiresOverflowAutoFix()
true
if the browser requires the workaround,
otherwise false
public boolean isIOS()
public boolean isAndroid()
public boolean requiresTouchScrollDelegate()
public boolean isAndroidWithBrokenScrollTop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |