se.entitymanager.presentation
Class OpenAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by se.entitymanager.presentation.OpenAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class OpenAction
extends javax.swing.AbstractAction

Action handling for opening text file

See Also:
Serialized Form

Field Summary
private  java.lang.String fileContents
          Content of file to open.
private  java.lang.String fileName
          Name of file to open.
private  javax.swing.Icon icon
          The icon to use for the open dialog.
private  SwingPresentationFacade presentationFacade
          The presentation facade to use.
 
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(java.lang.String text, javax.swing.ImageIcon icon, java.lang.String desc, java.lang.Integer mnemonic, SwingPresentationFacade presentationFacade)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
private  void createOpenTextDialog()
           
 
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

presentationFacade

private SwingPresentationFacade presentationFacade
The presentation facade to use.


icon

private javax.swing.Icon icon
The icon to use for the open dialog.


fileName

private java.lang.String fileName
Name of file to open.


fileContents

private java.lang.String fileContents
Content of file to open.

Constructor Detail

OpenAction

public OpenAction(java.lang.String text,
                  javax.swing.ImageIcon icon,
                  java.lang.String desc,
                  java.lang.Integer mnemonic,
                  SwingPresentationFacade presentationFacade)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

createOpenTextDialog

private void createOpenTextDialog()