|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsynoptic.base.Plugin
jsynoptic.plugins.export.SynopticsExportPlugin
public class SynopticsExportPlugin
A plugin dedicated to export some synoptics to an archive (zip) file. It shall be possible to include all synoptics references into this archive file.
| Field Summary | |
|---|---|
protected static int |
BUFFER
|
protected static javax.swing.filechooser.FileFilter[] |
filters
|
protected static SynopticsExportPanel |
optionPanel
|
static MenuResourceBundle |
resources
|
protected static MenuResourceBundle.FileFilter |
zipFileFilter
|
| Fields inherited from class jsynoptic.base.Plugin |
|---|
EXPORT, IMPORT, OPEN, SAVE |
| Constructor Summary | |
|---|---|
SynopticsExportPlugin()
|
|
| Method Summary | |
|---|---|
java.lang.String |
about()
The information returned here will be displayed in the about box. |
protected void |
addFileResourceToArchive(java.util.zip.ZipOutputStream zos,
java.io.File f,
java.lang.String zipEntryName)
Add a file entry to the given archive output stream |
protected boolean |
archiveSynoptics(java.io.File[] files,
java.io.File zipFile)
Archive file into zip archive file |
protected void |
copyResource(java.io.File source,
java.io.File destination)
Copy the resource to another destination |
protected void |
deleteResource(java.io.File resource)
Delete a file. |
void |
fileReferenceCalled(java.io.File srcFile)
Called whenever a file reference has occurred |
javax.swing.filechooser.FileFilter[] |
getFileFilters(int action)
Give the plugin an occasion to add its file filters. |
javax.swing.JComponent |
getOptionPanelForFilter(javax.swing.filechooser.FileFilter filter)
Enables a plugin to show an option panel when the user selects a file using one of the plugin file filters. |
boolean |
processFile(java.io.File zipFile,
int action)
See getFileFilters for usage description. |
protected void |
restoreAbsoluteLinks(ShapesContainer sc,
java.io.File f)
|
protected boolean |
saveShapesContainer(ShapesContainer sc,
java.io.File f)
Save shape container |
protected void |
setRelativeLinks(ShapesContainer sc,
java.io.File f)
|
| Methods inherited from class jsynoptic.base.Plugin |
|---|
addPluginHashMap, createShape, createSource, exit, getDataSourceIcons, getHelp, getShapeName, getShapes, getShapesMap, getSources, getTemplates, load, newComponent, newDesktopComponent, newSourceComponent, newSourceComponent, processDataSourceCollection, processSynoptic, setMenu, setMenu, setToolBarItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static MenuResourceBundle resources
protected static final int BUFFER
protected static MenuResourceBundle.FileFilter zipFileFilter
protected static javax.swing.filechooser.FileFilter[] filters
protected static SynopticsExportPanel optionPanel
| Constructor Detail |
|---|
public SynopticsExportPlugin()
| Method Detail |
|---|
public javax.swing.JComponent getOptionPanelForFilter(javax.swing.filechooser.FileFilter filter)
Plugin
getOptionPanelForFilter in class Pluginpublic javax.swing.filechooser.FileFilter[] getFileFilters(int action)
Plugin
getFileFilters in class Pluginaction - What to do with the file. Currently OPEN or SAVE.
public boolean processFile(java.io.File zipFile,
int action)
Plugin
processFile in class PluginzipFile - The file to processaction - What to do with the file. Currently OPEN or SAVE.
protected boolean saveShapesContainer(ShapesContainer sc,
java.io.File f)
throws java.io.IOException
shapeContainer -
java.io.IOException
protected void restoreAbsoluteLinks(ShapesContainer sc,
java.io.File f)
throws java.io.IOException
java.io.IOException
protected void setRelativeLinks(ShapesContainer sc,
java.io.File f)
throws java.io.IOException
java.io.IOException
protected void addFileResourceToArchive(java.util.zip.ZipOutputStream zos,
java.io.File f,
java.lang.String zipEntryName)
throws java.io.IOException
zos - f -
java.io.IOExceptionpublic java.lang.String about()
Plugin
public void fileReferenceCalled(java.io.File srcFile)
FileReferenceListener
fileReferenceCalled in interface FileReferenceListenersrcFile - - The file that has been referenced
protected boolean archiveSynoptics(java.io.File[] files,
java.io.File zipFile)
source - zipFile -
protected void deleteResource(java.io.File resource)
resource - the file to be deleted
protected void copyResource(java.io.File source,
java.io.File destination)
source - The file to copydestination - The new file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||