org.jSyncManager.Conduit.Alerter

Class Alerter

Implemented Interfaces:
Serializable

public final class Alerter
extends AbstractConduit

This simple jConduit will alert the user when a newer version of the jSyncManager is available for download from our online website.

Field Summary

protected static String
versionInfoURLString
The URL for the new version information.

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

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

Method Summary

protected JPanel
constructConfigPanel()
Constructs a configuration panel for this jConduit.
byte
getPriority()
This method returns the jConduits priority byte.
protected String
getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle.
void
startSync(ConduitHandler conduitHandler, 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

Field Details

versionInfoURLString

protected static final String versionInfoURLString
The URL for the new version information.

Constructor Details

Alerter

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

Method Details

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.

getPriority

public byte getPriority()
This method returns the jConduits priority byte. This jConduit is set to the max, so that alerting the user to a new version is the first thing to occur.
Overrides:
getPriority in interface AbstractConduit
Returns:
the jConduits priority ordering byte of 127.

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 conduitHandler,
                      DLPUserInfo user)
            throws NotConnectedException
This method is called when this jConduit is given the opportunity to synchronize.
Overrides:
startSync in interface AbstractConduit
Parameters:
conduitHandler - 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.