|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.millstone.webadapter.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
|
Constructor Summary | |
WebBrowser()
Constructor WebBrowserType. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Test the equality of the properties for two web browser types |
java.lang.String |
getBrowserApplication()
Get the name and version of the web browser application. |
java.lang.String |
getContentType()
Get preferred content type |
java.util.Locale |
getDefaultLocale()
Get the default locale requested by the browser. |
java.lang.String |
getDefaultTheme()
Get name of the default theme |
WebBrowser.JavaScriptVersion |
getJavaScriptVersion()
Get the version of the supported Java Script by the browser. |
java.util.Collection |
getLocales()
Returns the locales supported by the web browser. |
WebBrowser.MarkupVersion |
getMarkupVersion()
Get the supported markup language. |
int |
getScreenHeight()
Get height of the terminal window in pixels |
int |
getScreenWidth()
Get width of the terminal window in pixels |
int |
hashCode()
Hash code composed of the properties of the web browser type |
boolean |
isClientSideChecked()
Get the client side cheked property. |
boolean |
isFrameSupport()
Does the browser support frames ? |
boolean |
isJavaEnabled()
Check if web browser supports Java. |
static WebBrowser.MarkupVersion |
parseHTMLVersion(java.lang.String html)
Parse HTML version from string. |
static WebBrowser.JavaScriptVersion |
parseJavaScriptVersion(java.lang.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(java.lang.String browserApplication)
Sets the browser application. |
void |
setClientSideChecked(boolean value)
Set the client side checked property. |
void |
setContentType(java.lang.String contentType)
Sets the default content type. |
void |
setFrameSupport(boolean frameSupport)
Set 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 |
setScreenHeight(int screenHeight)
Sets the screen height. |
void |
setScreenWidth(int screenWidth)
Sets the screen width. |
boolean |
supports(java.lang.String browser)
Check if this type supports also given browser. |
boolean |
supports(WebBrowser.JavaScriptVersion js)
Check if this type supports given javascript version. |
boolean |
supports(WebBrowser.MarkupVersion html)
Check if this type supports given markup language version. |
java.lang.String |
toString()
Repsent the type of the web browser as string |
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 ECMA_262
public static final WebBrowser.JavaScriptVersion[] JAVASCRIPT_VERSIONS
Constructor Detail |
public WebBrowser()
Method Detail |
public java.lang.String getDefaultTheme()
getDefaultTheme
in interface Terminal
public java.lang.String getBrowserApplication()
public WebBrowser.JavaScriptVersion getJavaScriptVersion()
public boolean isFrameSupport()
public void setFrameSupport(boolean frameSupport)
frameSupport
- True if the browser supports frames, False if notpublic WebBrowser.MarkupVersion getMarkupVersion()
public int getScreenHeight()
getScreenHeight
in interface Terminal
public int getScreenWidth()
getScreenWidth
in interface Terminal
public java.util.Locale getDefaultLocale()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getContentType()
public boolean supports(java.lang.String browser)
public boolean supports(WebBrowser.MarkupVersion html)
public boolean supports(WebBrowser.JavaScriptVersion js)
js
- The javascript version to check for.
public static WebBrowser.MarkupVersion parseHTMLVersion(java.lang.String html)
public static WebBrowser.JavaScriptVersion parseJavaScriptVersion(java.lang.String js)
public boolean isClientSideChecked()
public void setClientSideChecked(boolean value)
public boolean performClientCheck()
public void performClientCheck(boolean value)
public boolean isJavaEnabled()
public java.util.Collection getLocales()
public void setBrowserApplication(java.lang.String browserApplication)
browserApplication
- The browserApplication to setpublic void setContentType(java.lang.String contentType)
text/html
contentType
- The contentType to setpublic void setJavaEnabled(boolean javaEnabled)
javaEnabled
- The javaEnabled to setpublic void setJavaScriptVersion(WebBrowser.JavaScriptVersion javaScriptVersion)
javaScriptVersion
- The JavaScript version to setpublic void setMarkupVersion(WebBrowser.MarkupVersion markupVersion)
markupVersion
- ersion The markup language version to setpublic void setScreenHeight(int screenHeight)
screenHeight
- The screen height to set in pixels.public void setScreenWidth(int screenWidth)
screenWidth
- The screenWidth to set in pixels.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |