com.isti.util.gui
Class LaunchBrowserListener

java.lang.Object
  extended by com.isti.util.gui.LaunchBrowserListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener

public class LaunchBrowserListener
extends java.lang.Object
implements java.awt.event.MouseListener

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

LaunchBrowserListener

public LaunchBrowserListener(LaunchBrowser launchBrowserObj)
Creates a listener that brings up a webpage when a mouse button has been pressed.

Parameters:
launchBrowserObj - 'LaunchBrowser' object used to display URL.

LaunchBrowserListener

public LaunchBrowserListener(LaunchBrowser launchBrowserObj,
                             java.awt.Component compObj)
Creates a listener that brings up a webpage when a mouse button has been pressed.

Parameters:
launchBrowserObj - 'LaunchBrowser' object used to display URL.
compObj - the component to listen to or null for none.

LaunchBrowserListener

public 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.

Parameters:
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

getComponent

public java.awt.Component getComponent()
Gets the component.

Returns:
the component.

getLaunchBrowser

public LaunchBrowser getLaunchBrowser()
Gets the launch browser.

Returns:
the launch browser.

getLinkStr

public java.lang.String getLinkStr()
Gets the URL link string.

Returns:
the URL link string.

setComponent

public void setComponent(java.awt.Component compObj)
Sets the component to listen to.

Parameters:
compObj - the component to listen to or null for none.

setLinkStr

public void setLinkStr(java.lang.String linkStr)
Sets the URL link string.

Parameters:
linkStr - the URL of the webpage to be displayed when the listener is pressed.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - the mouse event.

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - the mouse event.

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - the mouse event.

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - the mouse event.

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - the mouse event.

setupCursor

protected void setupCursor()
Set up the cursor.