modules.MudConnector.html

dw_fluffos_v1/lib/www/external/java/telnet/Documentation/Source/modules.MudConnector.html · 6.6 KB

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Mon Feb 23 10:46:39 CET 1998 -->
<a name="_top_"></a>
<title>
  Class modules.MudConnector
</title>
</head>
<body>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-modules.html">This Package</a>  <a href="modules.ButtonBar.html#_top_">Previous</a>  <a href="modules.Script.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class modules.MudConnector
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
           |
           +----<a href="java.awt.Container.html#_top_">java.awt.Container</a>
                   |
                   +----<a href="java.awt.Panel.html#_top_">java.awt.Panel</a>
                           |
                           +----modules.MudConnector
</pre>
<hr>
<dl>
  <dt> public class <b>MudConnector</b>
  <dt> extends <a href="java.awt.Panel.html#_top_">Panel</a>
  <dt> implements <a href="modules.Module.html#_top_">Module</a>, <a href="java.lang.Runnable.html#_top_">Runnable</a>
</dl>
A specially designed module for the 
<A HREF="http://www.mudconnect.com/">MUD Connector</A>.
It loads a list of MUDs via http and displays them in a list box to 
be selected. A selected MUD can then be entered.
<DL>
 <DT><B>MudConnector parameterfile:</B>
  <DD><PRE>&lt;PARAM NAME=MUDlist VALUE=&quot;<B><I>url</I></B>&quot;&gt;</PRE>
  <DD>The url of the Mudlist. This url MUST be located on the same web
      server as the applet!
</DL>
<dl>
  <dt> <b>Version:</b>
  <dd> $Id: MudConnector.java,v 1.2 1997/04/14 09:43:48 leo Exp $
  <dt> <b>Author:</b>
  <dd> Matthias L. Jugel, Marcus Meißner
    <dt> <b>See Also:</b>
    <dd> <a href="modules.Module.html#_top_">Module</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#MudConnector()"><b>MudConnector</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addNotify()"><b>addNotify</b></a>()
  <dd> when newly added try to load the mudlist using the parameter "mudlist"

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#connect(java.lang.String, int)"><b>connect</b></a>(String, int)
  <dd> dummy methods

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#disconnect()"><b>disconnect</b></a>()
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#handleEvent(java.awt.Event)"><b>handleEvent</b></a>(Event)
  <dd> handle list selection, connect, disconnect and refresh button

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#receive(java.lang.String)"><b>receive</b></a>(String)
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#run()"><b>run</b></a>()
  <dd> The body of the thread opens a URLConnection with the address given as
parameter "mudlist" and downloads it.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setLoader(java.lang.Object)"><b>setLoader</b></a>(Object)
  <dd> setLoader() is called upon start of the parent applet.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="MudConnector"></a>
<a name="MudConnector()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>MudConnector</b>
<pre>
  public MudConnector()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="setLoader(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setLoader"><b>setLoader</b></a>
<pre>
  public void setLoader(<a href="java.lang.Object.html#_top_">Object</a> loader)
</pre>
<dl>
  <dd> setLoader() is called upon start of the parent applet. This method
initializes the GUI of the module, e.g the list and buttons.
  <dl>
    <dt> <b>Parameters:</b>
    <dd> loader - the parent applet
  </dl>
</dl>
<a name="addNotify()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addNotify"><b>addNotify</b></a>
<pre>
  public void addNotify()
</pre>
<dl>
  <dd> when newly added try to load the mudlist using the parameter "mudlist"
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Panel.html#addNotify()">addNotify</a> in class <a href="java.awt.Panel.html#_top_">Panel</a>
  </dl>
</dl>
<a name="run()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="run"><b>run</b></a>
<pre>
  public void run()
</pre>
<dl>
  <dd> The body of the thread opens a URLConnection with the address given as
parameter "mudlist" and downloads it. It expects a tabulator separated
list <mudname> <mudhost> <mudport> and the amount of muds in the file
at the beginning of the file.
</dl>
<a name="handleEvent(java.awt.Event)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="handleEvent"><b>handleEvent</b></a>
<pre>
  public boolean handleEvent(<a href="java.awt.Event.html#_top_">Event</a> evt)
</pre>
<dl>
  <dd> handle list selection, connect, disconnect and refresh button
  <dl>
    <dt> <b>Parameters:</b>
    <dd> evt - the event to process
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#handleEvent(java.awt.Event)">handleEvent</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl>
</dl>
<a name="connect(java.lang.String, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="connect"><b>connect</b></a>
<pre>
  public void connect(<a href="java.lang.String.html#_top_">String</a> host,
                      int port)
</pre>
<dl>
  <dd> dummy methods
</dl>
<a name="disconnect()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="disconnect"><b>disconnect</b></a>
<pre>
  public void disconnect()
</pre>
<a name="receive(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="receive"><b>receive</b></a>
<pre>
  public <a href="java.lang.String.html#_top_">String</a> receive(<a href="java.lang.String.html#_top_">String</a> str)
</pre>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-modules.html">This Package</a>  <a href="modules.ButtonBar.html#_top_">Previous</a>  <a href="modules.Script.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>

Site Stats

Snippets: 1791
Codebases: 571