|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jrex.ui.JRexToolBarImpl
Class implementing JRexToolBar interface.
JRexToolBar
Constructor Summary | |
JRexToolBarImpl()
Don't use this function to create a JRexToolBar instance use JRexFactory. |
Method Summary | |
void |
actionPerformed(ActionEvent ae)
|
void |
addEntry(HistoryEvent event)
called to notify a listener when a new document is added to session history. |
JComponent |
getToolBar()
Function to get the tool bar. |
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. |
void |
setBrowser(JRexCanvas browser)
Invoked to set the browser component associated with tool bar. |
void |
setModeAndChrome(int mode,
long chromeFlags)
Invoked to set the WindowManager MODE in use and chrome flags associated with the browser component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JRexToolBarImpl()
JRexFactory
Method Detail |
public void setModeAndChrome(int mode, long chromeFlags)
JRexToolBar
setModeAndChrome
in interface JRexToolBar
public void setBrowser(JRexCanvas browser)
JRexToolBar
setBrowser
in interface JRexToolBar
public JComponent getToolBar()
JRexToolBar
getToolBar
in interface JRexToolBar
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
public void addEntry(HistoryEvent event)
HistoryListener
addEntry
in interface HistoryListener
HistoryEvent.getEventParam()
public boolean goBack(HistoryEvent event)
HistoryListener
goBack
in interface HistoryListener
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)
HistoryListener
goForward
in interface HistoryListener
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)
HistoryListener
reload
in interface HistoryListener
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)
HistoryListener
goToIndex
in interface HistoryListener
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)
HistoryListener
purge
in interface HistoryListener
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 |