Class GUIListener

java.lang.Object
  |
  +--GUIListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ComponentListener, java.util.EventListener, InOutMoveListener, javax.swing.event.ListSelectionListener, java.awt.event.WindowListener

public class GUIListener
extends java.lang.Object
implements java.awt.event.ActionListener, InOutMoveListener, java.awt.event.WindowListener, javax.swing.event.ListSelectionListener, java.awt.event.ComponentListener

This class listens for and responds to changes in the GUI.

Author:
John E. Darrow (c) 2000, 2001

Field Summary
protected static int BYCAPTION
           
protected static int BYCATEGORY
           
protected static int BYCONTRIBUTOR
           
protected static int BYDATE
           
protected static int BYJPGNAME
           
protected static int BYPHOONER
           
protected  java.util.Vector catLinksSubset
           
protected  java.util.Vector catLinksSubsetCaptions
           
protected  java.util.Vector hasPicsCatLinksSubset
           
protected  java.util.Vector hasPicsCatLinksSubsetCaptions
           
protected  java.util.Vector piclistVector
           
 
Constructor Summary
GUIListener(GUI gui)
          Creates a listener associated with the main GUI.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Implements ActionListener to respond to component events from class GUI.
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
          Implements ComponentListener.
 void componentShown(java.awt.event.ComponentEvent e)
           
 void inputChanged(java.util.EventObject e)
          Implements InputListener.
 void itemIn(java.util.EventObject e)
          Implements InOutListener.
 void itemOut(java.util.EventObject e)
          Implements InOutListener.
static void main(java.lang.String[] args)
           
protected  void setPicListEntries(int method)
          Gets a list of picLink filenames (returned in Vector) and maps them to PicLinks for use in valueChanged(ListSelectionEvent).
 void toHtml()
          Generates HTML for all items that have flagged as changed.
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          Implements ListSelectionListener.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
          Implements WindowListener to wrap things up before exiting (writing data to file and generating HTML for any pages that need it).
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYJPGNAME

protected static final int BYJPGNAME

BYDATE

protected static final int BYDATE

BYCAPTION

protected static final int BYCAPTION

BYPHOONER

protected static final int BYPHOONER

BYCONTRIBUTOR

protected static final int BYCONTRIBUTOR

BYCATEGORY

protected static final int BYCATEGORY

piclistVector

protected java.util.Vector piclistVector

hasPicsCatLinksSubset

protected java.util.Vector hasPicsCatLinksSubset

hasPicsCatLinksSubsetCaptions

protected java.util.Vector hasPicsCatLinksSubsetCaptions

catLinksSubset

protected java.util.Vector catLinksSubset

catLinksSubsetCaptions

protected java.util.Vector catLinksSubsetCaptions
Constructor Detail

GUIListener

public GUIListener(GUI gui)
Creates a listener associated with the main GUI.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Implements ActionListener to respond to component events from class GUI.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setPicListEntries

protected void setPicListEntries(int method)
Gets a list of picLink filenames (returned in Vector) and maps them to PicLinks for use in valueChanged(ListSelectionEvent).

toHtml

public void toHtml()
Generates HTML for all items that have flagged as changed.

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Implements WindowListener to wrap things up before exiting (writing data to file and generating HTML for any pages that need it).
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Implements ListSelectionListener.
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

itemIn

public void itemIn(java.util.EventObject e)
Implements InOutListener.
Specified by:
itemIn in interface InOutMoveListener

itemOut

public void itemOut(java.util.EventObject e)
Implements InOutListener.
Specified by:
itemOut in interface InOutMoveListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Implements ComponentListener.
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

inputChanged

public void inputChanged(java.util.EventObject e)
Implements InputListener.

main

public static void main(java.lang.String[] args)