Package org.eclipse.swt.browser
Interface ProgressListener
- All Known Implementing Classes:
ProgressAdapter
public interface ProgressListener
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 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
-
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.
- (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:
- ProgressListener
- Since:
- 4.1
-
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:
- ProgressListener
- Since:
- 4.1
-