gumbo.net
Class NetWindow

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.app.MainWindow
              |
              +--gumbo.net.NetWindow
All Implemented Interfaces:
Disposable
Direct Known Subclasses:
ClientWindow, ProxyWindow, ServerWindow, TestClientWindow, TestServerWindow

public abstract class NetWindow
extends MainWindow

A MainWindow outfitted for asynchronous access by network threads. Includes asynchronous methods and writers for the window title text and status bar, and several standard network-related actions and message handlers.

Version:
$Revision: 1.7 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Nested Class Summary
 class NetWindow.KillClientAction
          A GUI action that optionally requests a manual retry and then closes the thread's client socket.
 class NetWindow.KillServerAction
          A GUI action that optionally requests a manual retry and then closes the thread's server socket, if any.
 class NetWindow.LocalWhoAction
          A GUI action that reports the local hostport of the thread's client connection to the window's status bar.
 class NetWindow.PingAction
          A GUI action that sends a ping command message through the thread thread's common message writer.
 class NetWindow.PingStatus
          A message listener that acknowledges receipt of a ping command message, and reports the status of a ping status message to the window's status bar.
 class NetWindow.RemoteWhoAction
          A GUI action that reports the remote hostport of the thread's client connection to the window's status bar.
 class NetWindow.ServerWhoAction
          A GUI action that reports the hostport of the thread's server socket to the window's status bar.
 
Constructor Summary
NetWindow(javax.swing.JFrame window, java.lang.String threadName)
           
 
Method Summary
 java.io.Writer getStatusBarWriter()
          Gets the asynchronous status bar text writer.
 java.io.Writer getTitleTextWriter()
          Gets the asynchronous title text writer.
 
Methods inherited from class gumbo.app.MainWindow
getContentPane, getMenuBar, getStatusBar, getStatusText, getTitleText, getToolBar, getWindowGraphic, getWindowName, implDispose, initWindowGraphic, pack, setDefaultCloseOperation, setMainArea, setStatusText, setTitleText, setVisible, setWindowName, showProblemMessage, showProblemMessage
 
Methods inherited from class gumbo.util.AbstractDisposable
dispose, isDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetWindow

public NetWindow(javax.swing.JFrame window,
                 java.lang.String threadName)
Method Detail

getTitleTextWriter

public java.io.Writer getTitleTextWriter()
Gets the asynchronous title text writer. Never null.


getStatusBarWriter

public java.io.Writer getStatusBarWriter()
Gets the asynchronous status bar text writer. Never null.