Package org.eclipse.swt.browser
Interface ProgressListener
- All Superinterfaces:
EventListener
,SWTEventListener
- All Known Implementing Classes:
ProgressAdapter
This listener interface may be implemented in order to receive
a
ProgressEvent
notification when a Browser
makes a progress in loading the current URL or when the
current URL has been loaded.-
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(ProgressEvent event) This method is called when a progress is made during the loading of the current location.static ProgressListener
Static helper method to create aProgressListener
for thechanged(ProgressEvent e)
) method, given a lambda expression or a method reference.void
completed
(ProgressEvent event) This method is called when the current location has been completely loaded.static ProgressListener
Static helper method to create aProgressListener
for thecompleted(ProgressEvent e)
) method, given a lambda expression or a method reference.
-
Method Details
-
changed
This method is called when a progress is made during the loading of the current location.The following fields in the
ProgressEvent
apply:- (in) current the progress for the location currently being loaded
- (in) total the maximum progress for the location currently being loaded
- (in) widget the
Browser
whose current URL is being loaded
- Parameters:
event
- theProgressEvent
related to the loading of the current location of aBrowser
- Since:
- 3.0
-
completed
This method is called when the current location has been completely loaded.The following fields in the
ProgressEvent
apply:- (in) widget the
Browser
whose current URL has been loaded
- Parameters:
event
- theProgressEvent
related to theBrowser
that has loaded its current URL.- Since:
- 3.0
- (in) widget the
-
changedAdapter
Static helper method to create aProgressListener
for thechanged(ProgressEvent e)
) method, given a lambda expression or a method reference.- Parameters:
c
- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-
completedAdapter
Static helper method to create aProgressListener
for thecompleted(ProgressEvent e)
) method, given a lambda expression or a method reference.- Parameters:
c
- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-