edu.isi.gamebots.client
Class BotRunnerApp.TabManager

java.lang.Object
  |
  +--edu.isi.gamebots.client.GamebotsClient.Adapter
        |
        +--edu.isi.gamebots.client.BotRunnerApp.TabManager
All Implemented Interfaces:
EventListener, GamebotsClient.Listener
Direct Known Subclasses:
BotRunnerApp.BotManager, BotRunnerApp.VizManager
Enclosing class:
BotRunnerApp

protected abstract class BotRunnerApp.TabManager
extends GamebotsClient.Adapter


Field Summary
 GamebotsClient client
           
protected  Object clientLock
           
 Runnable connectRunner
           
 Runnable disconnectRunner
           
 us.ca.la.anm.util.io.JTextAreaLog tabLog
           
protected  String title
           
 
Constructor Summary
protected BotRunnerApp.TabManager(String title)
           
 
Method Summary
protected  void addTab(JComponent view)
           
 void connect()
           
 void connected()
          Notifies the Listener that the client has been connected to the server.
 void destroy()
           
 void disconnect()
           
 void disconnected()
          Notifies the Listener that the client has been disconnected from the server.
 
Methods inherited from class edu.isi.gamebots.client.GamebotsClient.Adapter
receivedAsyncMessage, receivedError, receivedSyncMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientLock

protected final Object clientLock

client

public final GamebotsClient client

tabLog

public final us.ca.la.anm.util.io.JTextAreaLog tabLog

title

protected String title

connectRunner

public Runnable connectRunner

disconnectRunner

public Runnable disconnectRunner
Constructor Detail

BotRunnerApp.TabManager

protected BotRunnerApp.TabManager(String title)
Method Detail

connect

public void connect()

disconnect

public void disconnect()

destroy

public void destroy()

connected

public void connected()
Description copied from class: GamebotsClient.Adapter
Notifies the Listener that the client has been connected to the server.

Specified by:
connected in interface GamebotsClient.Listener
Overrides:
connected in class GamebotsClient.Adapter
See Also:
GamebotsClient.Listener.connected()

disconnected

public void disconnected()
Description copied from class: GamebotsClient.Adapter
Notifies the Listener that the client has been disconnected from the server.

Specified by:
disconnected in interface GamebotsClient.Listener
Overrides:
disconnected in class GamebotsClient.Adapter
See Also:
GamebotsClient.Listener.disconnected()

addTab

protected void addTab(JComponent view)