Java Doc for WebBrowser.java in  » Web-Framework » Millstone » org » millstone » webadapter » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » Millstone » org.millstone.webadapter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.millstone.webadapter.WebBrowser

WebBrowser
public class WebBrowser implements Terminal(Code)
Web browser terminal type. This class implements web browser properties, which declare the features of the web browser.
author:
   IT Mill Ltd.
version:
   3.1.1
since:
   3.0

Inner Class :public class MarkupVersion
Inner Class :public class JavaScriptVersion

Field Summary
final public static  JavaScriptVersionECMA_262
    
final public static  JavaScriptVersionJAVASCRIPT_1_0
    
final public static  JavaScriptVersionJAVASCRIPT_1_1
    
final public static  JavaScriptVersionJAVASCRIPT_1_2
    
final public static  JavaScriptVersionJAVASCRIPT_1_3
    
final public static  JavaScriptVersionJAVASCRIPT_1_4
    
final public static  JavaScriptVersionJAVASCRIPT_1_5
    
final public static  JavaScriptVersionJAVASCRIPT_NONE
    
final public static  JavaScriptVersionJAVASCRIPT_UNCHECKED
    
final public static  JavaScriptVersion[]JAVASCRIPT_VERSIONS
    
final public static  JavaScriptVersionJSCRIPT_1_0
    
final public static  JavaScriptVersionJSCRIPT_3_0
    
final public static  JavaScriptVersionJSCRIPT_4_0
    
final public static  JavaScriptVersionJSCRIPT_5_0
    
final public static  JavaScriptVersionJSCRIPT_5_1
    
final public static  JavaScriptVersionJSCRIPT_5_5
    
final public static  JavaScriptVersionJSCRIPT_5_6
    
final public static  MarkupVersionMARKUP_HTML_2_0
    
final public static  MarkupVersionMARKUP_HTML_3_2
    
final public static  MarkupVersionMARKUP_HTML_4_0
    
final public static  MarkupVersionMARKUP_UNKNOWN
    
final public static  MarkupVersion[]MARKUP_VERSIONS
    
final public static  MarkupVersionMARKUP_WML_1_0
    
final public static  MarkupVersionMARKUP_WML_1_1
    
final public static  MarkupVersionMARKUP_WML_1_2
    
final public static  MarkupVersionMARKUP_XHTML_1_0
    
final public static  MarkupVersionMARKUP_XHTML_2_0
    

Constructor Summary
public  WebBrowser()
     Constructor WebBrowserType.

Method Summary
public  booleanequals(Object obj)
    
public  StringgetBrowserApplication()
     Get the name and version of the web browser application.
public  StringgetContentType()
    
public  LocalegetDefaultLocale()
     Get the default locale requested by the browser.
public  StringgetDefaultTheme()
    
public  JavaScriptVersiongetJavaScriptVersion()
     Get the version of the supported Java Script by the browser.
public  CollectiongetLocales()
     Returns the locales supported by the web browser.
public  MarkupVersiongetMarkupVersion()
     Get the supported markup language.
public  intgetScreenHeight()
    
public  intgetScreenWidth()
    
public  inthashCode()
    
public  booleanisClientSideChecked()
     Get the client side cheked property. Certain terminal features can only be detected at client side.
public  booleanisFrameSupport()
    
public  booleanisJavaEnabled()
     Check if web browser supports Java.
public static  MarkupVersionparseHTMLVersion(String html)
     Parse HTML version from string.
public static  JavaScriptVersionparseJavaScriptVersion(String js)
     Parse JavaScript version from string.
public  booleanperformClientCheck()
     Should the client features be checked using remote scripts. Should the client side terminal feature check be performed. true if client side checking should be performed for this terminal type.
public  voidperformClientCheck(boolean value)
     Should the client features be checked using remote scripts. true if client side checking should be performed for this terminal type.
public  voidsetBrowserApplication(String browserApplication)
     Sets the browser application.
public  voidsetClientSideChecked(boolean value)
     Set the client side checked property. Certain terminal features can only be detected at client side.
public  voidsetContentType(String contentType)
     Sets the default content type.
