|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.guiutils.browser.JavaView
public class JavaView
This class represents a view surrounding a Java Panel, and is created by the framework when a Section is defined of type="java"
Field Summary |
---|
Fields inherited from interface com.pepper.guiutils.browser.WebBrowserView |
---|
WINDOW_CURRENT, WINDOW_NEW, WINDOW_NEW_TAB |
Constructor Summary | |
---|---|
JavaView(String packageId,
String viewId)
Creates a new JavaView instance. |
Method Summary | |
---|---|
void |
addContextMenuListener(PepperContextMenuListener listener)
Not implemented |
void |
addHistoryListener(PepperHistoryListener listener)
Not implemented |
void |
addProgressListener(PepperProgressListener listener)
Not implemented |
void |
addURIContentListener(PepperURIContentListener listener)
Not implemented |
boolean |
canCopy()
Not implemented |
boolean |
canCut()
Not implemented |
boolean |
canGoBack()
Not implemented |
boolean |
canGoForward()
Not implemented |
boolean |
canPaste()
Not implemented |
void |
clearHistory()
Not implemented |
void |
copy()
Not implemented |
static JavaView |
createView(AbstractPepperProgram theProg,
JavaSection section)
Create the Java View |
void |
cut()
Not implemented |
void |
destroy()
Not implemented |
boolean |
find(FindConfig args)
Not implemented |
boolean |
findAgain()
Not implemented |
String |
getCurrentURL()
Not implemented |
Document |
getDOM()
Not implemented |
FormElementManager |
getElementManager()
Not implemented |
FindConfig |
getFindConfig()
Not implemented |
WebHistory |
getHistory()
Not implemented |
netscape.javascript.JSObject |
getJSObject()
Not implemented |
boolean |
getNewlyCreated()
Returns true when the view is newly created and no pages have been loaded in it yet. |
int |
getSelectedHistoryIndex()
Not implemented |
Component |
getUIComponent()
Return the UI component associated with this view |
String |
getViewId()
Get the unique identifier of this view |
void |
goBack()
Not implemented |
void |
goForward()
Not implemented |
void |
goToIndex(int historyIndex)
Not implemented |
boolean |
isVisible()
Returns true if this view is currently visible |
void |
loadPage(InputStream stream,
String url)
Not implemented |
void |
loadPage(String theContent)
Not implemented |
void |
loadPage(URL pageURL)
Not implemented |
void |
loadURI(String uri)
Not implemented |
void |
loadURI(String uri,
int loadFlags)
Not implemented |
void |
loadURI(String uri,
int loadFlags,
String referURI,
InputStream postData,
InputStream headers)
Not implemented |
void |
openWindow(short type,
String uri,
String referrer,
String windowName,
String features,
boolean animate)
Not implemented |
void |
paste()
Not implemented |
void |
print(boolean showPrintDialog)
Not implemented |
void |
refresh()
Not implemented |
void |
reload()
Not implemented |
void |
removeContextMenuListener(PepperContextMenuListener listener)
Not implemented |
void |
removeHistoryListener(PepperHistoryListener listener)
Not implemented |
void |
removeProgressListener(PepperProgressListener listener)
Not implemented |
void |
removeURIContentListener(PepperURIContentListener listener)
Not implemented |
void |
requestFocus()
Request focus on the main ui component |
void |
selectAll()
Not implemented |
void |
selectNone()
Not implemented |
void |
setNewlyCreated(boolean state)
Set whether this view is considered newly created or not |
void |
setSelectedHistoryIndex(int index)
Not implemented |
void |
stopLoading()
Not implemented |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaView(String packageId, String viewId)
JavaView
instance.
packageId
- a String
valueviewId
- a String
valueMethod Detail |
---|
public static JavaView createView(AbstractPepperProgram theProg, JavaSection section)
theProg
- AbstractPepperProgram instancesection
- a JavaSection
value
JavaView
valuepublic String getViewId()
getViewId
in interface WebBrowserView
String
valuepublic Component getUIComponent()
getUIComponent
in interface WebBrowserView
Component
valuepublic boolean isVisible()
isVisible
in interface WebBrowserView
boolean
valuepublic void loadPage(URL pageURL)
loadPage
in interface WebBrowserView
pageURL
- the page to load.public void loadPage(String theContent)
loadPage
in interface WebBrowserView
theContent
- a String
valuepublic void loadPage(InputStream stream, String url)
loadPage
in interface WebBrowserView
stream
- an InputStream
valueurl
- a String
valuepublic 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 referrer, String windowName, String features, boolean animate) throws Exception
openWindow
in interface WebBrowserView
type
- the type of windowuri
- uri to open in the new windowreferrer
- 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 boolean canCopy()
canCopy
in interface WebBrowserView
boolean
valuepublic void copy()
copy
in interface WebBrowserView
public boolean canPaste()
canPaste
in interface WebBrowserView
boolean
valuepublic void paste()
paste
in interface WebBrowserView
public boolean canCut()
canCut
in interface WebBrowserView
boolean
valuepublic void cut()
cut
in interface WebBrowserView
public void selectAll()
selectAll
in interface WebBrowserView
public void selectNone()
selectNone
in interface WebBrowserView
public boolean canGoBack()
canGoBack
in interface WebBrowserView
boolean
valuepublic void print(boolean showPrintDialog)
print
in interface WebBrowserView
showPrintDialog
- True to show the print setup dialogpublic boolean find(FindConfig args)
find
in interface WebBrowserView
args
- a FindConfig
object that enapsulates find parameters
public boolean findAgain()
findAgain
in interface WebBrowserView
public FindConfig getFindConfig()
getFindConfig
in interface WebBrowserView
FindConfig
valuepublic boolean canGoForward()
canGoForward
in interface WebBrowserView
boolean
valuepublic void goBack()
goBack
in interface WebBrowserView
public void goForward()
goForward
in interface WebBrowserView
public void goToIndex(int historyIndex)
goToIndex
in interface WebBrowserView
historyIndex
- an int
valuepublic void reload()
reload
in interface WebBrowserView
public void refresh()
refresh
in interface WebBrowserView
public void stopLoading()
stopLoading
in interface WebBrowserView
public void destroy()
destroy
in interface WebBrowserView
public Document getDOM()
getDOM
in interface WebBrowserView
Document
valuepublic String getCurrentURL()
getCurrentURL
in interface WebBrowserView
String
valuepublic WebHistory getHistory()
getHistory
in interface WebBrowserView
WebHistory
valuepublic void clearHistory()
clearHistory
in interface WebBrowserView
public int getSelectedHistoryIndex()
getSelectedHistoryIndex
in interface WebBrowserView
int
valuepublic void setSelectedHistoryIndex(int index)
setSelectedHistoryIndex
in interface WebBrowserView
index
- an int
valuepublic void addHistoryListener(PepperHistoryListener listener)
addHistoryListener
in interface WebBrowserView
listener
- PepperHistoryListenerpublic void removeHistoryListener(PepperHistoryListener listener)
removeHistoryListener
in interface WebBrowserView
listener
- PepperHistoryListenerpublic void addProgressListener(PepperProgressListener listener)
addProgressListener
in interface WebBrowserView
listener
- PepperProgressListenerpublic void removeProgressListener(PepperProgressListener listener)
removeProgressListener
in interface WebBrowserView
listener
- PepperProgressListenerpublic void addURIContentListener(PepperURIContentListener listener)
addURIContentListener
in interface WebBrowserView
listener
- PepperURIContentListenerpublic void removeURIContentListener(PepperURIContentListener listener)
removeURIContentListener
in interface WebBrowserView
listener
- an URIContentListener
valuepublic void addContextMenuListener(PepperContextMenuListener listener)
addContextMenuListener
in interface WebBrowserView
listener
- a PepperContextMenuListener
valuepublic void removeContextMenuListener(PepperContextMenuListener listener)
removeContextMenuListener
in interface WebBrowserView
listener
- a PepperContextMenuListener
valuepublic FormElementManager getElementManager()
getElementManager
in interface WebBrowserView
FormElementManager
valuepublic netscape.javascript.JSObject getJSObject()
getJSObject
in interface WebBrowserView
JSObject
valuepublic void requestFocus()
requestFocus
in interface WebBrowserView
public boolean getNewlyCreated()
getNewlyCreated
in interface WebBrowserView
boolean
valuepublic void setNewlyCreated(boolean state)
setNewlyCreated
in interface WebBrowserView
state
- a boolean
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |