ghm.follow.gui
Class FollowAppAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ghm.follow.gui.FollowAppAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
About, Bottom, Clear, ClearAll, ClearAllHighlights, ClearHighlights, Close, Configure, Debug, Delete, DeleteAll, Edit, Exit, Find, NextTab, Open, Pause, PreviousTab, Reset, Top

public abstract class FollowAppAction
extends javax.swing.AbstractAction

Base class for all actions in the Follow application.

Author:
Greg Merrill, Carl Hall
See Also:
Serialized Form

Nested Class Summary
static class FollowAppAction.ActionContext
           
 
Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FollowAppAction(FollowApp app, java.lang.String name, java.lang.String mnemonic, java.lang.String accelerator, FollowAppAction.ActionContext type)
           
FollowAppAction(FollowApp app, java.lang.String name, java.lang.String mnemonic, java.lang.String accelerator, javax.swing.ImageIcon icon, FollowAppAction.ActionContext type)
           
 
Method Summary
 FollowApp getApp()
           
 FollowAppAction.ActionContext getContext()
           
protected  javax.swing.Icon getIcon()
           
protected  void setIcon(javax.swing.Icon icon)
          Set the icon for this action.
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

FollowAppAction

public FollowAppAction(FollowApp app,
                       java.lang.String name,
                       java.lang.String mnemonic,
                       java.lang.String accelerator,
                       FollowAppAction.ActionContext type)

FollowAppAction

public FollowAppAction(FollowApp app,
                       java.lang.String name,
                       java.lang.String mnemonic,
                       java.lang.String accelerator,
                       javax.swing.ImageIcon icon,
                       FollowAppAction.ActionContext type)
Method Detail

getApp

public FollowApp getApp()

setIcon

protected void setIcon(javax.swing.Icon icon)
Set the icon for this action.

Parameters:
icon -

getIcon

protected javax.swing.Icon getIcon()

getContext

public FollowAppAction.ActionContext getContext()


Copyright © 2008. All Rights Reserved.