edu.stanford.ejalbert.launching.windows
Class WindowsBrowser

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

public class WindowsBrowser
extends java.lang.Object
implements BrowserDescription

Encapsulates information on a Windows browser.

Version:
1.0
Author:
Jeff Chapman

Constructor Summary
WindowsBrowser(java.lang.String delimChar, java.lang.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
 java.lang.String getBrowserApplicationName()
          Returns the name of the executable for the browser.
 java.lang.String getBrowserDisplayName()
          Returns the display name for the browser.
 java.lang.String getForceNewWindowArgs()
          Returns arguments used for forcing a new window.
(package private)  java.lang.String getPathToExe()
           
(package private)  java.lang.String getSubDirName()
           
(package private)  void setPathToExe(java.lang.String path)
           
 java.lang.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(java.lang.String delimChar,
               java.lang.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 java.lang.String toString()
Returns displayname and executable name for debugging.

Overrides:
toString in class java.lang.Object
Returns:
String

setPathToExe

void setPathToExe(java.lang.String path)

getPathToExe

java.lang.String getPathToExe()

getSubDirName

java.lang.String getSubDirName()

getBrowserDisplayName

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

Specified by:
getBrowserDisplayName in interface BrowserDescription
Returns:
String

getBrowserApplicationName

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

Specified by:
getBrowserApplicationName in interface BrowserDescription
Returns:
String

getForceNewWindowArgs

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

Returns:
String