com.pepper.platform.program.actions
Class ImportFilesAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.pepper.platform.program.actions.ProgramAbstractAction
          extended by com.pepper.platform.program.actions.ImportFilesAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class ImportFilesAction
extends ProgramAbstractAction

Action that will display PepperImportDialog box to choose directory on USB, SD, or Hard Drive device to import a program's files from.

See Also:
PepperImportDialog, Serialized Form

Field Summary
 
Fields inherited from class com.pepper.platform.program.actions.ProgramAbstractAction
IMAGE_DIR, LARGE_ICON, log
 
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
ImportFilesAction(AbstractPepperProgram program, List filterTypes, String filterDesc, FileImporter importer, JComponent previewer, int importType)
          Import files into the package.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          performs the action
 
Methods inherited from class com.pepper.platform.program.actions.ProgramAbstractAction
getActionCommand, getConfig, getGSP, getIcon, getLongDescription, getMnemonicKey, getName, getPackageId, getProcess, getProgram, getShortDescription
 
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

ImportFilesAction

public ImportFilesAction(AbstractPepperProgram program,
                         List filterTypes,
                         String filterDesc,
                         FileImporter importer,
                         JComponent previewer,
                         int importType)
Import files into the package.

Parameters:
program - the requesting program instance
filterTypes - the list of filter types to use
filterDesc - the filter type description in the file chooser
importer - a Runnable object to do the work
importType - one of Env.PICTURES, Env.MUSIC or Env.VIDEOS
Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)
performs the action

Parameters:
ae - the action event.


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.