com.pepper.platform.program.actions
Class ExportAction

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

public class ExportAction
extends ProgramAbstractAction

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

See Also:
PepperImportDialog, Serialized Form

Field Summary
 
Fields inherited from class com.pepper.platform.program.actions.ProgramAbstractAction
IMAGE_DIR, LARGE_ICON
 
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
ExportAction(AbstractPepperProgram program, DataExporter exporter, List filterTypes, int exportType)
          Export files from a package
ExportAction(AbstractPepperProgram program, List filterTypes, int exportType)
          Export files from a package
 
Method Summary
 void actionPerformed(ActionEvent event)
          Invoked to display export dialog to allow file exporting.
 void doExport(List filesToExport)
          Export the passed in list of files
 
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

ExportAction

public ExportAction(AbstractPepperProgram program,
                    DataExporter exporter,
                    List filterTypes,
                    int exportType)
Export files from a package

Parameters:
program - an AbstractPepperProgram value
exporter - a DataExporter
filterTypes - List of file extensions to filter on
exportType - The type of files being exported. One of Env.PICTURES, Env.MUSIC or Env.VIDEOS
Since:
3.2
See Also:
Env

ExportAction

public ExportAction(AbstractPepperProgram program,
                    List filterTypes,
                    int exportType)
Export files from a package

Parameters:
program - an AbstractPepperProgram value
filterTypes - List of file extensions to filter on
exportType - The type of files being exported. One of Env.PICTURES, Env.MUSIC or Env.VIDEOS
See Also:
Env
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Invoked to display export dialog to allow file exporting.

Javascript:

To call this action using Javascript via the Javascript bridge, use the form:

NOTE: this is not a Common Action and must be registered by any application that wants to use it, via AbstractPepperProgram.registerAction()

Parameters:
event - This action requires event to be ActionEventWithParams, where the param is a String[] of pageIds to export

doExport

public void doExport(List filesToExport)
Export the passed in list of files

Parameters:
filesToExport - a List of File objects


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