com.sptci.echo2
Class UrlListener

java.lang.Object
  extended by com.sptci.echo2.UrlListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener
Direct Known Subclasses:
SPTListener

public class UrlListener
extends Object
implements ActionListener

An action listener to open url in a new browser window.

Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: UrlListener.java 2808 2006-12-28 04:16:13Z rakesh $
Author:
Rakesh Vidyadharan 2006-12-27
See Also:
Serialized Form

Field Summary
private  String url
          The URL to use to open the browser window.
 
Constructor Summary
UrlListener(String url)
          Create a new instance of the listener for the specified url.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The action listener implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

private final String url
The URL to use to open the browser window.

Constructor Detail

UrlListener

public UrlListener(String url)
Create a new instance of the listener for the specified url.

Parameters:
url - The url to use.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
The action listener implementation. Open a new browser window and load url in it.

Specified by:
actionPerformed in interface ActionListener