org.jSyncManager.Client

Class ConnectionPanel

Implemented Interfaces:
ActionListener

public final class ConnectionPanel
extends AbstractSettingsPanel

The Connection Panel. This class handles the Connections (Transports) panel.

Field Summary

Fields inherited from class org.jSyncManager.Client.AbstractSettingsPanel

pluginDescription, pluginDescriptionComponent, pluginSelectionPanel, pluginSettingsHashMap, pluginSettingsPanel, preferences, previousSelectedPlugin

Constructor Summary

ConnectionPanel(RegistrationData preferences, SettingsDialog parent)
Creates a new ConnectionPanel instance.

Method Summary

protected void
addPluginSettings(PluginSettings settings)
Adds the specified plug-in settings to this panel.
protected JPanel
buildPluginSelectionPanel()
Creates the plug-in selection panel.
protected Object
getSelectedPlugin()
Retreives the selected plug-in.
void
handleActionEvent(ActionEvent ae)
A method to process an action event.
protected void
populatePanel()
Populates the panel.

Methods inherited from class org.jSyncManager.Client.AbstractSettingsPanel

actionPerformed, addPluginSettings, buildPluginDescriptionComponent, buildPluginSelectionPanel, buildPluginSettingsPanel, getPreferredSize, getSelectedPlugin, handleActionEvent, showSelectedPluginSettings

Constructor Details

ConnectionPanel

public ConnectionPanel(RegistrationData preferences,
                       SettingsDialog parent)
Creates a new ConnectionPanel instance.
Parameters:
preferences - the user application preferences object.
parent - the SettingsDialog parent.

Method Details

addPluginSettings

protected void addPluginSettings(PluginSettings settings)
Adds the specified plug-in settings to this panel.
Overrides:
addPluginSettings in interface AbstractSettingsPanel
Parameters:
settings - the plug-in settings to add to this panel.

buildPluginSelectionPanel

protected JPanel buildPluginSelectionPanel()
Creates the plug-in selection panel.
Overrides:
buildPluginSelectionPanel in interface AbstractSettingsPanel
Returns:
the plug-in selection panel.

getSelectedPlugin

protected Object getSelectedPlugin()
Retreives the selected plug-in.
Overrides:
getSelectedPlugin in interface AbstractSettingsPanel
Returns:
the selected plug-in object.

handleActionEvent

public void handleActionEvent(ActionEvent ae)
A method to process an action event.
Overrides:
handleActionEvent in interface AbstractSettingsPanel
Parameters:
ae - the ActionEvent object to be processed.

populatePanel

protected void populatePanel()
            throws Exception
Populates the panel.