|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.guiutils.mozilla.MozillaContainer
public class MozillaContainer
Manager of MozillaBrowserView objects for an application
Field Summary |
---|
Fields inherited from interface com.pepper.guiutils.browser.WebBrowserContainer |
---|
TYPE_MOZILLA |
Constructor Summary | |
---|---|
MozillaContainer(AbstractPepperProgram theProg)
Constructor |
Method Summary | |
---|---|
void |
clearInternalCaches()
Clear any internal file caches, to allow files to be replaced/reloaded. |
WebBrowserView |
createView(Section section)
Create a view for the specified Section. |
WebBrowserView |
createView(Section section,
int windowOptions)
Create a view for the specified Section using the specified window options |
WebBrowserView |
createView(Section section,
int windowOptions,
String uri)
Create a view for the specified Section using the specified window options and load initial uri |
void |
destroy()
Called when the package is quit |
WebBrowserView |
getActiveView()
Returns the browser view that currently visible and active. |
List |
getAllViews()
Get a list of all open browser views |
int |
getType()
Get the type of Container |
WebBrowserView |
getView(String viewId)
Returns the browser view with the specified id |
void |
init()
Initialize the Mozilla engine |
boolean |
isDestroyed()
Returns true if container views have been destroyed |
boolean |
isInitialized()
Returns whether or not the container is initialized |
void |
removeView(String viewId)
Remove the browser view with the specified id |
void |
setActiveView(WebBrowserView view)
Make the passed in view visible |
void |
shutdown()
Shutdown the browser and free all of it's resources |
void |
viewChange(String selectedViewId)
This method will handle selection changes between views |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MozillaContainer(AbstractPepperProgram theProg)
theProg
- Program that this container is forMethod Detail |
---|
public void init()
init
in interface WebBrowserContainer
public WebBrowserView getView(String viewId)
getView
in interface WebBrowserContainer
viewId
- a String
value
WebBrowserView
valuepublic WebBrowserView getActiveView()
getActiveView
in interface WebBrowserContainer
WebBrowserView
valuepublic void setActiveView(WebBrowserView view)
setActiveView
in interface WebBrowserContainer
view
- a WebBrowserView
valuepublic List getAllViews()
getAllViews
in interface WebBrowserContainer
List
of WebBrowserView objectspublic void removeView(String viewId)
removeView
in interface WebBrowserContainer
viewId
- a String
valuepublic WebBrowserView createView(Section section)
createView
in interface WebBrowserContainer
section
- a Section
value
WebBrowserView
valuepublic WebBrowserView createView(Section section, int windowOptions)
createView
in interface WebBrowserContainer
section
- a Section
valuewindowOptions
- one of WebBrowserView.WINDOW_NEW,
WebBrowserView.WINDOW_NEW_TAB
WebBrowserView
valuepublic WebBrowserView createView(Section section, int windowOptions, String uri)
createView
in interface WebBrowserContainer
section
- a Section
valuewindowOptions
- one of WebBrowserView.WINDOW_NEW,
WebBrowserView.WINDOW_NEW_TABuri
- initial uri to load in view
WebBrowserView
valuepublic void viewChange(String selectedViewId)
viewChange
in interface WebBrowserContainer
selectedViewId
- The id of the view that has been selectedpublic int getType()
getType
in interface WebBrowserContainer
int
valuepublic void shutdown()
WebBrowserContainer
shutdown
in interface WebBrowserContainer
WebBrowserContainer
public void destroy()
WebBrowserContainer
destroy
in interface WebBrowserContainer
public boolean isDestroyed()
WebBrowserContainer
isDestroyed
in interface WebBrowserContainer
boolean
valueWebBrowserContainer
public boolean isInitialized()
WebBrowserContainer
isInitialized
in interface WebBrowserContainer
boolean
valuepublic void clearInternalCaches()
clearInternalCaches
in interface WebBrowserContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |