public class WebBrowser
extends java.lang.Object
Constructor and Description |
---|
WebBrowser()
Create a webbrowser.
|
Modifier and Type | Method and Description |
---|---|
void |
exitValue()
Calls the Process function of the same name to determine if the
process has finished, and what its exit value was.
|
protected java.lang.String |
generateLaunchCmd(java.lang.String url)
Get the launch cmd.
|
void |
launch(java.lang.String urlString)
Creates a new web browser process, or points the current one to
the url argument.
|
static void |
main(java.lang.String[] argv) |
protected void |
sendTo(java.lang.String url)
Points a web browser that's already running where to go next.
|
void |
setInfoDelegator(InfoDisplayListener info) |
void |
writeAndLaunch(java.lang.String text)
Writes out temporary text file, and creates a new web browser
process or points the current one at the file.
|
protected java.lang.String |
writeFileAndGenerateURL(java.lang.String text)
Write temporary file to temporary directory, and generate URL.
|
protected java.lang.String generateLaunchCmd(java.lang.String url)
url
- URL to showprotected java.lang.String writeFileAndGenerateURL(java.lang.String text)
text
- text Stringprotected void sendTo(java.lang.String url)
url
- URL to gopublic void setInfoDelegator(InfoDisplayListener info)
public void launch(java.lang.String urlString)
urlString
- URLpublic void writeAndLaunch(java.lang.String text)
text
- Stringpublic void exitValue()
If it is finished, then it removes the temporary files and nullifies itself.
public static void main(java.lang.String[] argv)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details