public  voidsetFrameSupport(boolean frameSupport)
    
public  voidsetJavaEnabled(boolean javaEnabled)
     Sets the java enabled property.
public  voidsetJavaScriptVersion(JavaScriptVersion javaScriptVersion)
     Sets the JavaScript version.
public  voidsetMarkupVersion(MarkupVersion markupVersion)
     Sets the markup language version.
public  voidsetScreenHeight(int screenHeight)
     Sets the screen height.
public  voidsetScreenWidth(int screenWidth)
     Sets the screen width.
public  booleansupports(String browser)
     Check if this type supports also given browser.
public  booleansupports(MarkupVersion html)
     Check if this type supports given markup language version.
public  booleansupports(JavaScriptVersion js)
     Check if this type supports given javascript version.
Parameters:
  js - The javascript version to check for.
public  StringtoString()
    

Field Detail
ECMA_262
final public static JavaScriptVersion ECMA_262(Code)



JAVASCRIPT_1_0
final public static JavaScriptVersion JAVASCRIPT_1_0(Code)



JAVASCRIPT_1_1
final public static JavaScriptVersion JAVASCRIPT_1_1(Code)



JAVASCRIPT_1_2
final public static JavaScriptVersion JAVASCRIPT_1_2(Code)



JAVASCRIPT_1_3
final public static JavaScriptVersion JAVASCRIPT_1_3(Code)



JAVASCRIPT_1_4
final public static JavaScriptVersion JAVASCRIPT_1_4(Code)



JAVASCRIPT_1_5
final public static JavaScriptVersion JAVASCRIPT_1_5(Code)



JAVASCRIPT_NONE
final public static JavaScriptVersion JAVASCRIPT_NONE(Code)



JAVASCRIPT_UNCHECKED
final public static JavaScriptVersion JAVASCRIPT_UNCHECKED(Code)



JAVASCRIPT_VERSIONS
final public static JavaScriptVersion[] JAVASCRIPT_VERSIONS(Code)



JSCRIPT_1_0
final public static JavaScriptVersion JSCRIPT_1_0(Code)



JSCRIPT_3_0
final public static JavaScriptVersion JSCRIPT_3_0(Code)



JSCRIPT_4_0
final public static JavaScriptVersion JSCRIPT_4_0(Code)



JSCRIPT_5_0
final public static JavaScriptVersion JSCRIPT_5_0(Code)



JSCRIPT_5_1
final public static JavaScriptVersion JSCRIPT_5_1(Code)



JSCRIPT_5_5
final public static JavaScriptVersion JSCRIPT_5_5(Code)



JSCRIPT_5_6
final public static JavaScriptVersion JSCRIPT_5_6(Code)



MARKUP_HTML_2_0
final public static MarkupVersion MARKUP_HTML_2_0(Code)



MARKUP_HTML_3_2
final public static MarkupVersion MARKUP_HTML_3_2(Code)



MARKUP_HTML_4_0
final public static MarkupVersion MARKUP_HTML_4_0(Code)



MARKUP_UNKNOWN
final public static MarkupVersion MARKUP_UNKNOWN(Code)



MARKUP_VERSIONS
final public static MarkupVersion[] MARKUP_VERSIONS(Code)



MARKUP_WML_1_0
final public static MarkupVersion MARKUP_WML_1_0(Code)



MARKUP_WML_1_1
final public static MarkupVersion MARKUP_WML_1_1(Code)



MARKUP_WML_1_2
final public static MarkupVersion MARKUP_WML_1_2(Code)



MARKUP_XHTML_1_0
final public static MarkupVersion MARKUP_XHTML_1_0(Code)



MARKUP_XHTML_2_0
final public static MarkupVersion MARKUP_XHTML_2_0(Code)




Constructor Detail
WebBrowser
public WebBrowser()(Code)
Constructor WebBrowserType. Creates default WebBrowserType instance.




Method Detail
equals
public boolean equals(Object obj)(Code)
Test the equality of the properties for two web browser types



getBrowserApplication
public String getBrowserApplication()(Code)
Get the name and version of the web browser application. This is the version string reported by the web-browser in http headers. Web browser application.



getContentType
public String getContentType()(Code)
Get preferred content type



getDefaultLocale
public Locale getDefaultLocale()(Code)
Get the default locale requested by the browser. Default locale



getDefaultTheme
public String getDefaultTheme()(Code)
Get name of the default theme Name of the terminal window



getJavaScriptVersion
public JavaScriptVersion getJavaScriptVersion()(Code)
Get the version of the supported Java Script by the browser. Null if the Java Script is not supported. Version of the supported Java Script



getLocales
public Collection getLocales()(Code)
Returns the locales supported by the web browser. Collection



getMarkupVersion
public MarkupVersion getMarkupVersion()(Code)
Get the supported markup language. Supported markup language



getScreenHeight
public int getScreenHeight()(Code)
Get height of the terminal window in pixels Height of the terminal window



getScreenWidth
public int getScreenWidth()(Code)
Get width of the terminal window in pixels Width of the terminal window



hashCode
public int hashCode()(Code)
Hash code composed of the properties of the web browser type



isClientSideChecked
public boolean isClientSideChecked()(Code)
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. true if client has sent information about its properties. Default false



isFrameSupport
public boolean isFrameSupport()(Code)
Does the browser support frames ? True if the browser supports frames, False if not



isJavaEnabled
public boolean isJavaEnabled()(Code)
Check if web browser supports Java. boolean



parseHTMLVersion
public static MarkupVersion parseHTMLVersion(String html)(Code)
Parse HTML version from string. HTMLVersion instance.



parseJavaScriptVersion
public static JavaScriptVersion parseJavaScriptVersion(String js)(Code)
Parse JavaScript version from string. HTMLVersion instance.



performClientCheck
public boolean performClientCheck()(Code)
Should the client features be checked using remote scripts. Should the client side terminal feature check be performed. true if client side checking should be performed for this terminal type. Default false.



performClientCheck
public void performClientCheck(boolean value)(Code)
Should the client features be checked using remote scripts. true if client side checking should be performed for this terminal type. Default false.



setBrowserApplication
public void setBrowserApplication(String browserApplication)(Code)
Sets the browser application. This corresponds to User-Agent HTTP header.
Parameters:
  browserApplication - The browserApplication to set



setClientSideChecked
public void setClientSideChecked(boolean value)(Code)
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. true if client has sent information about its properties, false otherweise.



setContentType
public void setContentType(String contentType)(Code)
Sets the default content type. Default is text/html
Parameters:
  contentType - The contentType to set



setFrameSupport
public void setFrameSupport(boolean frameSupport)(Code)
Set the browser frame support
Parameters:
  frameSupport - True if the browser supports frames, False if not



setJavaEnabled
public void setJavaEnabled(boolean javaEnabled)(Code)
Sets the java enabled property.
Parameters:
  javaEnabled - The javaEnabled to set



setJavaScriptVersion
public void setJavaScriptVersion(JavaScriptVersion javaScriptVersion)(Code)
Sets the JavaScript version.
Parameters:
  javaScriptVersion - The JavaScript version to set



setMarkupVersion
public void setMarkupVersion(MarkupVersion markupVersion)(Code)
Sets the markup language version.
Parameters:
  markupVersion - ersion The markup language version to set



setScreenHeight
public void setScreenHeight(int screenHeight)(Code)
Sets the screen height.
Parameters:
  screenHeight - The screen height to set in pixels.



setScreenWidth
public void setScreenWidth(int screenWidth)(Code)
Sets the screen width.
Parameters:
  screenWidth - The screenWidth to set in pixels.



supports
public boolean supports(String browser)(Code)
Check if this type supports also given browser. true if this type matches the given browser.



supports
public boolean supports(MarkupVersion html)(Code)
Check if this type supports given markup language version. true if this type supports the given markup version.



supports
public boolean supports(JavaScriptVersion js)(Code)
Check if this type supports given javascript version.
Parameters:
  js - The javascript version to check for. true if this type supports the given javascript version.



toString
public String toString()(Code)
Repsent the type of the web browser as string



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.