Class WebBrowser

Web browser terminal type. This class implements web browser properties, which declare the features of the web browser.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.web.WebBrowser

WebBrowser()

Constructor WebBrowserType. Creates default WebBrowserType instance.

equals(Object)

Test the equality of the properties for two web browser types

getBrowserApplication()

Parameters

return

Web browser application.

Get the name and version of the web browser application. This is the version string reported by the web-browser in http headers.

getContentType()

Get preferred content type

getDefaultLocale()

Parameters

return

Default locale

Get the default locale requested by the browser.

getDefaultTheme()

Parameters

return

Name of the terminal window

Get name of the default theme

getJavaScriptVersion()

Parameters

return

Version of the supported Java Script

Get the version of the supported Java Script by the browser. Null if the Java Script is not supported.

getLocales()

Parameters

return

Collection

Returns the locales supported by the web browser.

getMarkupVersion()

Parameters

return

Supported markup language

Get the supported markup language.

getScreenHeight()

Parameters

return

Height of the terminal window

Get height of the terminal window in pixels

getScreenWidth()

Parameters

return

Width of the terminal window

Get width of the terminal window in pixels

hashCode()

Hash code composed of the properties of the web browser type

isClientSideChecked()

Parameters

return

true if client has sent information about its properties. Default false

Get the client side cheked property. Certain terminal features can only be detected at client side. This property indicates if the client side detections have been performed for this type.

isFrameSupport()

Parameters

return

True if the browser supports frames, False if not

Does the browser support frames ?

isJavaEnabled()

Parameters

return

boolean

Check if web browser supports Java.

parseHTMLVersion(String)

Parameters

return

HTMLVersion instance.

Parse HTML version from string.

parseJavaScriptVersion(String)

Parameters

return

HTMLVersion instance.

Parse JavaScript version from string.

performClientCheck()

Parameters

return

true if client side checking should be performed for this terminal type. Default false.

Should the client features be checked using remote scripts. Should the client side terminal feature check be performed.

performClientCheck(boolean)

Parameters

return

true if client side checking should be performed for this terminal type. Default false.

Should the client features be checked using remote scripts.

setBrowserApplication(String)

Parameters

browserApplication

The browserApplication to set

Sets the browser application. This corresponds to User-Agent HTTP header.

setClientSideChecked(boolean)

Parameters

true

if client has sent information about its properties, false otherweise.

Set the client side checked property. Certain terminal features can only be detected at client side. This property indicates if the client side detections have been performed for this type.

setContentType(String)

Parameters

contentType

The contentType to set

Sets the default content type. Default is text/html

setFrameSupport(boolean)

Parameters

frameSupport

True if the browser supports frames, False if not

Set the browser frame support

setJavaEnabled(boolean)

Parameters

javaEnabled

The javaEnabled to set

Sets the java enabled property.

setJavaScriptVersion(WebBrowser.JavaScriptVersion)

Parameters

javaScriptVersion

The JavaScript version to set

Sets the JavaScript version.

setMarkupVersion(WebBrowser.MarkupVersion)

Parameters

markupVersion

ersion The markup language version to set

Sets the markup language version.

setScreenHeight(int)

Parameters

screenHeight

The screen height to set in pixels.

Sets the screen height.

setScreenWidth(int)

Parameters

screenWidth

The screenWidth to set in pixels.

Sets the screen width.

supports(String)

Parameters

return

true if this type matches the given browser.

Check if this type supports also given browser.

supports(WebBrowser.JavaScriptVersion)

Parameters

js

The javascript version to check for.

return

true if this type supports the given javascript version.

Check if this type supports given javascript version.

supports(WebBrowser.MarkupVersion)

Parameters

return

true if this type supports the given markup version.

Check if this type supports given markup language version.

toString()

Repsent the type of the web browser as string