|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JRex HistoryListener interface, This listener can be added to listen to any History related events.
JRexCanvas.addHistoryListener(org.mozilla.jrex.event.history.HistoryListener)
Method Summary | |
void |
addEntry(HistoryEvent event)
called to notify a listener when a new document is added to session history. |
boolean |
goBack(HistoryEvent event)
called to notify a listener when the user presses the 'back' button of the browser OR when the user attempts to go back one page in history thro' other means, from javascript or using nsIWebNavigation For this event the HistoryEvent's getEventParam will return uri of the previous page which is to be loaded. |
boolean |
goForward(HistoryEvent event)
called to notify a listener when the user presses the 'forward' button of the browser OR when the user attempts to go forward one page in history thro' other means, from javascript or using nsIWebNavigation For this event the HistoryEvent's getEventParam will return uri of the next page which is to be loaded. |
boolean |
goToIndex(HistoryEvent event)
called to notify a listener when the user visits a page using the 'Go' menu of the browser OR when the user attempts to go to a page at a particular index through other means, like from javascript or using nsIWebNavigation For this event the HistoryEvent's getEventParam will return IntegerEventParam instance with 'int' data containing index in history of the document to be loaded and 'uri' containing uri of the document to be loaded. |
boolean |
purge(HistoryEvent event)
called to notify a listener when documents are removed from session history. |
boolean |
reload(HistoryEvent event)
called to notify a listener when the user presses the 'reload' button of the browser OR when the user attempts to reload the current document through other means, like from javascript or using nsIWebNavigation For this event the HistoryEvent's getEventParam will return IntegerEventParam instance with 'int' data containing reloadFlags and 'uri' containing uri of the current document to be reloaded. |
Method Detail |
public void addEntry(HistoryEvent event)
HistoryEvent.getEventParam()
public boolean goBack(HistoryEvent event)
true
, it indicates
that the back operation can be continued else back operation will be aborted.
This is a mechanism for the listener to control user's operations with history.HistoryEvent.getEventParam()
public boolean goForward(HistoryEvent event)
true
, it indicates
that the forward operation can be continued else forward operation will be aborted.
This is a mechanism for the listener to control user's operations with history.HistoryEvent.getEventParam()
public boolean reload(HistoryEvent event)
true
, it indicates
that the reload operation can be continued else reload operation will be aborted.
This is a mechanism for the listener to control user's operations with history.IntegerEventParam
,
HistoryEvent.getEventParam()
public boolean goToIndex(HistoryEvent event)
true
, it indicates
that the GotoIndex operation can be continued else GotoIndex operation will be aborted.
This is a mechanism for the listener to control user's operations with history.IntegerEventParam
,
HistoryEvent.getEventParam()
public boolean purge(HistoryEvent event)
true
, it indicates
that the purge operation can be continued else purge operation will be aborted.
This is a mechanism for the listener to control user's operations with history.Note:- While purging history, the older documents are removed
and newly loaded documents are kept. For example if there
are 5 documents in history, and purge is called with 3 entries
to be removed, then document 1, 2 and 3 are removed from history
and most recently loaded document 4 and 5 are kept.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |