|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.terminal.gwt.client.VBrowserDetails
public class VBrowserDetails
Class that parses the user agent string from the browser and provides
information about the browser. Used internally by BrowserInfo
and
WebBrowser
. Should not be used directly.
Nested Class Summary | |
---|---|
static class |
VBrowserDetails.OperatingSystem
|
Constructor Summary | |
---|---|
VBrowserDetails(String userAgent)
Create an instance based on the given user agent. |
Method Summary | |
---|---|
float |
getBrowserEngineVersion()
Returns the version of the browser engine. |
int |
getBrowserMajorVersion()
Returns the browser major version e.g., 3 for Firefox 3.5, 4 for Chrome 4, 8 for Internet Explorer 8. |
int |
getBrowserMinorVersion()
Returns the browser minor version e.g., 5 for Firefox 3.5. |
int |
getOperatingSystemMajorVersion()
Returns the major version of the operating system. |
int |
getOperatingSystemMinorVersion()
Returns the minor version of the operating system. |
boolean |
isAndroid()
Tests if the browser is run on Android. |
boolean |
isChrome()
Tests if the browser is Chrome. |
boolean |
isChromeFrame()
Tests if the browser is running ChromeFrame. |
boolean |
isChromeFrameCapable()
Tests if the browser is capable of running ChromeFrame. |
boolean |
isFirefox()
Tests if the browser is Firefox. |
boolean |
isGecko()
Tests if the browser is using the Gecko engine |
boolean |
isIE()
Tests if the browser is Internet Explorer. |
boolean |
isIOS()
Tests if the browser is run in iOS. |
boolean |
isLinux()
Tests if the browser is run on Linux. |
boolean |
isMacOSX()
Tests if the browser is run on Mac OSX. |
boolean |
isOpera()
Tests if the browser is Opera. |
boolean |
isPresto()
Tests if the browser is using the Presto engine |
boolean |
isSafari()
Tests if the browser is Safari. |
boolean |
isTooOldToFunctionProperly()
Checks if the browser is so old that it simply won't work with a Vaadin application. |
boolean |
isWebKit()
Tests if the browser is using the WebKit engine |
boolean |
isWindows()
Tests if the browser is run on Windows. |
void |
setIEMode(int documentMode)
Sets the version for IE based on the documentMode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VBrowserDetails(String userAgent)
userAgent
- User agent as provided by the browser.Method Detail |
---|
public boolean isFirefox()
public boolean isGecko()
public boolean isWebKit()
public boolean isPresto()
public boolean isSafari()
public boolean isChrome()
public boolean isChromeFrameCapable()
public boolean isChromeFrame()
public boolean isOpera()
public boolean isIE()
public float getBrowserEngineVersion()
public final int getBrowserMajorVersion()
Note that Internet Explorer 8 and newer will return the document mode so IE8 rendering as IE7 will return 7.
public final int getBrowserMinorVersion()
getBrowserMajorVersion()
public void setIEMode(int documentMode)
documentMode
- The current document modepublic boolean isWindows()
public boolean isMacOSX()
public boolean isLinux()
public boolean isAndroid()
public boolean isIOS()
public int getOperatingSystemMajorVersion()
public int getOperatingSystemMinorVersion()
public boolean isTooOldToFunctionProperly()
isChromeFrameCapable()
if this returns true.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |