org.datamanager.simpleton
Class BrowserLauncherSimpleton
java.lang.Object
|
+--org.datamanager.kernel.Simpleton
|
+--org.datamanager.simpleton.BrowserLauncherSimpleton
- All Implemented Interfaces:
- EventHandler
- public class BrowserLauncherSimpleton
- extends Simpleton
- implements EventHandler
This class will handle the LaunchBrowserWithURLEvent by
using JNLP to launch the default browser with the URL
contained in the Event.
- Author:
- Chris Dent
Method Summary |
void |
handle(DataManagerEvent dataManagerEvent)
Handles the LaunchBrowserWithURLEvent, calling launchBrowser(URL)
with the URL found in the event. |
void |
process()
Subscribes to the pool to hear the LaunchBrowserWithURLEvent. |
BrowserLauncherSimpleton
public BrowserLauncherSimpleton()
process
public void process()
- Subscribes to the pool to hear the LaunchBrowserWithURLEvent.
- Specified by:
process
in class Simpleton
handle
public void handle(DataManagerEvent dataManagerEvent)
- Handles the LaunchBrowserWithURLEvent, calling launchBrowser(URL)
with the URL found in the event.
- Specified by:
handle
in interface EventHandler
- Parameters:
dataManagerEvent
- the LaunchBrowserWithURLEvent
See the Helium Website