org.starhope.rahab.ui.contextmenu
Class RulesAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.starhope.rahab.ui.contextmenu.RulesAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
BanUserAction, KickUserAction, WarnUserAction

public abstract class RulesAction
extends AbstractAction

WRITEME: Document this type. twheys@gmail.com Dec 31, 2009

Author:
Tim Heys
See Also:
Serialized Form

Field Summary
protected  MessageCallBack actionCallBack
           
static HashMap<String,String> options
           
private static long serialVersionUID
          WRITEME: Document this field.
protected  String userOfInterest
           
 
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
RulesAction(String title, String userName, MessageCallBack callback)
           twheys@gmail.com Dec 31, 2009
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected abstract  void doCommand(String option)
           twheys@gmail.com Dec 31, 2009
protected abstract  String getMoniker()
           twheys@gmail.com Dec 31, 2009
 
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

options

public static final HashMap<String,String> options

serialVersionUID

private static final long serialVersionUID
WRITEME: Document this field. twheys@gmail.com Dec 31, 2009

See Also:
Constant Field Values

actionCallBack

protected final MessageCallBack actionCallBack

userOfInterest

protected final String userOfInterest
Constructor Detail

RulesAction

public RulesAction(String title,
                   String userName,
                   MessageCallBack callback)
 twheys@gmail.com Dec 31, 2009
 
A RulesAction WRITEME...

Parameters:
title - WRITEME
callback - WRITEME
userName - WRITEME
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

doCommand

protected abstract void doCommand(String option)
 twheys@gmail.com Dec 31, 2009
 
TO doCommand WRITEME...

Parameters:
option - WRITEME

getMoniker

protected abstract String getMoniker()
 twheys@gmail.com Dec 31, 2009
 
TO getMoniker WRITEME...

Returns:
WRITEME