public class LaunchBrowserListener
extends java.lang.Object
implements java.awt.event.MouseListener
| Constructor and Description |
|---|
LaunchBrowserListener(ILaunchBrowser launchBrowserObj)
Creates a listener that brings up a webpage when a mouse button has been
pressed.
|
LaunchBrowserListener(ILaunchBrowser launchBrowserObj,
java.awt.Component compObj)
Creates a listener that brings up a webpage when a mouse button has been
pressed.
|
LaunchBrowserListener(ILaunchBrowser launchBrowserObj,
java.awt.Component compObj,
java.lang.String linkStr)
Creates a listener that brings up a webpage when a mouse button has been
pressed.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Component |
getComponent()
Gets the component.
|
ILaunchBrowser |
getLaunchBrowser()
Gets the launch browser.
|
java.lang.String |
getLinkStr()
Gets the URL link string.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
void |
setComponent(java.awt.Component compObj)
Sets the component to listen to.
|
void |
setLinkStr(java.lang.String linkStr)
Sets the URL link string.
|
protected void |
setupCursor()
Set up the cursor.
|
public LaunchBrowserListener(ILaunchBrowser launchBrowserObj)
launchBrowserObj - 'ILaunchBrowser' object used to display URL.public LaunchBrowserListener(ILaunchBrowser launchBrowserObj, java.awt.Component compObj)
launchBrowserObj - 'ILaunchBrowser' object used to display URL.compObj - the component to listen to or null for none.public LaunchBrowserListener(ILaunchBrowser launchBrowserObj, java.awt.Component compObj, java.lang.String linkStr)
launchBrowserObj - 'ILaunchBrowser' object used to display URL.compObj - the component to listen to or null for none.linkStr - the URL of the webpage to be displayed or null for none.public java.awt.Component getComponent()
public ILaunchBrowser getLaunchBrowser()
public java.lang.String getLinkStr()
public void setComponent(java.awt.Component compObj)
compObj - the component to listen to or null for none.public void setLinkStr(java.lang.String linkStr)
linkStr - the URL of the webpage to be displayed when the
listener is pressed.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenere - the mouse event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - the mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - the mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenere - the mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenere - the mouse event.protected void setupCursor()