puzzled.actions
Class OpenAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--puzzled.actions.OpenAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class OpenAction
extends javax.swing.AbstractAction

The OpenAction class is composed of a string and an icon, and is added to the menu bar and the toolbar. It has the action performed method that is called when the menu item or button is clicked.

Version:
1.54
Author:
Frédéric Demers
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
OpenAction(ProblemSolver parent_arg)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 boolean open(java.io.File theFile)
           
 void saveDirty()
           
 
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

OpenAction

public OpenAction(ProblemSolver parent_arg)
Method Detail

saveDirty

public void saveDirty()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Overrides:
actionPerformed in class javax.swing.AbstractAction

open

public boolean open(java.io.File theFile)