org.xnap.gui.action
Class OpenFileAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xnap.gui.action.OpenFileAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class OpenFileAction
extends javax.swing.AbstractAction
implements java.beans.PropertyChangeListener

Opens the files provided by FileProvider using the LauncherManager for actually opening them. OpenFileAction can be disabled/enabled.

See Also:
Serialized Form

Field Summary
 
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
OpenFileAction(FileProvider fp)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Collects the files and opens them using the LauncherManager.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 
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
 

Constructor Detail

OpenFileAction

public OpenFileAction(FileProvider fp)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Collects the files and opens them using the LauncherManager.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener


Copyright © 2001-2005 XNap Team. All Rights Reserved.