org.jSyncManager.Conduit.Installer
Class Installer
- ActionListener, Serializable
public final class Installer
implements ActionListener
A jConduit used to install PRC and PDB files.
This jConduit allows the user to install PRC and PDB files from
either a local or network filesystem, or via a specified URL.
Installer()- Constructs a new instance of the Installer jConduit.
|
constructConfigPanel, doInitialization, getConduitDescription, getConduitName, getConduitResourceBundle, getConfigurationPanel, getPriority, getResourceBundleName, initialize, jConduitDialogActionPerformed, startSync, toString |
Installer
public Installer()
Constructs a new instance of the Installer jConduit.
actionPerformed
public void actionPerformed(ActionEvent e)
Implementation of ActionListener.actionPerformed(ActionEvent).
Whenever one of the config buttons is pressed, this method will be called.
e - the incoming action event.
constructConfigPanel
protected JPanel constructConfigPanel()
Constructs a configuration panel for this jConduit.
- constructConfigPanel in interface AbstractConduit
- a JPanel containing the configuration widgets for the Installer jConduit.
exceptionInstallingDatabase
protected void exceptionInstallingDatabase(DLPDatabase db,
ConduitHandler handler,
ConduitHandlerException e)
throws NotConnectedExceptionA method to handle when an exception is encountered while trying to install a database.
You may use this method to provide an alert to the user when the installation of a database
is aborted due to a ConduitHandlerException. You may refer to the exception to determine why
the exception occurred, and to then display a message to the user.
- exceptionInstallingDatabase in interface AbstractInstaller
db - the database that was being installed when the exception occurred.
getDatabaseList
protected DLPDatabase[] getDatabaseList(ConduitHandler handler,
DLPUserInfo userInfo)Returns a list of databases to be installed to the handheld at sync time.
- getDatabaseList in interface AbstractInstaller
handler - the ConduitHandler object for this sync (so you can check handheld data if necessary)userInfo - the DLPUserInfo object for the currently synchronizing user.
- an array of DLPDatabas objects.
getResourceBundleName
protected String getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle.
- getResourceBundleName in interface AbstractConduit
- the fully-qualified classname of the class to use as this jConduits resource bundle.
isDatabaseInstallAllowed
protected boolean isDatabaseInstallAllowed(DLPDatabase db,
ConduitHandler handler,
DLPUserInfo user)
throws NotConnectedExceptionDetermines wether or not this database should be installed.
This implementation will attempt to install all the databases, and thus always returns true
- isDatabaseInstallAllowed in interface AbstractInstaller
db - the database object to be installed.handler - the ConduitHandler object for this sync (so you can check handheld data if necessary)user - the DLPUserInfo object for the currently syncing user.
removeDatabase
public void removeDatabase(String s)