com.mtp.pounder.controller
Class OpenAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.mtp.pounder.controller.OpenAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class OpenAction
extends AbstractAction

Action for opening a script.

Author:
Matthew Pekar
See Also:
Serialized Form

Field Summary
protected  PounderController controller
           
protected  PounderModel model
           
 
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
OpenAction(PounderController c, PounderModel pm)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  boolean eraseScriptOK()
          Return true if it's OK to erase the script.
protected  File showOpenDialog()
          Show open dialog and return resulting file.
 
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

controller

protected PounderController controller

model

protected PounderModel model
Constructor Detail

OpenAction

public OpenAction(PounderController c,
                  PounderModel pm)
Method Detail

eraseScriptOK

protected boolean eraseScriptOK()
Return true if it's OK to erase the script.


actionPerformed

public void actionPerformed(ActionEvent e)

showOpenDialog

protected File showOpenDialog()
Show open dialog and return resulting file. null if none selected.



Copyright © 2002 Matthew Pekar. All Rights Reserved.