Java Doc for Browser.java in  » Ajax » GWT » org » eclipse » swt » browser » 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 » Ajax » GWT » org.eclipse.swt.browser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.swt.browser.Browser

Browser
public class Browser extends Composite (Code)
Instances of this class implement the browser user interface metaphor. It allows the user to visualize and navigate through HTML documents.

Note that although this class is a subclass of Composite, it does not make sense to set a layout on it.

IMPORTANT: This class is not intended to be subclassed.


since:
   3.0


Field Summary
final static  StringABOUT_BLANK
    
final static  intBeforeNavigate2
    
final static  StringCLSID_SHELLEXPLORER1
    
final static  shortCSC_NAVIGATEBACK
    
final static  shortCSC_NAVIGATEFORWARD
    
final static  intCommandStateChange
    
final static  intDISPID_AMBIENT_DLCONTROL
    
final static  intDLCTL_BGSOUNDS
    
final static  intDLCTL_DLIMAGES
    
final static  intDLCTL_DOWNLOADONLY
    
final static  intDLCTL_FORCEOFFLINE
    
final static  intDLCTL_NO_CLIENTPULL
    
final static  intDLCTL_NO_DLACTIVEXCTLS
    
final static  intDLCTL_NO_FRAMEDOWNLOAD
    
final static  intDLCTL_NO_JAVA
    
final static  intDLCTL_NO_RUNACTIVEXCTLS
    
final static  intDLCTL_NO_SCRIPTS
    
final static  intDLCTL_PRAGMA_NO_CACHE
    
final static  intDLCTL_RESYNCHRONIZE
    
final static  intDLCTL_SILENT
    
final static  intDLCTL_VIDEOS
    
final static  intDOCHOSTUIFLAG_NO3DBORDER
    
final static  intDOCHOSTUIFLAG_NO3DOUTERBORDER
    
final static  intDOCHOSTUIFLAG_THEME
    
final static  intDocumentComplete
    
final static  intINET_E_DEFAULT_ACTION
    
final static  intNavigateComplete2
    
final static  intNewWindow2
    
final static  intOnMenuBar
    
final static  intOnStatusBar
    
final static  intOnToolBar
    
final static  intOnVisible
    
final static  StringPACKAGE_PREFIX
    
final static  intProgressChange
    
final static  intREADYSTATE_COMPLETE
    
final static  intRegisterAsBrowser
    
final static  intStatusTextChange
    
final static  intTitleChange
    
final static  intURLACTION_ACTIVEX_MAX
    
final static  intURLACTION_ACTIVEX_MIN
    
final static  intURLACTION_ACTIVEX_RUN
    
final static  intURLACTION_JAVA_MAX
    
final static  intURLACTION_JAVA_MIN
    
final static  intURLPOLICY_ALLOW
    
final static  intURLPOLICY_DISALLOW
    
final static  intURLPOLICY_JAVA_LOW
    
final static  intURLZONE_INTRANET
    
final static  intURLZONE_LOCAL_MACHINE
    
final static  StringURL_DIRECTOR
    
final static  intWindowClosing
    
final static  intWindowSetHeight
    
final static  intWindowSetLeft
    
final static  intWindowSetResizable
    
final static  intWindowSetTop
    
final static  intWindowSetWidth
    
 booleanaddressBarmenuBarstatusBartoolBar
    
 OleAutomationauto
    
 booleanbackforwardnavigatedelaySetTextignoreDispose
    
 CloseWindowListener[]closeWindowListeners
    
 OleFrameframe
    
 intglobalDispatch
    
 Stringhtml
    
 intinfo
    
 Pointlocation
    
 LocationListener[]locationListeners
    
 OpenWindowListener[]openWindowListeners
    
 ProgressListener[]progressListeners
    
 OleControlSitesite
    
 Pointsize
    
 StatusTextListener[]statusTextListeners
    
 TitleListener[]titleListeners
    
 VisibilityWindowListener[]visibilityWindowListeners
    

