|
|||||||||
| 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.BuddiSynchronizePlugin
public abstract class BuddiSynchronizePlugin
The abstract class to extend when creating a synchronize plugin. The method synchronizeData() 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 synchronize with.
| Constructor Summary | |
|---|---|
BuddiSynchronizePlugin()
|
|
| 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. |
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. |
abstract void |
synchronizeData(MutableDocument model,
MossDocumentFrame callingFrame,
java.io.File file)
Synchronizes 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 BuddiSynchronizePlugin()
| Method Detail |
|---|
public abstract void synchronizeData(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 MenuPlugin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||