org.jSyncManager.Conduit.MemoWriter

Class MemoWriter

Implemented Interfaces:
ActionListener, Serializable

public final class MemoWriter
extends AbstractConduit
implements ActionListener

Field Summary

Fields inherited from class org.jSyncManager.API.Conduit.AbstractConduit

CANCEL_BUTTON_PRESSED, HELP_BUTTON_PRESSED, HIGH_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY, OK_BUTTON_PRESSED, configurationPanel, resources

Constructor Summary

MemoWriter()
The constructor used to initialize a new MemoWriter jConduit.

Method Summary

void
actionPerformed(ActionEvent e)
Implementation of ActionListener.actionPerformed(ActionEvent).
protected void
addText(String fileName, Reader reader)
protected void
addTextFromFile(File textFile)
protected void
addTextFromURL(URL url)
protected void
clearTextList()
A method to clear the database list vector.
protected JPanel
constructConfigPanel()
Constructs a configuration panel for this jConduit.
protected String
getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle.
void
startSync(ConduitHandler ch, DLPUserInfo user)
This method is called when this jConduit is given the opportunity to synchronize.

Methods inherited from class org.jSyncManager.API.Conduit.AbstractConduit

constructConfigPanel, doInitialization, getConduitDescription, getConduitName, getConduitResourceBundle, getConfigurationPanel, getPriority, getResourceBundleName, initialize, jConduitDialogActionPerformed, startSync, toString

Constructor Details

MemoWriter

public MemoWriter()
The constructor used to initialize a new MemoWriter jConduit.

Method Details

actionPerformed

public void actionPerformed(ActionEvent e)
Implementation of ActionListener.actionPerformed(ActionEvent). Whenever one of the config buttons is pressed, this method will be called.
Parameters:
e - the incoming action event.

addText

protected void addText(String fileName,
                       Reader reader)

addTextFromFile

protected void addTextFromFile(File textFile)

addTextFromURL

protected void addTextFromURL(URL url)

clearTextList

protected void clearTextList()
A method to clear the database list vector.

constructConfigPanel

protected JPanel constructConfigPanel()
Constructs a configuration panel for this jConduit.
Overrides:
constructConfigPanel in interface AbstractConduit
Returns:
a JPanel containing whatever configuration widgets this jConduit requires.

getResourceBundleName

protected String getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle.
Overrides:
getResourceBundleName in interface AbstractConduit
Returns:
the fully-qualified classname of the class to use as this jConduits resource bundle.

startSync

public void startSync(ConduitHandler ch,
                      DLPUserInfo user)
            throws NotConnectedException
This method is called when this jConduit is given the opportunity to synchronize.
Overrides:
startSync in interface AbstractConduit
Parameters:
ch - the handle to the active ConduitHandler to use for synchronization.
user - the user information object for the handhelds owner.
Throws:
NotConnectedException - thrown if the connection to the Palm is lost during sync.