BrowserSvc.I Interface
- public static interface BrowserSvc.I
-
Enclosing class
-
BrowserSvc
createPanel(JFrame) Method
public IBrowserPanel
createPanel(JFrame
win)
creates an IBrowerPanel that hosts a web browser. The IBrowserPanel will
need to be created with the JFrame that will host it, and will create a JPanel.
This method currently only works on windows.
Parameters
-
win
- the frame this panel will be contained by.
Returns
- an IBrowserPanel interface for the browser instance that has been created.
invokeBrowser(String) Method
public Process
invokeBrowser(String
fileName)
Invokes the browser on a given file. A process object for the
spawned browser is returned.
Parameters
-
fileName
- string name of a file, relative to the workshop directory
Returns
- Process object representing the browser process
invokeBrowser(URL, boolean) Method
public Process
invokeBrowser(URL
url,
boolean showFailDialog)
Invokes the browser on a given URL. A process object for the
spawned browser is returned.
Parameters
-
url
- URL to open in the browser
-
showFailDialog
- flag indicating whether or not to display a failure dialog if the browser cannot
be created, or the file cannot be found
Returns
- Process object representing the browser process
invokeSameBrowser(URL) Method
public Process
invokeSameBrowser(URL
url)
Invokes the browser on a given URL, attempting to reuse an already
running browser instance. A process object for the
spawned browser is returned.
Parameters
-
url
- URL to open in the browser
Returns
- Process object representing the browser process
isBrowserIE() Method
public boolean isBrowserIE()
Returns
- true if the browser that will be invoked is internet explorer, false otherwise