haifa.shopsim.UI
Class OpenAction

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

class OpenAction
extends javax.swing.AbstractAction
implements UIStringConstants

Handles the Open Action of the File menu. This action is designed to open new shop data files. A distiction is made whether this is an application or an applet. In an application, files are loaded from the file system, whereas in an applet, a URL of a file is to be specified.

Version:
1.1
See Also:
Serialized Form

Inner classes inherited from class javax.swing.AbstractAction
javax.swing.AbstractAction.ArrayTable
 
Field Summary
private  javax.swing.JFileChooser fileChooser
           
private  java.io.File homeDir
           
private  MainGUI mainGUI
           
 
Fields inherited from class javax.swing.AbstractAction
arrayTable, changeSupport, enabled
 
Fields inherited from interface haifa.shopsim.UI.UIStringConstants
ABOUT_TEXT, ALG_SELECTED_STRING, ALGORITHMS_TEXT, ANIM_SUPPRESSED_STRING, FRAME_TITLE, JBS_FILES_TEXT, JOB_SHOP_LOADED_STRING, NO_SHOP_DATA_STRING, SIMULATION_ABORTED_STRING, SIMULATION_FINISHED_STRING, USING_SIM_TEXT, VACANT_ALG_AREA_STRING, VACANT_ANIM_AREA_STRING, VACANT_GANTT_AREA_STRING, VACANT_SHOP_STATE_AREA_STRING, WELCOME_STRING
 
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(MainGUI mainGUI_)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, readObject, removePropertyChangeListener, setEnabled, writeObject
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

homeDir

private java.io.File homeDir

fileChooser

private javax.swing.JFileChooser fileChooser

mainGUI

private MainGUI mainGUI
Constructor Detail

OpenAction

public OpenAction(MainGUI mainGUI_)
Method Detail

actionPerformed

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