public abstract class MacOsBrowserLaunching extends java.lang.Object implements IBrowserLaunching
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FINDER_CREATOR
The creator code of the Finder on a Macintosh, which is needed to send AppleEvents to the
application.
|
BROWSER_DEFAULT, BROWSER_SYSTEM_PROPERTY, PROP_KEY_BROWSER_PREFIX, PROP_KEY_DELIMITER, PROTOCOL_FILE, PROTOCOL_HTTP, PROTOCOL_MAILTO, WINDOWS_BROWSER_DISC_POLICY_DISK, WINDOWS_BROWSER_DISC_POLICY_PROPERTY, WINDOWS_BROWSER_DISC_POLICY_REGISTRY| Constructor and Description |
|---|
MacOsBrowserLaunching() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getNewWindowPolicy()
Returns the policy used for opening a url in a browser.
|
void |
openUrl(java.util.List browsers,
java.lang.String urlString)
Falls through to non-targetted openUrl method.
|
void |
openUrl(java.lang.String browser,
java.lang.String urlString)
Falls through to non-targetted openUrl method.
|
void |
setNewWindowPolicy(boolean forceNewWindow)
Sets the policy used for opening a url in a browser.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBrowserList, initialize, openUrlprotected static final java.lang.String FINDER_CREATOR
public void openUrl(java.lang.String browser,
java.lang.String urlString)
throws UnsupportedOperatingSystemException,
BrowserLaunchingExecutionException,
BrowserLaunchingInitializingException
openUrl in interface IBrowserLaunchingbrowser - StringurlString - StringUnsupportedOperatingSystemExceptionBrowserLaunchingExecutionExceptionBrowserLaunchingInitializingExceptionpublic void openUrl(java.util.List browsers,
java.lang.String urlString)
throws UnsupportedOperatingSystemException,
BrowserLaunchingExecutionException,
BrowserLaunchingInitializingException
openUrl in interface IBrowserLaunchingbrowsers - ListurlString - StringUnsupportedOperatingSystemExceptionBrowserLaunchingExecutionExceptionBrowserLaunchingInitializingExceptionpublic 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 IBrowserLaunchingpublic void setNewWindowPolicy(boolean forceNewWindow)
setNewWindowPolicy in interface IBrowserLaunchingforceNewWindow - boolean