|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.guiutils.mozilla.MozillaBrowserView
public class MozillaBrowserView
This class represents a browser view surrounding Mozilla
Field Summary |
---|
Fields inherited from interface com.pepper.guiutils.browser.WebBrowserView |
---|
WINDOW_CURRENT, WINDOW_NEW, WINDOW_NEW_TAB |
Constructor Summary | |
---|---|
protected |
MozillaBrowserView(String packageId,
int peerId)
Construct the view objec with the peerId representing the JRex native window |
Method Summary | |
---|---|
void |
addContextMenuListener(PepperContextMenuListener listener)
Add listener to handle context menus (ie right mouse); |
void |
addHistoryListener(PepperHistoryListener listener)
Add a HistoryListener |
void |
addProgressListener(PepperProgressListener listener)
Add a ProgressListener for page loading status |
void |
addURIContentListener(PepperURIContentListener listener)
Add a URIContentListener to listen for specific content types, such as audio, so we can intercept and handle in Pepper UI |
boolean |
canCopy()
Returns true if something is selected in the browser and it can be copied to the system clipboard |
boolean |
canCut()
Returns true if browser can cut |
boolean |
canGoBack()
Describe canGoBack method here. |
boolean |
canGoForward()
Describe canGoForward method here. |
boolean |
canPaste()
Returns true if browser can paste |
void |
clearHistory()
Clear the session history |
void |
copy()
Copy the selected text in the browser to the clipboard |
void |
cut()
Cut to clipboard |
void |
destroy()
Describe destroy method here. |
boolean |
find(FindConfig findConfig)
invoked to find text on the current page |
boolean |
findAgain()
Invoked to repeat previous find |
String |
getCurrentURL()
Return the URL of the currently displayed page |
Document |
getDOM()
Get the DOM for the current page |
FormElementManager |
getElementManager()
Get the element manager |
FindConfig |
getFindConfig()
Get current findConfig object used for find methods |
WebHistory |
getHistory()
Describe getHistory method here. |
netscape.javascript.JSObject |
getJSObject()
All JavaScript objects appear within Java as instances of JSObject. |
boolean |
getNewlyCreated()
Returns true when the view is newly created and no pages have been loaded in it yet. |
SystemTrayObject |
getPopupBlockedTrayObject()
|
int |
getSelectedHistoryIndex()
|
Component |
getUIComponent()
Get the UI Component that represents this view |
String |
getViewId()
Get the unique identifier of this view |
void |
goBack()
Describe goBack method here. |
void |
goForward()
Describe goForward method here. |
void |
goToIndex(int index)
Go to specified history index |
boolean |
isVisible()
Returns true if this view is currently visible |
void |
loadPage(InputStream inputStream,
String uri)
Describe loadPage method here. |
void |
loadPage(String theContent)
Loads the string content |
void |
loadPage(URL pageURL)
Loads the url |
void |
loadURI(String uri)
Loads the uri specified by the string |
void |
loadURI(String uri,
int loadFlags)
Load a uri using the specified load flags |
void |
loadURI(String uri,
int loadFlags,
String referURI,
InputStream postData,
InputStream headers)
Load a uri using the specified load flags and with the specified referrer URL and POST data. |
void |
openWindow(short type,
String uri,
String referer,
String windowName,
String features,
boolean animate)
Load the specified uri in a new window |
void |
paste()
paste from clipboard |
void |
print(boolean showPrintDialog)
Print the current page in the browser. |
void |
refresh()
Refresh the current view |
void |
reload()
Reload the current document |
void |
removeContextMenuListener(PepperContextMenuListener listener)
Remove content listener |
void |
removeHistoryListener(PepperHistoryListener listener)
Remove HistoryListener |
void |
removeProgressListener(PepperProgressListener listener)
Remove ProgressListener |
void |
removeURIContentListener(PepperURIContentListener listener)
Remove URIContentListener |
void |
requestFocus()
Request focus for the browser component |
void |
selectAll()
Select everything on the current page |
void |
selectNone()
De-select everything on the current page |
void |
setNewlyCreated(boolean state)
Set whether this view is considered newly created or not |
void |
setPopupBlockedTrayObject(SystemTrayObject trayObject)
|
void |
setSelectedHistoryIndex(int index)
|
void |
stopLoading()
Stop loading the current document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MozillaBrowserView(String packageId, int peerId)
peerId
- an int
valueMethod Detail |
---|
public String getViewId()
getViewId
in interface WebBrowserView
String
valuepublic void setPopupBlockedTrayObject(SystemTrayObject trayObject)
public SystemTrayObject getPopupBlockedTrayObject()
public void requestFocus()
requestFocus
in interface WebBrowserView
public netscape.javascript.JSObject getJSObject()
WebBrowserView
Values passed from Java to JavaScript are converted as follows:
(String) window.getMember("name");
or
(JSObject) window.getMember("document");
.
getJSObject
in interface WebBrowserView
JSObject
valueWebBrowserView
public Component getUIComponent()
getUIComponent
in interface WebBrowserView
public boolean isVisible()
isVisible
in interface WebBrowserView
boolean
valuepublic void loadPage(URL pageURL)
loadPage
in interface WebBrowserView
pageURL
- the page to load.public void loadURI(String uri)
loadURI
in interface WebBrowserView
uri
- a String
valuepublic void loadURI(String uri, int loadFlags)
loadURI
in interface WebBrowserView
uri
- a String
valueloadFlags
- an int
valueWebNavigationConstants
public void loadURI(String uri, int loadFlags, String referURI, InputStream postData, InputStream headers)
loadURI
in interface WebBrowserView
uri
- a String
valueloadFlags
- an int
valuereferURI
- The referring URI. If this argument is NULL, the
referring URI will be inferred internally.postData
- InputStream containing POST data for the request.headers
- InputStream containing POST headers for the request.WebNavigationConstants
public void openWindow(short type, String uri, String referer, String windowName, String features, boolean animate) throws Exception
openWindow
in interface WebBrowserView
type
- the type of windowuri
- uri to open in the new windowreferer
- 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. Example would be
"centerscreen,chrome,modal=yes,dialog=yes"animate
- if true animate the progress bar and the spinny
Exception
public void loadPage(String theContent)
loadPage
in interface WebBrowserView
theContent
- a String
valuepublic void loadPage(InputStream inputStream, String uri)
loadPage
method here.
loadPage
in interface WebBrowserView
inputStream
- an InputStream
valueuri
- a String
valuepublic boolean canGoBack()
canGoBack
method here.
canGoBack
in interface WebBrowserView
boolean
valuepublic void print(boolean showPrintDialog)
WebBrowserView
print
in interface WebBrowserView
showPrintDialog
- True to show the print setup dialogWebBrowserView
public boolean find(FindConfig findConfig)
WebBrowserView
find
in interface WebBrowserView
findConfig
- a FindConfig
object that enapsulates find parameters
WebBrowserView
public boolean findAgain()
WebBrowserView
findAgain
in interface WebBrowserView
WebBrowserView
public FindConfig getFindConfig()
WebBrowserView
getFindConfig
in interface WebBrowserView
FindConfig
valueWebBrowserView
public boolean canGoForward()
WebBrowserView
canGoForward
method here.
canGoForward
in interface WebBrowserView
boolean
valueWebBrowserView
public void goBack()
WebBrowserView
goBack
method here.
goBack
in interface WebBrowserView
WebBrowserView
public void goForward()
WebBrowserView
goForward
method here.
goForward
in interface WebBrowserView
WebBrowserView
public void goToIndex(int index)
goToIndex
in interface WebBrowserView
index
- an int
valuepublic void reload()
reload
in interface WebBrowserView
public boolean canCopy()
WebBrowserView
canCopy
in interface WebBrowserView
boolean
valueWebBrowserView
public void copy()
WebBrowserView
copy
in interface WebBrowserView
WebBrowserView
public boolean canPaste()
WebBrowserView
canPaste
in interface WebBrowserView
boolean
valueWebBrowserView
public void paste()
WebBrowserView
paste
in interface WebBrowserView
WebBrowserView
public boolean canCut()
WebBrowserView
canCut
in interface WebBrowserView
boolean
valueWebBrowserView
public void cut()
WebBrowserView
cut
in interface WebBrowserView
WebBrowserView
public void selectAll()
WebBrowserView
selectAll
in interface WebBrowserView
WebBrowserView
public void selectNone()
WebBrowserView
selectNone
in interface WebBrowserView
WebBrowserView
public void refresh()
WebBrowserView
refresh
in interface WebBrowserView
WebBrowserView
public void stopLoading()
stopLoading
in interface WebBrowserView
public void destroy()
WebBrowserView
destroy
method here.
destroy
in interface WebBrowserView
WebBrowserView
public Document getDOM()
getDOM
in interface WebBrowserView
Document
valuepublic FormElementManager getElementManager()
getElementManager
in interface WebBrowserView
FormElementManager
valuepublic String getCurrentURL()
getCurrentURL
in interface WebBrowserView
String
valuepublic boolean getNewlyCreated()
getNewlyCreated
in interface WebBrowserView
boolean
valuepublic void setNewlyCreated(boolean state)
setNewlyCreated
in interface WebBrowserView
state
- a boolean
valuepublic WebHistory getHistory()
getHistory
method here.
getHistory
in interface WebBrowserView
WebHistory
valuepublic void clearHistory()
clearHistory
in interface WebBrowserView
public int getSelectedHistoryIndex()
getSelectedHistoryIndex
in interface WebBrowserView
public void setSelectedHistoryIndex(int index)
setSelectedHistoryIndex
in interface WebBrowserView
public void addHistoryListener(PepperHistoryListener listener)
WebBrowserView
addHistoryListener
in interface WebBrowserView
listener
- PepperHistoryListenerWebBrowserView
public void removeHistoryListener(PepperHistoryListener listener)
WebBrowserView
removeHistoryListener
in interface WebBrowserView
listener
- PepperHistoryListenerWebBrowserView
public void addProgressListener(PepperProgressListener listener)
WebBrowserView
addProgressListener
in interface WebBrowserView
listener
- PepperProgressListenerWebBrowserView
public void removeProgressListener(PepperProgressListener listener)
WebBrowserView
removeProgressListener
in interface WebBrowserView
listener
- PepperProgressListenerWebBrowserView
public void addURIContentListener(PepperURIContentListener listener)
WebBrowserView
addURIContentListener
in interface WebBrowserView
listener
- PepperURIContentListenerWebBrowserView
public void removeURIContentListener(PepperURIContentListener listener)
WebBrowserView
removeURIContentListener
in interface WebBrowserView
listener
- an URIContentListener
valueWebBrowserView
public void addContextMenuListener(PepperContextMenuListener listener)
WebBrowserView
addContextMenuListener
in interface WebBrowserView
listener
- a PepperContextMenuListener
valueWebBrowserView
public void removeContextMenuListener(PepperContextMenuListener listener)
WebBrowserView
removeContextMenuListener
in interface WebBrowserView
listener
- a PepperContextMenuListener
valueWebBrowserView
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |