net.shredzone.ifish.actions
Class ReadDatabaseAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.shredzone.ifish.actions.IFishAction
          extended by net.shredzone.ifish.actions.AsyncIFishAction
              extended by net.shredzone.ifish.actions.ReadDatabaseAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class ReadDatabaseAction
extends AsyncIFishAction

Read a database from the current directory.

Version:
$Id: ReadDatabaseAction.java 291 2009-04-28 21:29:27Z shred $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.shredzone.ifish.actions.IFishAction
fish, prefs
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ReadDatabaseAction(IFishPane fish)
          Create a new ReadDatabaseAction.
 
Method Summary
protected  void action()
          The action implementation itself.
 void perform()
          Perform the action, but ask user if he wants to lose changes before.
 
Methods inherited from class net.shredzone.ifish.actions.AsyncIFishAction
performSync
 
Methods inherited from class net.shredzone.ifish.actions.IFishAction
actionPerformed
 
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

ReadDatabaseAction

public ReadDatabaseAction(IFishPane fish)
Create a new ReadDatabaseAction.

Parameters:
fish - Related IFishPane
Method Detail

perform

public void perform()
Perform the action, but ask user if he wants to lose changes before.

Overrides:
perform in class AsyncIFishAction

action

protected void action()
The action implementation itself. Do not call directly.

Note: do not open any dialogs in this method, since the user will be unable to press any buttons.

Specified by:
action in class IFishAction


Copyright © 2007-2011 shredzone.org. All Rights Reserved.