com.ibm.tspaces.examples.services
Class Demo.URLButton

java.lang.Object
  |
  +--com.ibm.tspaces.examples.services.Demo.URLButton
Enclosing class:
Demo

public class Demo.URLButton
extends java.lang.Object
implements Demo.ButtonInterface

This inner class represents a button that will retrieve the contents of a URL. This is really only useful for URLs that have an action associate with them (e.g., the sending of SOIFs that is associated with a URL in the QueryServer).

Author:
Joseph Gebis
See Also:
Demo

Constructor Summary
Demo.URLButton(java.net.URL url)
          Constructor for the URLbutton
Demo.URLButton(java.net.URL url, java.lang.String name)
          Constructor for the URLbutton.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          The method that deals with events -- in this case, it pretty much only gets the URL.
 boolean getStatus()
          Returns the status of the URLbutton
 java.lang.String retName()
          Returns the name of the button as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Demo.URLButton

public Demo.URLButton(java.net.URL url)
Constructor for the URLbutton
Parameters:
url - the URL to retrieve

Demo.URLButton

public Demo.URLButton(java.net.URL url,
                      java.lang.String name)
Constructor for the URLbutton.
Parameters:
url - the URL to retrieve
name - the name of the button
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
The method that deals with events -- in this case, it pretty much only gets the URL.
Parameters:
e - the ActionEvent

getStatus

public boolean getStatus()
Returns the status of the URLbutton
Specified by:
getStatus in interface Demo.ButtonInterface

retName

public java.lang.String retName()
Returns the name of the button as a string.
Specified by:
retName in interface Demo.ButtonInterface
Returns:
the name of the button