VASSAL.counters
Class KeyCommandSubMenu

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--VASSAL.counters.KeyCommand
              |
              +--VASSAL.counters.KeyCommandSubMenu
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class KeyCommandSubMenu
extends KeyCommand

Represents a sub-menu in a GamePiece's right-click drop-down menu

See Also:
Serialized Form

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
KeyCommandSubMenu(java.lang.String name, GamePiece target)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void addCommand(java.lang.String s)
           
 java.util.Iterator getCommands()
           
 void setCommands(java.lang.String[] s)
           
 
Methods inherited from class VASSAL.counters.KeyCommand
getKeyStroke, getName, getTarget, matches
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyCommandSubMenu

public KeyCommandSubMenu(java.lang.String name,
                         GamePiece target)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Overrides:
actionPerformed in class KeyCommand

addCommand

public void addCommand(java.lang.String s)

setCommands

public void setCommands(java.lang.String[] s)

getCommands

public java.util.Iterator getCommands()