|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.ejalbert.launching.macos.MacOsBrowserLaunching
Field Summary | |
protected static String |
FINDER_CREATOR
The creator code of the Finder on a Macintosh, which is needed to send AppleEvents to the application. |
Fields inherited from interface edu.stanford.ejalbert.launching.IBrowserLaunching |
BROWSER_DEFAULT, BROWSER_SYSTEM_PROPERTY, PROP_KEY_BROWSER_PREFIX, PROP_KEY_DELIMITER, PROTOCOL_FILE, PROTOCOL_HTTP, PROTOCOL_MAILTO |
Constructor Summary | |
MacOsBrowserLaunching()
|
Method Summary | |
boolean |
getNewWindowPolicy()
Returns the policy used for opening a url in a browser. |
void |
openUrl(List browsers,
String urlString)
Falls through to non-targetted openUrl method. |
void |
openUrl(String browser,
String urlString)
Falls through to non-targetted openUrl method. |
void |
setNewWindowPolicy(boolean forceNewWindow)
Sets the policy used for opening a url in a browser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.ejalbert.launching.IBrowserLaunching |
getBrowserList, initialize, openUrl |
Field Detail |
protected static final String FINDER_CREATOR
Constructor Detail |
public MacOsBrowserLaunching()
Method Detail |
public void openUrl(String browser, String urlString) throws UnsupportedOperatingSystemException, BrowserLaunchingExecutionException, BrowserLaunchingInitializingException
openUrl
in interface IBrowserLaunching
browser
- StringurlString
- String
UnsupportedOperatingSystemException
BrowserLaunchingExecutionException
BrowserLaunchingInitializingException
public void openUrl(List browsers, String urlString) throws UnsupportedOperatingSystemException, BrowserLaunchingExecutionException, BrowserLaunchingInitializingException
openUrl
in interface IBrowserLaunching
browsers
- ListurlString
- String
UnsupportedOperatingSystemException
BrowserLaunchingExecutionException
BrowserLaunchingInitializingException
public boolean getNewWindowPolicy()
If the policy is true, an attempt will be made to force the url to be opened in a new instance (window) of the browser.
If the policy is false, the url may open in a new window or a new tab.
This is not supported on the Mac OS.
getNewWindowPolicy
in interface IBrowserLaunching
public void setNewWindowPolicy(boolean forceNewWindow)
setNewWindowPolicy
in interface IBrowserLaunching
forceNewWindow
- boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |