Package org.eclipse.swt.browser
Class ProgressAdapter
- java.lang.Object
-
- org.eclipse.swt.browser.ProgressAdapter
-
- All Implemented Interfaces:
ProgressListener
public abstract class ProgressAdapter extends java.lang.Object implements ProgressListener
This adapter class provides default implementations for the methods described by theProgressListener
interface.Classes that wish to deal with
ProgressEvent
's can extend this class and override only the methods which they are interested in.An alternative to this class are the static helper methods in
ProgressListener
, which accept a lambda expression or a method reference that implements the event consumer.- Since:
- 3.0
- See Also:
- Sample code and further information
-
-
Constructor Summary
Constructors Constructor Description ProgressAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changed(ProgressEvent event)
This method is called when a progress is made during the loading of the current location.void
completed(ProgressEvent event)
This method is called when the current location has been completely loaded.
-
-
-
Method Detail
-
changed
public void changed(ProgressEvent event)
Description copied from interface:ProgressListener
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
- Specified by:
changed
in interfaceProgressListener
- Parameters:
event
- theProgressEvent
related to the loading of the current location of aBrowser
-
completed
public void completed(ProgressEvent event)
Description copied from interface:ProgressListener
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
- Specified by:
completed
in interfaceProgressListener
- Parameters:
event
- theProgressEvent
related to theBrowser
that has loaded its current URL.
- (in) widget the
-
-