|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mozilla.jrex.navigation.WebNavigationImpl
Class implementing WebNavigation interface.
| Constructor Summary | |
WebNavigationImpl()
|
|
| Method Summary | |
boolean |
canGoBack()
Indicates if the object can go back. |
boolean |
canGoForward()
Indicates if the object can go forward. |
URI |
getCurrentURI()
Get the currently loaded URI or null. |
Object |
getDocument()
Retrieves the current DOM document for the frame, or lazily creates a blank document if there is none. |
URI |
getReferringURI()
Get the referring URI for the current open page. |
History |
getSessionHistory()
Get the session history object used to store the session history for the session. |
boolean |
goBack()
Tells the object to navigate to the previous session history item. |
boolean |
goForward()
Tells the object to navigate to the next Forward session history item. |
boolean |
goToIndex(int index)
Tells the object to navigate to the session history item at index. |
void |
loadURI(String uri,
int loadFlags,
String referrer,
InputStream postData,
InputStream headers)
Loads a given URI. |
void |
loadURI(URI uri,
int loadFlags,
URI referrer,
InputStream postData,
InputStream headers)
Loads a given URI. |
void |
openWindow(short type,
String uri,
String referrer,
String windowName,
String features)
Open a new window. |
void |
reload(int reloadFlags)
Tells the Object to reload the current page. |
void |
setJRexPeer(int jrexPeer)
The peer JREX Window on which to navigate |
void |
setSessionHistory(History his)
Set the session history object used to store the session history for the session. |
void |
stop(int stopFlags)
Stops a load of a URI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebNavigationImpl()
| Method Detail |
public void setJRexPeer(int jrexPeer)
WebNavigation
setJRexPeer in interface WebNavigationjrexPeer - jrex peer window associated with browser component
public boolean canGoBack()
throws JRexException
WebNavigation
canGoBack in interface WebNavigationJRexException
public boolean canGoForward()
throws JRexException
WebNavigation
canGoForward in interface WebNavigationJRexException
public boolean goBack()
throws JRexException
WebNavigation
goBack in interface WebNavigationJRexException
public boolean goForward()
throws JRexException
WebNavigation
goForward in interface WebNavigationJRexException
public boolean goToIndex(int index)
throws JRexException
WebNavigation
goToIndex in interface WebNavigationJRexException
public void loadURI(URI uri,
int loadFlags,
URI referrer,
InputStream postData,
InputStream headers)
throws JRexException
WebNavigation
loadURI in interface WebNavigationuri - - The URI string to load.loadFlags - - Flags modifying load behaviour. Generally you will pass
LOAD_FLAGS_NONE for this parameter.referrer - - The referring URI. If this argument is NULL, the
referring URI will be inferred internally.postData - - nsIInputStream containing POST data for the request.headers - - nsIInputStream containing POST data for the request.
JRexException
public void loadURI(String uri,
int loadFlags,
String referrer,
InputStream postData,
InputStream headers)
throws JRexException
WebNavigation
loadURI in interface WebNavigationuri - - The URI string to load.loadFlags - - Flags modifying load behaviour. Generally you will pass
LOAD_FLAGS_NONE for this parameter.referrer - - The referring URI. If this argument is NULL, the
referring URI will be inferred internally.postData - - nsIInputStream containing POST data for the request.headers - - nsIInputStream containing POST data for the request.
JRexException
public void openWindow(short type,
String uri,
String referrer,
String windowName,
String features)
throws JRexException
WebNavigation
openWindow in interface WebNavigationtype - the type of windowuri - to which to open the new window. Must already be
escaped if applicable. can be null.referrer - the refence uri to be used.windowName - window name from JS window.open. can be null.features - window features from JS window.open. can be null.
Note:- The window attached to this navigator will be parent.
JRexException
public void reload(int reloadFlags)
throws JRexException
WebNavigation
reload in interface WebNavigationreloadFlags - - Flags modifying reload behaviour. Generally you will
pass LOAD_FLAGS_NONE for this parameter.
JRexException
public void stop(int stopFlags)
throws JRexException
WebNavigation
stop in interface WebNavigationstopFlags - - Flags indicating the stop behavior.
JRexException
public Object getDocument()
throws JRexException
WebNavigation
getDocument in interface WebNavigationJRexException
public URI getCurrentURI()
throws JRexException
WebNavigation
getCurrentURI in interface WebNavigationJRexException
public URI getReferringURI()
throws JRexException
WebNavigation
getReferringURI in interface WebNavigationJRexException
public History getSessionHistory()
throws JRexException
WebNavigation
getSessionHistory in interface WebNavigationJRexException
public void setSessionHistory(History his)
throws JRexException
WebNavigation
setSessionHistory in interface WebNavigationhis - - The Session history object.
JRexException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||