Package org.eclipse.swt.browser
Interface ProgressListener
-
- All Superinterfaces:
EventListener,SWTEventListener
- All Known Implementing Classes:
ProgressAdapter
public interface ProgressListener extends SWTEventListener
This listener interface may be implemented in order to receive aProgressEventnotification when aBrowsermakes a progress in loading the current URL or when the current URL has been loaded.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchanged(ProgressEvent event)This method is called when a progress is made during the loading of the current location.static ProgressListenerchangedAdapter(Consumer<ProgressEvent> c)Static 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 ProgressListenercompletedAdapter(Consumer<ProgressEvent> c)Static helper method to create aProgressListenerfor thecompleted(ProgressEvent e)) method, given a lambda expression or a method reference.
-
-
-
Method Detail
-
changed
void changed(ProgressEvent event)
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
void completed(ProgressEvent event)
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 ProgressListener changedAdapter(Consumer<ProgressEvent> c)
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 ProgressListener completedAdapter(Consumer<ProgressEvent> c)
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
-
-