de.mud.jta.plugin
Class MudConnector

java.lang.Object
  |
  +--de.mud.jta.Plugin
        |
        +--de.mud.jta.plugin.MudConnector
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable, VisualPlugin

public class MudConnector
extends Plugin
implements VisualPlugin, java.lang.Runnable, java.awt.event.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,v 2.5 2000/03/14 10:50:00 leo Exp $
Author:
Matthias L. Jugel, Marcus Meißner

Field Summary
protected  java.awt.Button connect
           
protected  java.awt.Label errorLabel
           
protected  java.awt.CardLayout layouter
           
protected  java.net.URL listURL
           
protected  java.awt.Menu MCMenu
           
protected  java.awt.TextField mudAddr
           
protected  java.util.Hashtable mudList
           
protected  java.awt.Panel mudListPanel
           
protected  java.awt.List mudListSelector
           
protected  java.awt.TextField mudName
           
protected  java.awt.TextField 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, java.lang.String id)
          Create the list plugin and get the url to the actual list.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 java.awt.Menu getPluginMenu()
          Get the menu entry for this component.
 java.awt.Component getPluginVisual()
          Get the visible components from the plugin.
 void run()
           
 
Methods inherited from class de.mud.jta.Plugin
error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listURL

protected java.net.URL listURL

step

protected int step

mudList

protected java.util.Hashtable mudList

mudListSelector

protected java.awt.List mudListSelector

mudName

protected java.awt.TextField mudName

mudAddr

protected java.awt.TextField mudAddr

mudPort

protected java.awt.TextField mudPort

connect

protected java.awt.Button connect

mudListPanel

protected java.awt.Panel mudListPanel

layouter

protected java.awt.CardLayout layouter

progress

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

errorLabel

protected java.awt.Label errorLabel

MCMenu

protected java.awt.Menu MCMenu
Constructor Detail

MudConnector

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

run

public void run()
Specified by:
run in interface java.lang.Runnable

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getPluginVisual

public java.awt.Component getPluginVisual()
Description copied from interface: VisualPlugin
Get the visible components from the plugin.
Specified by:
getPluginVisual in interface VisualPlugin
Following copied from interface: de.mud.jta.VisualPlugin
Returns:
a component that represents the plugin

getPluginMenu

public java.awt.Menu getPluginMenu()
Description copied from interface: VisualPlugin
Get the menu entry for this component.
Specified by:
getPluginMenu in interface VisualPlugin
Following copied from interface: de.mud.jta.VisualPlugin
Returns:
a menu that can be used to change the plugin state