com.pepper.guiutils.browser
Interface PepperProgressListener

All Known Implementing Classes:
BaseProgressListener

public interface PepperProgressListener

Interface implemented by classes interested in progress events from the browser implementation.


Method Summary
 void onLinkStatusChange(StatusEvent event)
          Event sent when mousing over a link.
 void onLocationChange(PepperProgressEvent event)
          Called when the window being watched changes the location that is currently.
 void onProgressChange(PepperProgressEvent event)
          Notification that the progress has changed for one of the requests being monitored.
 void onSecurityChange(PepperProgressEvent event)
          Notification called for security progress.
 void onStateChange(StateChangeEvent event)
          Notification indicating the state has changed for one of the requests associated with the document loaded.
 void onStatusChange(StatusEvent event)
          Status message from a browser.
 

Method Detail

onStateChange

void onStateChange(StateChangeEvent event)
Notification indicating the state has changed for one of the requests associated with the document loaded.

Parameters:
event - Event describing the state change

onProgressChange

void onProgressChange(PepperProgressEvent event)
Notification that the progress has changed for one of the requests being monitored. For this event the ProgressEvent's getEventParam will return ProgressChangeEventParam instance.

Parameters:
event - The ProgressEvent
See Also:
PepperProgressEvent, ProgressChangeEventParam

onLocationChange

void onLocationChange(PepperProgressEvent event)
Called when the window being watched changes the location that is currently. This is not when a load is requested, but rather once it is verified that the load is going to occur in the given window. For instance, a load that starts in a window might send progress and status messages, for the new site but it will not send the onLocationChange until we are sure we are loading this new page here. For this event the ProgressEvent's getEventParam will return URI of the location that is being loaded.

Parameters:
event - The ProgressEvent
See Also:
PepperProgressEvent

onStatusChange

void onStatusChange(StatusEvent event)
Status message from a browser.

Parameters:
event - StatusEvent containing the status message

onSecurityChange

void onSecurityChange(PepperProgressEvent event)
Notification called for security progress. This method will be called on security transitions (eg HTTP -> HTTPS, HTTPS -> HTTP, FOO -> https) and after document load completion. It might also be called if an error occurs during network loading. For this event the ProgressEvent's getEventParam will return StatusChangeEventParam instance. These notification will only occur if a security package is installed.

Parameters:
event - The ProgressEvent
See Also:
PepperProgressEvent

onLinkStatusChange

void onLinkStatusChange(StatusEvent event)
Event sent when mousing over a link. The status message normally contains the URL of the link to be displayed.

Parameters:
event - Status event containing link


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.