Constructor Summary
public  Browser(Composite parent, int style)
     Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants.


Method Summary
public  voidaddCloseWindowListener(CloseWindowListener listener)
     Adds the listener to the collection of listeners who will be notified when the window hosting the receiver should be closed.
public  voidaddLocationListener(LocationListener listener)
     Adds the listener to the collection of listeners who will be notified when the current location has changed or is about to change.
public  voidaddOpenWindowListener(OpenWindowListener listener)
     Adds the listener to the collection of listeners who will be notified when a new window needs to be created.
public  voidaddProgressListener(ProgressListener listener)
     Adds the listener to the collection of listeners who will be notified when a progress is made during the loading of the current URL or when the loading of the current URL has been completed.
public  voidaddStatusTextListener(StatusTextListener listener)
     Adds the listener to the collection of listeners who will be notified when the status text is changed.
public  voidaddTitleListener(TitleListener listener)
     Adds the listener to the collection of listeners who will be notified when the title of the current document is available or has changed.
public  voidaddVisibilityWindowListener(VisibilityWindowListener listener)
     Adds the listener to the collection of listeners who will be notified when a window hosting the receiver needs to be displayed or hidden.
public  booleanback()
     Navigate to the previous session history item.
protected  voidcheckSubclass()
    
public static  voidclearSessions()
     Clears all session cookies from all current Browser instances.
public  booleanexecute(String script)
     Execute the specified script.

Execute a script containing javascript commands in the context of the current document.

public  booleanforward()
     Navigate to the next session history item.
public  StringgetUrl()
     Returns the current URL.
public  booleanisBackEnabled()
     Returns true if the receiver can navigate to the previous session history item, and false otherwise.
public  booleanisFocusControl()
    
public  booleanisForwardEnabled()
     Returns true if the receiver can navigate to the next session history item, and false otherwise.
public  voidrefresh()
     Refresh the current page.
public  voidremoveCloseWindowListener(CloseWindowListener listener)
     Removes the listener from the collection of listeners who will be notified when the window hosting the receiver should be closed.
public  voidremoveLocationListener(LocationListener listener)
     Removes the listener from the collection of listeners who will be notified when the current location is changed or about to be changed.
public  voidremoveOpenWindowListener(OpenWindowListener listener)
     Removes the listener from the collection of listeners who will be notified when a new window needs to be created.
public  voidremoveProgressListener(ProgressListener listener)
     Removes the listener from the collection of listeners who will be notified when a progress is made during the loading of the current URL or when the loading of the current URL has been completed.
public  voidremoveStatusTextListener(StatusTextListener listener)
     Removes the listener from the collection of listeners who will be notified when the status text is changed.
public  voidremoveTitleListener(TitleListener listener)
     Removes the listener from the collection of listeners who will be notified when the title of the current document is available or has changed.
public  voidremoveVisibilityWindowListener(VisibilityWindowListener listener)
     Removes the listener from the collection of listeners who will be notified when a window hosting the receiver needs to be displayed or hidden.
public  booleansetText(String html)
     Renders HTML.

The html parameter is Unicode encoded since it is a java String. As a result, the HTML meta tag charset should not be set.

public  booleansetUrl(String url)
     Loads a URL.
public  voidstop()
     Stop any loading and rendering activity.

Field Detail
ABOUT_BLANK
final static String ABOUT_BLANK(Code)



BeforeNavigate2
final static int BeforeNavigate2(Code)



CLSID_SHELLEXPLORER1
final static String CLSID_SHELLEXPLORER1(Code)



CSC_NAVIGATEBACK
final static short CSC_NAVIGATEBACK(Code)



CSC_NAVIGATEFORWARD
final static short CSC_NAVIGATEFORWARD(Code)



CommandStateChange
final static int CommandStateChange(Code)



