com.pepper.guiutils.browser
Class BaseProgressListener

java.lang.Object
  extended by com.pepper.guiutils.browser.BaseProgressListener
All Implemented Interfaces:
PepperProgressListener

public class BaseProgressListener
extends Object
implements PepperProgressListener

Base implementation of PepperProgressListener.


Field Summary
protected  GuiServicesProvider gsp
           
 
Constructor Summary
BaseProgressListener(String packageId)
          Called by JRex
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gsp

protected GuiServicesProvider gsp
Constructor Detail

BaseProgressListener

public BaseProgressListener(String packageId)
Called by JRex

Method Detail

onLinkStatusChange

public void onLinkStatusChange(StatusEvent event)
Description copied from interface: PepperProgressListener
Event sent when mousing over a link. The status message normally contains the URL of the link to be displayed.

Specified by:
onLinkStatusChange in interface PepperProgressListener
Parameters:
event - Status event containing link

onLocationChange

public void onLocationChange(PepperProgressEvent event)
Description copied from interface: PepperProgressListener
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.

Specified by:
onLocationChange in interface PepperProgressListener
Parameters:
event - The ProgressEvent
See Also:
PepperProgressEvent

onProgressChange

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

Specified by:
onProgressChange in interface PepperProgressListener
Parameters:
event - The ProgressEvent
See Also:
PepperProgressEvent, ProgressChangeEventParam

onStateChange

public void onStateChange(StateChangeEvent event)
Description copied from interface: PepperProgressListener
Notification indicating the state has changed for one of the requests associated with the document loaded.

Specified by:
onStateChange in interface PepperProgressListener
Parameters:
event - Event describing the state change

onSecurityChange

public void onSecurityChange(PepperProgressEvent event)
Description copied from interface: PepperProgressListener
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.

Specified by:
onSecurityChange in interface PepperProgressListener
Parameters:
event - The ProgressEvent
See Also:
PepperProgressEvent

onStatusChange

public void onStatusChange(StatusEvent event)
Description copied from interface: PepperProgressListener
Status message from a browser.

Specified by:
onStatusChange in interface PepperProgressListener
Parameters:
event - StatusEvent containing the status message


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