ccs.http
Class BrowserSetter
java.lang.Object
ccs.http.BrowserSetter
public class BrowserSetter
- extends java.lang.Object
Provides a GUI interface to allow the user to set the browser to use.
Executable class: either invoke main() with no arguments, or use the
run method. main() will finish when the task has been done.
Method Summary |
static void |
main(java.lang.String[] args)
|
boolean |
run(java.awt.Frame parent,
java.util.logging.Logger log,
java.lang.String def)
Run the BrowserSetter. |
static void |
writeBrowserConf(java.lang.String cmd,
java.util.logging.Logger log)
Write the browser command to its configuration file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserSetter
public BrowserSetter()
run
public boolean run(java.awt.Frame parent,
java.util.logging.Logger log,
java.lang.String def)
throws java.io.IOException
- Run the BrowserSetter.
- Parameters:
parent
- An optional frame for the dialog to depend from.log
- The Logger for progress messages to be sent to.def
- A default browser command obtained from the system, or null.
- Throws:
java.io.IOException
writeBrowserConf
public static void writeBrowserConf(java.lang.String cmd,
java.util.logging.Logger log)
throws java.io.IOException
- Write the browser command to its configuration file. Undocumented.
- Parameters:
cmd
- The browser command.log
- The Logger for progress messages to be sent to.
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)