de.mud.jta.plugin

Class MudConnector

Implemented Interfaces:
ActionListener, Runnable, VisualPlugin

public class MudConnector
extends Plugin
implements VisualPlugin, Runnable, ActionListener

The MudConnector (http://www.mudconnector.com) plugin. The plugin will download a list of MUDs from a special list availabe at the url above and the user can select the mud and connect to it. This usually requires the relayd program to be run on the web server as this plugin tries to establish connections to other hosts than the web server.

Maintainer: Matthias L. Jugel

Version:
$Id: MudConnector.java 499 2005-09-29 08:24:54Z leo $
Author:
Matthias L. Jugel, Marcus Mei???ner

Field Summary

protected JMenu
MCMenu
protected JButton
connect
protected JLabel
errorLabel
protected CardLayout
layouter
protected URL
listURL
protected JTextField
mudAddr
protected Map
mudList
protected JPanel
mudListPanel
protected JList
mudListSelector
protected JTextField
mudName
protected JTextField
mudPort
protected de.mud.jta.plugin.MudConnector.ProgressBar
progress
protected int
step

Fields inherited from class de.mud.jta.Plugin

bus, id

Constructor Summary

MudConnector(PluginBus bus, String id)
Create the list plugin and get the url to the actual list.

Method Summary

void
actionPerformed(ActionEvent evt)
JMenu
getPluginMenu()
Get the menu entry for this component.
JComponent
getPluginVisual()
Get the visible components from the plugin.
void
run()

Methods inherited from class de.mud.jta.Plugin

error, getId

Field Details

MCMenu

protected JMenu MCMenu

connect

protected JButton connect

errorLabel

protected JLabel errorLabel

layouter

protected CardLayout layouter

listURL

protected URL listURL

mudAddr

protected JTextField mudAddr

mudList

protected Map mudList

mudListPanel

protected JPanel mudListPanel

mudListSelector

protected JList mudListSelector

mudName

protected JTextField mudName

mudPort

protected JTextField mudPort

progress

protected de.mud.jta.plugin.MudConnector.ProgressBar progress

step

protected int step

Constructor Details

MudConnector

public MudConnector(PluginBus bus,
                    String id)
Create the list plugin and get the url to the actual list.

Method Details

actionPerformed

public void actionPerformed(ActionEvent evt)

getPluginMenu

public JMenu getPluginMenu()
Get the menu entry for this component.
Specified by:
getPluginMenu in interface VisualPlugin
Returns:
a menu that can be used to change the plugin state

getPluginVisual

public JComponent getPluginVisual()
Get the visible components from the plugin.
Specified by:
getPluginVisual in interface VisualPlugin
Returns:
a component that represents the plugin

run

public void run()