|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.gui.LaunchBrowserListener
public class LaunchBrowserListener
Class LaunchBrowserListener defines a listener that brings up a webpage when a mouse button has been pressed.
Constructor Summary | |
---|---|
LaunchBrowserListener(LaunchBrowser launchBrowserObj)
Creates a listener that brings up a webpage when a mouse button has been pressed. |
|
LaunchBrowserListener(LaunchBrowser launchBrowserObj,
java.awt.Component compObj)
Creates a listener that brings up a webpage when a mouse button has been pressed. |
|
LaunchBrowserListener(LaunchBrowser launchBrowserObj,
java.awt.Component compObj,
java.lang.String linkStr)
Creates a listener that brings up a webpage when a mouse button has been pressed. |
Method Summary | |
---|---|
java.awt.Component |
getComponent()
Gets the component. |
LaunchBrowser |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LaunchBrowserListener(LaunchBrowser launchBrowserObj)
launchBrowserObj
- 'LaunchBrowser' object used to display URL.public LaunchBrowserListener(LaunchBrowser launchBrowserObj, java.awt.Component compObj)
launchBrowserObj
- 'LaunchBrowser' object used to display URL.compObj
- the component to listen to or null for none.public LaunchBrowserListener(LaunchBrowser launchBrowserObj, java.awt.Component compObj, java.lang.String linkStr)
launchBrowserObj
- 'LaunchBrowser' 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.Method Detail |
---|
public java.awt.Component getComponent()
public LaunchBrowser 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.MouseListener
e
- the mouse event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- the mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- the mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- the mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- the mouse event.protected void setupCursor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |