|
|||||||||
| 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
public abstract class MenuPlugin
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 | |
|---|---|
MenuPlugin()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getDescription()
Returns the description for the plugin. |
java.lang.String[] |
getFileExtensions()
Override to specify that Buddi should only include certain file types in the file chooser. |
Version |
getMaximumVersion()
Returns the maximum program version needed to run this plugin. |
Version |
getMinimumVersion()
Returns the minimum program version needed to run this plugin. |
abstract boolean |
isFileChooserSave()
If we show a file chooser, should it be of type 'Save'? If false, it will be of type Open. |
boolean |
isPluginActive()
Should this plugin be activated? Most people can just put true here; if there is some logic which determines if this is to be shown or not, though, you can add it here. |
boolean |
isPromptForFile()
Should Buddi prompt for a file to import? Defaults to true. |
abstract void |
processData(MutableDocument model,
MossDocumentFrame callingFrame,
java.io.File file)
Processes data as required. |
| 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 |
|---|
getName |
| Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.FileAccess |
|---|
getProcessingMessage |
| Constructor Detail |
|---|
public MenuPlugin()
| Method Detail |
|---|
public abstract void processData(MutableDocument model,
MossDocumentFrame callingFrame,
java.io.File file)
throws PluginException,
PluginMessage
PluginException
PluginMessagepublic abstract boolean isFileChooserSave()
public abstract java.lang.String getDescription()
getDescription in interface FileAccessgetDescription in interface MossPluginMossPlugin.getDescription()public boolean isPluginActive()
MossPlugin
isPluginActive in interface MossPluginpublic boolean isPromptForFile()
FileAccess
isPromptForFile in interface FileAccesspublic java.lang.String[] getFileExtensions()
FileAccess
getFileExtensions in interface FileAccesspublic Version getMaximumVersion()
MossPlugin
getMaximumVersion in interface MossPluginpublic Version getMinimumVersion()
MossPlugin
getMinimumVersion in interface MossPlugin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||