jsky.html
Class HTMLViewerHistoryItem

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jsky.html.HTMLViewerHistoryItem
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class HTMLViewerHistoryItem
extends AbstractAction
implements Serializable

Local class used to store information about previously viewed URLs.

Version:
$Revision: 1.2 $
Author:
Allan Brighton
See Also:
Serialized Form

Field Summary
protected  String title
          The title of the page
protected  String urlStr
          The URL of the page
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
HTMLViewerHistoryItem(String title, URL url)
          Create a history item with the given title (for display) and URL.
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Display the catalog
 String getTitle()
          Return the catalogs's name.
 String getURLStr()
          Return the URL of the catalog, table or FITS file, if known, otherwise null.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

urlStr

protected String urlStr
The URL of the page


title

protected String title
The title of the page

Constructor Detail

HTMLViewerHistoryItem

public HTMLViewerHistoryItem(String title,
                             URL url)
Create a history item with the given title (for display) and URL.

Parameters:
title - The title of the HTML page
url - The URL of the HTML page
Method Detail

actionPerformed

public void actionPerformed(ActionEvent evt)
Display the catalog

Specified by:
actionPerformed in interface ActionListener

getURLStr

public String getURLStr()
Return the URL of the catalog, table or FITS file, if known, otherwise null.


getTitle

public String getTitle()
Return the catalogs's name.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.