edu.wisc.ssec.mcidasv.jython
Class DefaultMenuWrangler.MenuAction

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.jython.DefaultMenuWrangler.MenuAction
Direct Known Subclasses:
DefaultMenuWrangler.ClearBufferAction, DefaultMenuWrangler.CopyTextAction, DefaultMenuWrangler.CutTextAction, DefaultMenuWrangler.PasteTextAction, DefaultMenuWrangler.SelectBufferAction
Enclosing class:
DefaultMenuWrangler

private abstract static class DefaultMenuWrangler.MenuAction
extends Object

Generalized representation of a "context popup menu". Handles the more trivial things that the menu items need to handle.


Field Summary
protected  Console console
           
protected  JMenuItem item
           
protected  String label
           
 
Constructor Summary
protected DefaultMenuWrangler.MenuAction(Console console, String label)
           
 
Method Summary
 JMenuItem buildMenuItem()
           
abstract  void doAction()
           
 ActionListener getActionListener()
           
 JMenuItem getMenuItem()
           
abstract  boolean validConsoleState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

console

protected final Console console

label

protected final String label

item

protected final JMenuItem item
Constructor Detail

DefaultMenuWrangler.MenuAction

protected DefaultMenuWrangler.MenuAction(Console console,
                                         String label)
Method Detail

getActionListener

public ActionListener getActionListener()

getMenuItem

public JMenuItem getMenuItem()

buildMenuItem

public JMenuItem buildMenuItem()

validConsoleState

public abstract boolean validConsoleState()

doAction

public abstract void doAction()