|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.ejalbert.launching.macos.MacOs3_0BrowserLaunching
public class MacOs3_0BrowserLaunching
Field Summary |
---|
Fields inherited from interface edu.stanford.ejalbert.launching.IBrowserLaunching |
---|
BROWSER_DEFAULT, PROTOCOL_FILE, PROTOCOL_HTTP, PROTOCOL_MAILTO |
Constructor Summary | |
---|---|
MacOs3_0BrowserLaunching()
|
Method Summary | |
---|---|
java.util.List |
getBrowserList()
Returns a list of browsers to be used for browser targetting. |
private static int |
ICLaunchURL(int instance,
byte[] hint,
byte[] data,
int len,
int[] selectionStart,
int[] selectionEnd)
|
private static int |
ICStart(int[] instance,
int signature)
Methods required for Mac OS X. |
private static int |
ICStop(int[] instance)
|
void |
initialize()
Performs any initialization needed for the particular O/S. |
void |
openUrl(java.lang.String urlString)
Opens the passed url in the system's default browser. |
void |
openUrl(java.lang.String browser,
java.lang.String urlString)
Allows user to target a specific browser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacOs3_0BrowserLaunching()
Method Detail |
---|
public void initialize() throws BrowserLaunchingInitializingException
IBrowserLaunching
initialize
in interface IBrowserLaunching
BrowserLaunchingInitializingException
public void openUrl(java.lang.String urlString) throws UnsupportedOperatingSystemException, BrowserLaunchingExecutionException, BrowserLaunchingInitializingException
IBrowserLaunching
openUrl
in interface IBrowserLaunching
urlString
- String
UnsupportedOperatingSystemException
BrowserLaunchingExecutionException
BrowserLaunchingInitializingException
public void openUrl(java.lang.String browser, java.lang.String urlString) throws UnsupportedOperatingSystemException, BrowserLaunchingExecutionException, BrowserLaunchingInitializingException
IBrowserLaunching
getBrowserList
method.
If the call to the requested browser fails, the code will fail over to the default browser.
openUrl
in interface IBrowserLaunching
browser
- StringurlString
- String
UnsupportedOperatingSystemException
BrowserLaunchingExecutionException
BrowserLaunchingInitializingException
public java.util.List getBrowserList()
getBrowserList
in interface IBrowserLaunching
private static int ICStart(int[] instance, int signature)
private static int ICStop(int[] instance)
private static int ICLaunchURL(int instance, byte[] hint, byte[] data, int len, int[] selectionStart, int[] selectionEnd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |