|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.guiutils.browser.BrowserEvent
com.pepper.guiutils.browser.StateChangeEvent
public class StateChangeEvent
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 |
---|
public StateChangeEvent(String viewID, int eventType)
viewID
- ID of the WebBrowserView that generated the eventeventType
- type of the event.StateChangeEvent.getEventType()
public StateChangeEvent(String viewID, int eventType, String requestName)
StateChangeEvent
instance.
viewID
- a String
valueeventType
- an int
valuerequestName
- a String
valuepublic StateChangeEvent(String viewID, int eventType, String requestName, boolean canGoBack, boolean canGoForward)
StateChangeEvent
instance.
viewID
- a String
valueeventType
- an int
valuerequestName
- a String
valuecanGoBack
- a boolean
valuecanGoForward
- a boolean
valueMethod Detail |
---|
public boolean canGoBack()
canGoBack
method here.
boolean
valuepublic boolean canGoForward()
canGoForward
method here.
boolean
valuepublic String getRequestName()
String
valuepublic int getEventType()
STATE_START
STATE_REDIRECTING
STATE_TRANSFERRING
STATE_NEGOTIATING
STATE_STOP
as defined in org.mozilla.jrex.event.progress.ProgressEventConstants
.
getEventType
in class BrowserEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |