edu.stanford.ejalbert.launching.windows
Class WindowsBrowser

java.lang.Object
  extended byedu.stanford.ejalbert.launching.windows.WindowsBrowser
All Implemented Interfaces:
BrowserDescription

public class WindowsBrowser
extends Object
implements BrowserDescription

Encapsulates information on a Windows browser.

Version:
1.0
Author:
Jeff Chapman

Constructor Summary
(package private) WindowsBrowser(String delimChar, String configInfo)
          Splits the config string using the delimiter character and sets the display name; executable; new window argument; and Program Files sub directory name.
 
Method Summary
 String getBrowserApplicationName()
          Returns the name of the executable for the browser.
 String getBrowserDisplayName()
          Returns the display name for the browser.
 String getForceNewWindowArgs()
          Returns arguments used for forcing a new window.
(package private)  String getPathToExe()
           
(package private)  String getSubDirName()
           
(package private)  void setPathToExe(String path)
           
 String toString()
          Returns displayname and executable name for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowsBrowser

WindowsBrowser(String delimChar,
               String configInfo)
Splits the config string using the delimiter character and sets the display name; executable; new window argument; and Program Files sub directory name.

Sample config string (with ; as the delim char): displayName;exeName

Parameters:
delimChar - String
configInfo - String
Method Detail

toString

public String toString()
Returns displayname and executable name for debugging.

Returns:
String

setPathToExe

void setPathToExe(String path)

getPathToExe

String getPathToExe()

getSubDirName

String getSubDirName()

getBrowserDisplayName

public String getBrowserDisplayName()
Returns the display name for the browser.

Specified by:
getBrowserDisplayName in interface BrowserDescription
Returns:
String

getBrowserApplicationName

public String getBrowserApplicationName()
Returns the name of the executable for the browser.

Specified by:
getBrowserApplicationName in interface BrowserDescription
Returns:
String

getForceNewWindowArgs

public String getForceNewWindowArgs()
Returns arguments used for forcing a new window. May be an empty String.

Returns:
String