com.pepper.guiutils.browser
Class StateChangeEvent

java.lang.Object
  extended by com.pepper.guiutils.browser.BrowserEvent
      extended by com.pepper.guiutils.browser.StateChangeEvent

public class StateChangeEvent
extends BrowserEvent

Notification of a state transition in the browser while loading a page. This is a granular event, representing page loading as a whole. It does not get fired for individual requests, just the page as a whole.


Constructor Summary
StateChangeEvent(String viewID, int eventType)
          StateChangeEvent constructor
StateChangeEvent(String viewID, int eventType, String requestName)
          Creates a new StateChangeEvent instance.
StateChangeEvent(String viewID, int eventType, String requestName, boolean canGoBack, boolean canGoForward)
          Creates a new StateChangeEvent instance.
 
Method Summary
 boolean canGoBack()
          Describe canGoBack method here.
 boolean canGoForward()
          Describe canGoForward method here.
 int getEventType()
          Returns the type of the event.
 String getRequestName()
          Returns the uri of the request
 
Methods inherited from class com.pepper.guiutils.browser.BrowserEvent
getEventParam, getViewID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateChangeEvent

public StateChangeEvent(String viewID,
                        int eventType)
StateChangeEvent constructor

Parameters:
viewID - ID of the WebBrowserView that generated the event
eventType - type of the event.
See Also:
StateChangeEvent.getEventType()

StateChangeEvent

public StateChangeEvent(String viewID,
                        int eventType,
                        String requestName)
Creates a new StateChangeEvent instance.

Parameters:
viewID - a String value
eventType - an int value
requestName - a String value

StateChangeEvent

public StateChangeEvent(String viewID,
                        int eventType,
                        String requestName,
                        boolean canGoBack,
                        boolean canGoForward)
Creates a new StateChangeEvent instance.

Parameters:
viewID - a String value
eventType - an int value
requestName - a String value
canGoBack - a boolean value
canGoForward - a boolean value
Method Detail

canGoBack

public boolean canGoBack()
Describe canGoBack method here.

Returns:
a boolean value

canGoForward

public boolean canGoForward()
Describe canGoForward method here.

Returns:
a boolean value

getRequestName

public String getRequestName()
Returns the uri of the request

Returns:
a String value

getEventType

public int getEventType()
Returns the type of the event. Valid types are: STATE_START
STATE_REDIRECTING
STATE_TRANSFERRING
STATE_NEGOTIATING
STATE_STOP
as defined in org.mozilla.jrex.event.progress.ProgressEventConstants.

Overrides:
getEventType in class BrowserEvent
Returns:
type of the event


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