|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.web.WebBrowser
public class WebBrowser
Web browser terminal type. This class implements web browser properties, which declare the features of the web browser.
| Nested Class Summary | |
|---|---|
class |
WebBrowser.JavaScriptVersion
|
class |
WebBrowser.MarkupVersion
|
class |
WebBrowser.RenderingMode
|
| Nested classes/interfaces inherited from interface com.itmill.toolkit.terminal.Terminal |
|---|
Terminal.ErrorEvent, Terminal.ErrorListener |
| Constructor Summary | |
|---|---|
WebBrowser()
Constructor WebBrowserType. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Tests the equality of the properties for two web browser types. |
String |
getBrowserApplication()
Gets the name and version of the web browser application. |
String |
getContentType()
Gets the preferred content type. |
Locale |
getDefaultLocale()
Gets the default locale requested by the browser. |
String |
getDefaultTheme()
Gets the name of the default theme. |
WebBrowser.JavaScriptVersion |
getJavaScriptVersion()
Gets the version of the supported Java Script by the browser. |
Collection |
getLocales()
Returns the locales supported by the web browser. |
WebBrowser.MarkupVersion |
getMarkupVersion()
Gets the supported markup language. |
WebBrowser.RenderingMode |
getRenderingMode()
Gets the current rendering mode. |
int |
getScreenHeight()
Gets the height of the terminal window in pixels. |
int |
getScreenWidth()
Gets the width of the terminal window in pixels. |
int |
hashCode()
Hash code composed of the properties of the web browser type. |
boolean |
isClientSideChecked()
Gets the client side cheked property. |
boolean |
isFrameSupport()
Does the browser support frames ? |
boolean |
isJavaEnabled()
Checks if web browser supports Java. |
static WebBrowser.MarkupVersion |
parseHTMLVersion(String html)
Parses HTML version from string. |
static WebBrowser.JavaScriptVersion |
parseJavaScriptVersion(String js)
Parse JavaScript version from string. |
boolean |
performClientCheck()
Should the client features be checked using remote scripts. |
void |
performClientCheck(boolean value)
Should the client features be checked using remote scripts. |
void |
setBrowserApplication(String browserApplication)
Sets the browser application. |
void |
setClientSideChecked(boolean value)
Sets the client side checked property. |
void |
setContentType(String contentType)
Sets the default content type. |
void |
setFrameSupport(boolean frameSupport)
Sets the browser frame support. |
void |
setJavaEnabled(boolean javaEnabled)
Sets the java enabled property. |
void |
setJavaScriptVersion(WebBrowser.JavaScriptVersion javaScriptVersion)
Sets the JavaScript version. |
void |
setMarkupVersion(WebBrowser.MarkupVersion markupVersion)
Sets the markup language version. |
void |
setRenderingMode(WebBrowser.RenderingMode renderingMode)
Sets the current rendering mode. |
void |
setScreenHeight(int screenHeight)
Sets the screen height. |
void |
setScreenWidth(int screenWidth)
Sets the screen width. |
boolean |
supports(String browser)
Checks if this type supports also given browser. |
boolean |
supports(WebBrowser.JavaScriptVersion js)
Checks if this type supports given javascript version. |
boolean |
supports(WebBrowser.MarkupVersion html)
Checks if this type supports given markup language version. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final WebBrowser.MarkupVersion MARKUP_UNKNOWN
public static final WebBrowser.MarkupVersion MARKUP_HTML_2_0
public static final WebBrowser.MarkupVersion MARKUP_HTML_3_2
public static final WebBrowser.MarkupVersion MARKUP_HTML_4_0
public static final WebBrowser.MarkupVersion MARKUP_XHTML_1_0
public static final WebBrowser.MarkupVersion MARKUP_XHTML_2_0
public static final WebBrowser.MarkupVersion MARKUP_WML_1_0
public static final WebBrowser.MarkupVersion MARKUP_WML_1_1
public static final WebBrowser.MarkupVersion MARKUP_WML_1_2
public static final WebBrowser.MarkupVersion[] MARKUP_VERSIONS
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_UNCHECKED
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_NONE
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_1_0
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_1_1
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_1_2
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_1_3
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_1_4
public static final WebBrowser.JavaScriptVersion JAVASCRIPT_1_5
public static final WebBrowser.JavaScriptVersion JSCRIPT_1_0
public static final WebBrowser.JavaScriptVersion JSCRIPT_3_0
public static final WebBrowser.JavaScriptVersion JSCRIPT_4_0
public static final WebBrowser.JavaScriptVersion JSCRIPT_5_0
public static final WebBrowser.JavaScriptVersion JSCRIPT_5_1
public static final WebBrowser.JavaScriptVersion JSCRIPT_5_5
public static final WebBrowser.JavaScriptVersion JSCRIPT_5_6
public static final WebBrowser.JavaScriptVersion JSCRIPT_5_7
public static final WebBrowser.JavaScriptVersion ECMA_262
public static final WebBrowser.JavaScriptVersion[] JAVASCRIPT_VERSIONS
public static final WebBrowser.RenderingMode RENDERING_MODE_UNDEFINED
public static final WebBrowser.RenderingMode RENDERING_MODE_HTML
public static final WebBrowser.RenderingMode RENDERING_MODE_AJAX
| Constructor Detail |
|---|
public WebBrowser()
| Method Detail |
|---|
public String getDefaultTheme()
getDefaultTheme in interface Terminalpublic String getBrowserApplication()
public WebBrowser.JavaScriptVersion getJavaScriptVersion()
Null if the Java Script is not supported.
public boolean isFrameSupport()
true if the browser supports frames, otherwise
false.public void setFrameSupport(boolean frameSupport)
frameSupport - True if the browser supports frames, False if not.public WebBrowser.MarkupVersion getMarkupVersion()
public int getScreenHeight()
getScreenHeight in interface Terminalpublic int getScreenWidth()
getScreenWidth in interface Terminalpublic Locale getDefaultLocale()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public String getContentType()
public boolean supports(String browser)
browser - the browser type.
public boolean supports(WebBrowser.MarkupVersion html)
html - the markup language version.
true if this type supports the given markup version,otherwise false.public boolean supports(WebBrowser.JavaScriptVersion js)
js - the javascript version to check for.
public static WebBrowser.MarkupVersion parseHTMLVersion(String html)
html -
public static WebBrowser.JavaScriptVersion parseJavaScriptVersion(String js)
js - the javascript version to check for.
public boolean isClientSideChecked()
true if client has sent information about its
properties. Default is false.public void setClientSideChecked(boolean value)
value - true if client has sent information about its properties,
false otherweise.public boolean performClientCheck()
true if client side checking should be performed
for this terminal type. Default is false.public void performClientCheck(boolean value)
value - public boolean isJavaEnabled()
true if the browser supports java otherwise false.public Collection getLocales()
public void setBrowserApplication(String browserApplication)
browserApplication - the browserApplication to set.public void setContentType(String contentType)
text/html
contentType - the contentType to set.public void setJavaEnabled(boolean javaEnabled)
javaEnabled - the javaEnabled to set.public void setJavaScriptVersion(WebBrowser.JavaScriptVersion javaScriptVersion)
javaScriptVersion - the JavaScript version to set.public void setMarkupVersion(WebBrowser.MarkupVersion markupVersion)
markupVersion - the markup language version to set.public void setScreenHeight(int screenHeight)
screenHeight - the screen height to set in pixels.public void setScreenWidth(int screenWidth)
screenWidth - the screenWidth to set in pixels.public WebBrowser.RenderingMode getRenderingMode()
public void setRenderingMode(WebBrowser.RenderingMode renderingMode)
renderingMode - the rendering mode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||