|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.device.api.browser.field.Event
|
+--net.rim.device.api.browser.field.HistoryEvent
Event to interact with the browser field's history.
| Field Summary | ||
|
static int |
TYPE_ADD_URL
Event to add new URL to the history. |
|
static int |
TYPE_NAVIGATION
Event to navigate within the history. |
|
static int |
TYPE_REMOVE_URL
Event to remove URL from the history. |
| Fields inherited from class net.rim.device.api.browser.field.Event |
EVENT_BROWSER_CONTENT_CHANGED, EVENT_CANCEL_REQUEST_RESOURCE, EVENT_CLOSE, EVENT_ERROR_DISPLAY, EVENT_EXECUTING_SCRIPT, EVENT_FULL_WINDOW, EVENT_HISTORY, EVENT_REDIRECT, EVENT_SET_HEADER, EVENT_SET_HTTP_COOKIE, EVENT_STOP, EVENT_TICK_CONTENT_READ, EVENT_UI_DIRECTION_REQUEST, EVENT_URL_REQUESTED, PUBLIC_EVENT_THRESHOLD |
| Constructor Summary | ||
|
HistoryEvent(Object src,
int index,
boolean programmatic,
int type)
Constructs a new HistoryEvent instance for navigation. |
|
|
HistoryEvent(Object src,
String url,
int type)
Constructs a new HistoryEvent instance for adding/removing URLs. |
|
| Method Summary | ||
|
int |
getIndex()
Retrieves offset for history navigation. |
|
int |
getType()
Retrieves event type. |
|
String |
getURL()
Retrieves URL for event. |
|
boolean |
isProgrammatic()
Determines if event is programmatic. |
| Methods inherited from class net.rim.device.api.browser.field.Event |
getSource, getSourceURL, getUID, resolveUrl |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TYPE_ADD_URL
public static final int TYPE_NAVIGATION
public static final int TYPE_REMOVE_URL
| Constructor Detail |
public HistoryEvent(Object src, int index, boolean programmatic, int type)
src - Source for this event.index - History index value expressed as a distance from the
"current" page (-1 indicates go back one page, +2 indicates go forward
two pages).programmatic - True to indicate this event is created as a result of
a programmatic action; otherwise, false.type - Type of history event; should be TYPE_NAVIGATION.public HistoryEvent(Object src, String url, int type)
This constructor assumes the event is created as a result of a programmatic action.
src - Source for this event.url - URL to add to, or remove from, this history.type - Type of history event; should be TYPE_ADD_URL or
TYPE_REMOVE_URL.| Method Detail |
public int getIndex()
public int getType()
TYPE_NAVIGATION, TYPE_ADD_URL, or
TYPE_REMOVE_URL.public String getURL()
public boolean isProgrammatic()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.