DISPID_AMBIENT_DLCONTROL
final static int DISPID_AMBIENT_DLCONTROL(Code)



DLCTL_BGSOUNDS
final static int DLCTL_BGSOUNDS(Code)



DLCTL_DLIMAGES
final static int DLCTL_DLIMAGES(Code)



DLCTL_DOWNLOADONLY
final static int DLCTL_DOWNLOADONLY(Code)



DLCTL_FORCEOFFLINE
final static int DLCTL_FORCEOFFLINE(Code)



DLCTL_NO_CLIENTPULL
final static int DLCTL_NO_CLIENTPULL(Code)



DLCTL_NO_DLACTIVEXCTLS
final static int DLCTL_NO_DLACTIVEXCTLS(Code)



DLCTL_NO_FRAMEDOWNLOAD
final static int DLCTL_NO_FRAMEDOWNLOAD(Code)



DLCTL_NO_JAVA
final static int DLCTL_NO_JAVA(Code)



DLCTL_NO_RUNACTIVEXCTLS
final static int DLCTL_NO_RUNACTIVEXCTLS(Code)



DLCTL_NO_SCRIPTS
final static int DLCTL_NO_SCRIPTS(Code)



DLCTL_PRAGMA_NO_CACHE
final static int DLCTL_PRAGMA_NO_CACHE(Code)



DLCTL_RESYNCHRONIZE
final static int DLCTL_RESYNCHRONIZE(Code)



DLCTL_SILENT
final static int DLCTL_SILENT(Code)



DLCTL_VIDEOS
final static int DLCTL_VIDEOS(Code)



DOCHOSTUIFLAG_NO3DBORDER
final static int DOCHOSTUIFLAG_NO3DBORDER(Code)



DOCHOSTUIFLAG_NO3DOUTERBORDER
final static int DOCHOSTUIFLAG_NO3DOUTERBORDER(Code)



DOCHOSTUIFLAG_THEME
final static int DOCHOSTUIFLAG_THEME(Code)



DocumentComplete
final static int DocumentComplete(Code)



INET_E_DEFAULT_ACTION
final static int INET_E_DEFAULT_ACTION(Code)



NavigateComplete2
final static int NavigateComplete2(Code)



NewWindow2
final static int NewWindow2(Code)



OnMenuBar
final static int OnMenuBar(Code)



OnStatusBar
final static int OnStatusBar(Code)



OnToolBar
final static int OnToolBar(Code)



OnVisible
final static int OnVisible(Code)



PACKAGE_PREFIX
final static String PACKAGE_PREFIX(Code)



ProgressChange
final static int ProgressChange(Code)



READYSTATE_COMPLETE
final static int READYSTATE_COMPLETE(Code)



RegisterAsBrowser
final static int RegisterAsBrowser(Code)



StatusTextChange
final static int StatusTextChange(Code)



TitleChange
final static int TitleChange(Code)



URLACTION_ACTIVEX_MAX
final static int URLACTION_ACTIVEX_MAX(Code)



URLACTION_ACTIVEX_MIN
final static int URLACTION_ACTIVEX_MIN(Code)



URLACTION_ACTIVEX_RUN
final static int URLACTION_ACTIVEX_RUN(Code)



URLACTION_JAVA_MAX
final static int URLACTION_JAVA_MAX(Code)



URLACTION_JAVA_MIN
final static int URLACTION_JAVA_MIN(Code)



URLPOLICY_ALLOW
final static int URLPOLICY_ALLOW(Code)



URLPOLICY_DISALLOW
final static int URLPOLICY_DISALLOW(Code)



URLPOLICY_JAVA_LOW
final static int URLPOLICY_JAVA_LOW(Code)



URLZONE_INTRANET
final static int URLZONE_INTRANET(Code)



URLZONE_LOCAL_MACHINE
final static int URLZONE_LOCAL_MACHINE(Code)



URL_DIRECTOR
final static String URL_DIRECTOR(Code)



WindowClosing
final static int WindowClosing(Code)



WindowSetHeight
final static int WindowSetHeight(Code)



WindowSetLeft
final static int WindowSetLeft(Code)



WindowSetResizable
final static int WindowSetResizable(Code)



WindowSetTop
final static int WindowSetTop(Code)



WindowSetWidth
final static int WindowSetWidth(Code)



addressBarmenuBarstatusBartoolBar
boolean addressBarmenuBarstatusBartoolBar(Code)



auto
OleAutomation auto(Code)



backforwardnavigatedelaySetTextignoreDispose
boolean backforwardnavigatedelaySetTextignoreDispose(Code)



closeWindowListeners
CloseWindowListener[] closeWindowListeners(Code)



frame
OleFrame frame(Code)



globalDispatch
int globalDispatch(Code)



html
String html(Code)



info
int info(Code)



location
Point location(Code)



locationListeners
LocationListener[] locationListeners(Code)



openWindowListeners
OpenWindowListener[] openWindowListeners(Code)



progressListeners
ProgressListener[] progressListeners(Code)



site
OleControlSite site(Code)



size
Point size(Code)



statusTextListeners
StatusTextListener[] statusTextListeners(Code)



titleListeners
TitleListener[] titleListeners(Code)



visibilityWindowListeners
VisibilityWindowListener[] visibilityWindowListeners(Code)




Constructor Detail
Browser
public Browser(Composite parent, int style)(Code)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.


Parameters:
  parent - a widget which will be the parent of the new instance (cannot be null)
Parameters:
  style - the style of widget to construct
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the parent is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent

exception:
  SWTError -
  • ERROR_NO_HANDLES if a handle could not be obtained for browser creation

See Also:   Widget.getStyle
since:
   3.0




Method Detail
addCloseWindowListener
public void addCloseWindowListener(CloseWindowListener listener)(Code)
Adds the listener to the collection of listeners who will be notified when the window hosting the receiver should be closed.

This notification occurs when a javascript command such as window.close gets executed by a Browser.


Parameters:
  listener - the listener which should be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



addLocationListener
public void addLocationListener(LocationListener listener)(Code)
Adds the listener to the collection of listeners who will be notified when the current location has changed or is about to change.

This notification typically occurs when the application navigates to a new location with Browser.setUrl(String) or when the user activates a hyperlink.


Parameters:
  listener - the listener which should be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



addOpenWindowListener
public void addOpenWindowListener(OpenWindowListener listener)(Code)
Adds the listener to the collection of listeners who will be notified when a new window needs to be created.

This notification occurs when a javascript command such as window.open gets executed by a Browser.


Parameters:
  listener - the listener which should be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



addProgressListener
public void addProgressListener(ProgressListener listener)(Code)
Adds the listener to the collection of listeners who will be notified when a progress is made during the loading of the current URL or when the loading of the current URL has been completed.
Parameters:
  listener - the listener which should be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



addStatusTextListener
public void addStatusTextListener(StatusTextListener listener)(Code)
Adds the listener to the collection of listeners who will be notified when the status text is changed.

The status text is typically displayed in the status bar of a browser application.


Parameters:
  listener - the listener which should be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



addTitleListener
public void addTitleListener(TitleListener listener)(Code)
Adds the listener to the collection of listeners who will be notified when the title of the current document is available or has changed.
Parameters:
  listener - the listener which should be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



addVisibilityWindowListener
public void addVisibilityWindowListener(VisibilityWindowListener listener)(Code)
Adds the listener to the collection of listeners who will be notified when a window hosting the receiver needs to be displayed or hidden.
Parameters:
  listener - the listener which should be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



back
public boolean back()(Code)
Navigate to the previous session history item. true if the operation was successful and false otherwise
exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

See Also:   Browser.forward
since:
   3.0



checkSubclass
protected void checkSubclass()(Code)



