|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
com.pepper.platform.program.actions.ProgramAbstractAction
com.pepper.platform.program.actions.ExportAction
public class ExportAction
Action that will display PepperImportDialog box to choose directory on USB, SD, or Hard Drive device to export a program's files to.
PepperImportDialog
,
Serialized FormField 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 |
---|
public ExportAction(AbstractPepperProgram program, DataExporter exporter, List filterTypes, int exportType)
program
- an AbstractPepperProgram
valueexporter
- a DataExporterfilterTypes
- List of file extensions to filter onexportType
- The type of files being exported. One of Env.PICTURES, Env.MUSIC or Env.VIDEOSEnv
public ExportAction(AbstractPepperProgram program, List filterTypes, int exportType)
program
- an AbstractPepperProgram
valuefilterTypes
- List of file extensions to filter onexportType
- The type of files being exported. One of Env.PICTURES, Env.MUSIC or Env.VIDEOSEnv
Method Detail |
---|
public void actionPerformed(ActionEvent event)
Javascript:
To call this action using Javascript via the Javascript bridge, use the form:
bridge.action('Export', pageIdArray);
event
- This action requires event to be ActionEventWithParams,
where the param is a String[] of pageIds to exportpublic void doExport(List filesToExport)
filesToExport
- a List
of File objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |