Package org.eclipse.swt.browser
Interface ProgressListener
- All Superinterfaces:
EventListener
- 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.- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidchanged(ProgressEvent event) This method is called when a progress is made during the loading of the current location.static ProgressListenerStatic helper method to create aProgressListenerfor thechanged(ProgressEvent e)) method, given a lambda expression or a method reference.voidcompleted(ProgressEvent event) This method is called when the current location has been completely loaded.static ProgressListenerStatic helper method to create aProgressListenerfor 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
ProgressEventapply:- (in) current the progress for the location currently being loaded
- (in) total the maximum progress for the location currently being loaded
- (in) widget the
Browserwhose current URL is being loaded
- Parameters:
event- theProgressEventrelated 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
ProgressEventapply:- (in) widget the
Browserwhose current URL has been loaded
- Parameters:
event- theProgressEventrelated to theBrowserthat has loaded its current URL.- Since:
- 3.0
- (in) widget the
-
changedAdapter
Static helper method to create aProgressListenerfor 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 aProgressListenerfor thecompleted(ProgressEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-