clearSessions
public static void clearSessions()(Code)
Clears all session cookies from all current Browser instances.
since:
   3.2



execute
public boolean execute(String script)(Code)
Execute the specified script.

Execute a script containing javascript commands in the context of the current document.
Parameters:
  script - the script with javascript commands true if the operation was successful and false otherwise
exception:
  IllegalArgumentException -

  • ERROR_NULL_ARGUMENT - if the script is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.1



forward
public boolean forward()(Code)
Navigate to the next session history item. true if the operation was successful and false otherwise
exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

See Also:   Browser.back
since:
   3.0



getUrl
public String getUrl()(Code)
Returns the current URL. the current URL or an empty String if there is no current URL
exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

See Also:   Browser.setUrl
since:
   3.0



isBackEnabled
public boolean isBackEnabled()(Code)
Returns true if the receiver can navigate to the previous session history item, and false otherwise. the receiver's back command enabled state
exception:
  SWTException -
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver

See Also:   Browser.back



isFocusControl
public boolean isFocusControl()(Code)



isForwardEnabled
public boolean isForwardEnabled()(Code)
Returns true if the receiver can navigate to the next session history item, and false otherwise. the receiver's forward command enabled state
exception:
  SWTException -
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver

See Also:   Browser.forward



refresh
public void refresh()(Code)
Refresh the current page.
exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



removeCloseWindowListener
public void removeCloseWindowListener(CloseWindowListener listener)(Code)
Removes the listener from the collection of listeners who will be notified when the window hosting the receiver should be closed.
Parameters:
  listener - the listener which should no longer be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



removeLocationListener
public void removeLocationListener(LocationListener listener)(Code)
Removes the listener from the collection of listeners who will be notified when the current location is changed or about to be changed.
Parameters:
  listener - the listener which should no longer be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



removeOpenWindowListener
public void removeOpenWindowListener(OpenWindowListener listener)(Code)
Removes the listener from the collection of listeners who will be notified when a new window needs to be created.
Parameters:
  listener - the listener which should no longer be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



removeProgressListener
public void removeProgressListener(ProgressListener listener)(Code)
Removes the listener from the collection of listeners who will be notified when a progress is made during the loading of the current URL or when the loading of the current URL has been completed.
Parameters:
  listener - the listener which should no longer be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



removeStatusTextListener
public void removeStatusTextListener(StatusTextListener listener)(Code)
Removes the listener from the collection of listeners who will be notified when the status text is changed.
Parameters:
  listener - the listener which should no longer be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



removeTitleListener
public void removeTitleListener(TitleListener listener)(Code)
Removes the listener from the collection of listeners who will be notified when the title of the current document is available or has changed.
Parameters:
  listener - the listener which should no longer be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



removeVisibilityWindowListener
public void removeVisibilityWindowListener(VisibilityWindowListener listener)(Code)
Removes the listener from the collection of listeners who will be notified when a window hosting the receiver needs to be displayed or hidden.
Parameters:
  listener - the listener which should no longer be notified
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the listener is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



setText
public boolean setText(String html)(Code)
Renders HTML.

The html parameter is Unicode encoded since it is a java String. As a result, the HTML meta tag charset should not be set. The charset is implied by the String itself.
Parameters:
  html - the HTML content to be rendered true if the operation was successful and false otherwise.
exception:
  IllegalArgumentException -

  • ERROR_NULL_ARGUMENT - if the html is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

See Also:   Browser.setUrl
since:
   3.0



setUrl
public boolean setUrl(String url)(Code)
Loads a URL.
Parameters:
  url - the URL to be loaded true if the operation was successful and false otherwise.
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT - if the url is null

exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

See Also:   Browser.getUrl
since:
   3.0



stop
public void stop()(Code)
Stop any loading and rendering activity.
exception:
  SWTException -
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • ERROR_WIDGET_DISPOSED when the widget has been disposed

since:
   3.0



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