com.pepper.guiutils.browser
Interface PepperURIContentListener


public interface PepperURIContentListener

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


Method Summary
 boolean canHandleContent(PepperURIContentEvent event)
          Determine whether the listener can handle the content type.
 org.mozilla.jrex.io.JRexStreamListener doContent(PepperURIContentEvent event)
          Called when it's time to load the content.
 boolean onStartContent(PepperURIContentEvent event)
          Gives the content listener first crack at stopping a load before it happens.
 

Method Detail

onStartContent

boolean onStartContent(PepperURIContentEvent event)
Gives the content listener first crack at stopping a load before it happens.

Returns:
false if the load can continue; true if the load should be aborted.
See Also:
PepperURIContentEvent

doContent

org.mozilla.jrex.io.JRexStreamListener doContent(PepperURIContentEvent event)
Called when it's time to load the content.

Parameters:
event - Event describing the content type of the resource to load.
Returns:
true if the browser should stop loading the content (because the listener's doing it), or false if the browser should continue loading the content.

canHandleContent

boolean canHandleContent(PepperURIContentEvent event)
Determine whether the listener can handle the content type.

Parameters:
event - Event describing the content type of the resource to load.
Returns:
true if the listener can handle the content, or false if it can't.


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