|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.buddi.plugin.api.PreferenceAccess
org.homeunix.thecave.buddi.plugin.api.MenuPlugin
org.homeunix.thecave.buddi.plugin.api.BuddiImportPlugin
public abstract class BuddiImportPlugin
The abstract class to extend when creating an import plugin. The method importData() is the one which is called by Buddi when executing the plugin. In this method, you have access to the main document object, the frame from which the plugin was called, and the file to import from.
| Constructor Summary | |
|---|---|
BuddiImportPlugin()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns the description for the plugin. |
java.lang.String |
getProcessingMessage()
Returns the message which should show when processing the data. |
abstract void |
importData(MutableDocument model,
MossDocumentFrame callingFrame,
java.io.File file)
Imports data as required. |
boolean |
isCreateNewFile()
If set to true, we will force the creation of a new file here. |
boolean |
isFileChooserSave()
If we show a file chooser, should it be of type 'Save'? If false, it will be of type Open. |
void |
processData(MutableDocument model,
MossDocumentFrame callingFrame,
java.io.File file)
Processes data as required. |
| Methods inherited from class org.homeunix.thecave.buddi.plugin.api.MenuPlugin |
|---|
getFileExtensions, getMaximumVersion, getMinimumVersion, isPluginActive, isPromptForFile |
| Methods inherited from class org.homeunix.thecave.buddi.plugin.api.PreferenceAccess |
|---|
getListPreference, getPreference, getSecurePreference, putListPreference, putPreference, putSecurePreference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.homeunix.thecave.moss.plugin.MossPlugin |
|---|
getMaximumVersion, getMinimumVersion, getName, isPluginActive |
| Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.FileAccess |
|---|
getFileExtensions, isPromptForFile |
| Constructor Detail |
|---|
public BuddiImportPlugin()
| Method Detail |
|---|
public abstract void importData(MutableDocument model,
MossDocumentFrame callingFrame,
java.io.File file)
throws PluginException,
PluginMessage
PluginException
PluginMessage
public void processData(MutableDocument model,
MossDocumentFrame callingFrame,
java.io.File file)
throws PluginException,
PluginMessage
MenuPlugin
processData in class MenuPluginPluginException
PluginMessagepublic java.lang.String getDescription()
MenuPlugin
getDescription in interface FileAccessgetDescription in interface MossPlugingetDescription in class MenuPluginMossPlugin.getDescription()public java.lang.String getProcessingMessage()
FileAccess
getProcessingMessage in interface FileAccesspublic boolean isFileChooserSave()
MenuPlugin
isFileChooserSave in class MenuPluginpublic boolean isCreateNewFile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||