com.pepper.platform.program.actions
Class ImportFilesAction
java.lang.Object
javax.swing.AbstractAction
com.pepper.platform.program.actions.ProgramAbstractAction
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
Methods inherited from class com.pepper.platform.program.actions.ProgramAbstractAction |
getActionCommand, getConfig, getGSP, getIcon, getLongDescription, getMnemonicKey, getName, getPackageId, getProcess, getProgram, getShortDescription |
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 instancefilterTypes
- the list of filter types to usefilterDesc
- the filter type description in the file chooserimporter
- a Runnable
object to do the workimportType
- one of Env.PICTURES, Env.MUSIC or Env.VIDEOS
actionPerformed
public void actionPerformed(ActionEvent ae)
- performs the action
- Parameters:
ae
- the action event.
Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.