com.pepper.guiutils.browser
Class JavaView

java.lang.Object
  extended by com.pepper.guiutils.browser.JavaView
All Implemented Interfaces:
WebBrowserView

public class JavaView
extends Object
implements WebBrowserView

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

JavaView

public JavaView(String packageId,
                String viewId)
Creates a new JavaView instance.

Parameters:
packageId - a String value
viewId - a String value
Method Detail

createView

public static JavaView createView(AbstractPepperProgram theProg,
                                  JavaSection section)
Create the Java View

Parameters:
theProg - AbstractPepperProgram instance
section - a JavaSection value
Returns:
a JavaView value

getViewId

public String getViewId()
Get the unique identifier of this view

Specified by:
getViewId in interface WebBrowserView
Returns:
a String value

getUIComponent

public Component getUIComponent()
Return the UI component associated with this view

Specified by:
getUIComponent in interface WebBrowserView
Returns:
a Component value

isVisible

public boolean isVisible()
Returns true if this view is currently visible

Specified by:
isVisible in interface WebBrowserView
Returns:
a boolean value

loadPage

public void loadPage(URL pageURL)
Not implemented

Specified by:
loadPage in interface WebBrowserView
Parameters:
pageURL - the page to load.

loadPage

public void loadPage(String theContent)
Not implemented

Specified by:
loadPage in interface WebBrowserView
Parameters:
theContent - a String value

loadPage

public void loadPage(InputStream stream,
                     String url)
Not implemented

Specified by:
loadPage in interface WebBrowserView
Parameters:
stream - an InputStream value
url - a String value

loadURI

public void loadURI(String uri)
Not implemented

Specified by:
loadURI in interface WebBrowserView
Parameters:
uri - a String value

loadURI

public void loadURI(String uri,
                    int loadFlags)
Not implemented

Specified by:
loadURI in interface WebBrowserView
Parameters:
uri - a String value
loadFlags - an int value
See Also:
WebNavigationConstants

loadURI

public void loadURI(String uri,
                    int loadFlags,
                    String referURI,
                    InputStream postData,
                    InputStream headers)
Not implemented

Specified by:
loadURI in interface WebBrowserView
Parameters:
uri - a String value
loadFlags - an int value
referURI - 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.
See Also:
WebNavigationConstants

openWindow

public void openWindow(short type,
                       String uri,
                       String referrer,
                       String windowName,
                       String features,
                       boolean animate)
                throws Exception
Not implemented

Specified by:
openWindow in interface WebBrowserView
Parameters:
type - the type of window
uri - uri to open in the new window
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. Example would be "centerscreen,chrome,modal=yes,dialog=yes"
animate - if true animate the progress bar and the spinny
Throws:
Exception

canCopy

public boolean canCopy()
Not implemented

Specified by:
canCopy in interface WebBrowserView
Returns:
a boolean value

copy

public void copy()
Not implemented

Specified by:
copy in interface WebBrowserView

canPaste

public boolean canPaste()
Not implemented

Specified by:
canPaste in interface WebBrowserView
Returns:
a boolean value

paste

public void paste()
Not implemented

Specified by:
paste in interface WebBrowserView

canCut

public boolean canCut()
Not implemented

Specified by:
canCut in interface WebBrowserView
Returns:
a boolean value

cut

public void cut()
Not implemented

Specified by:
cut in interface WebBrowserView

selectAll

public void selectAll()
Not implemented

Specified by:
selectAll in interface WebBrowserView

selectNone

public void selectNone()
Not implemented

Specified by:
selectNone in interface WebBrowserView

canGoBack

public boolean canGoBack()
Not implemented

Specified by:
canGoBack in interface WebBrowserView
Returns:
a boolean value

print

public void print(boolean showPrintDialog)
Not implemented

Specified by:
print in interface WebBrowserView
Parameters:
showPrintDialog - True to show the print setup dialog

find

public boolean find(FindConfig args)
Not implemented

Specified by:
find in interface WebBrowserView
Parameters:
args - a FindConfig object that enapsulates find parameters
Returns:
true if text is found

findAgain

public boolean findAgain()
Not implemented

Specified by:
findAgain in interface WebBrowserView
Returns:
true if text is found

getFindConfig

public FindConfig getFindConfig()
Not implemented

Specified by:
getFindConfig in interface WebBrowserView
Returns:
a FindConfig value

canGoForward

public boolean canGoForward()
Not implemented

Specified by:
canGoForward in interface WebBrowserView
Returns:
a boolean value

goBack

public void goBack()
Not implemented

Specified by:
goBack in interface WebBrowserView

goForward

public void goForward()
Not implemented

Specified by:
goForward in interface WebBrowserView

goToIndex

public void goToIndex(int historyIndex)
Not implemented

Specified by:
goToIndex in interface WebBrowserView
Parameters:
historyIndex - an int value

reload

public void reload()
Not implemented

Specified by:
reload in interface WebBrowserView

refresh

public void refresh()
Not implemented

Specified by:
refresh in interface WebBrowserView

stopLoading

public void stopLoading()
Not implemented

Specified by:
stopLoading in interface WebBrowserView

destroy

public void destroy()
Not implemented

Specified by:
destroy in interface WebBrowserView

getDOM

public Document getDOM()
Not implemented

Specified by:
getDOM in interface WebBrowserView
Returns:
a Document value

getCurrentURL

public String getCurrentURL()
Not implemented

Specified by:
getCurrentURL in interface WebBrowserView
Returns:
a String value

getHistory

public WebHistory getHistory()
Not implemented

Specified by:
getHistory in interface WebBrowserView
Returns:
a WebHistory value

clearHistory

public void clearHistory()
Not implemented

Specified by:
clearHistory in interface WebBrowserView

getSelectedHistoryIndex

public int getSelectedHistoryIndex()
Not implemented

Specified by:
getSelectedHistoryIndex in interface WebBrowserView
Returns:
an int value

setSelectedHistoryIndex

public void setSelectedHistoryIndex(int index)
Not implemented

Specified by:
setSelectedHistoryIndex in interface WebBrowserView
Parameters:
index - an int value

addHistoryListener

public void addHistoryListener(PepperHistoryListener listener)
Not implemented

Specified by:
addHistoryListener in interface WebBrowserView
Parameters:
listener - PepperHistoryListener

removeHistoryListener

public void removeHistoryListener(PepperHistoryListener listener)
Not implemented

Specified by:
removeHistoryListener in interface WebBrowserView
Parameters:
listener - PepperHistoryListener

addProgressListener

public void addProgressListener(PepperProgressListener listener)
Not implemented

Specified by:
addProgressListener in interface WebBrowserView
Parameters:
listener - PepperProgressListener

removeProgressListener

public void removeProgressListener(PepperProgressListener listener)
Not implemented

Specified by:
removeProgressListener in interface WebBrowserView
Parameters:
listener - PepperProgressListener

addURIContentListener

public void addURIContentListener(PepperURIContentListener listener)
Not implemented

Specified by:
addURIContentListener in interface WebBrowserView
Parameters:
listener - PepperURIContentListener

removeURIContentListener

public void removeURIContentListener(PepperURIContentListener listener)
Not implemented

Specified by:
removeURIContentListener in interface WebBrowserView
Parameters:
listener - an URIContentListener value

addContextMenuListener

public void addContextMenuListener(PepperContextMenuListener listener)
Not implemented

Specified by:
addContextMenuListener in interface WebBrowserView
Parameters:
listener - a PepperContextMenuListener value

removeContextMenuListener

public void removeContextMenuListener(PepperContextMenuListener listener)
Not implemented

Specified by:
removeContextMenuListener in interface WebBrowserView
Parameters:
listener - a PepperContextMenuListener value

getElementManager

public FormElementManager getElementManager()
Not implemented

Specified by:
getElementManager in interface WebBrowserView
Returns:
a FormElementManager value

getJSObject

public netscape.javascript.JSObject getJSObject()
Not implemented

Specified by:
getJSObject in interface WebBrowserView
Returns:
a JSObject value

requestFocus

public void requestFocus()
Request focus on the main ui component

Specified by:
requestFocus in interface WebBrowserView

getNewlyCreated

public boolean getNewlyCreated()
Returns true when the view is newly created and no pages have been loaded in it yet. Will be false after first page has been loaded in this view

Specified by:
getNewlyCreated in interface WebBrowserView
Returns:
a boolean value

setNewlyCreated

public void setNewlyCreated(boolean state)
Set whether this view is considered newly created or not

Specified by:
setNewlyCreated in interface WebBrowserView
Parameters:
state - a boolean value


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.