de.kosi.model
Interface TableListener

All Superinterfaces:
java.util.EventListener, java.rmi.Remote
All Known Implementing Classes:
TableAdapter, ProxyTableListener

public interface TableListener
extends java.rmi.Remote, java.util.EventListener

This listener can be registered at a table. It then receives events regarding a table. These events are: The table gets a new owner; a player joined or left the table; a watcher joined or left the table.

ChangeLog:

 $Log: TableListener.java,v $
 Revision 1.2  2001/06/22 13:24:32  jiriki
 Implemented kicking

 Revision 1.1.1.1  2001/04/29 18:05:17  jiriki
 Imported sources from zola.

 Revision 1.3  2001/03/01 11:37:25  wombat
 worked on table implementation.

 Revision 1.2  2001/02/11 18:04:32  login
 updated docs


 

Version:
$Revision: 1.2 $ ($Date: 2001/06/22 13:24:32 $)
Author:
Timo, Niklas, Ole

Method Summary
 void gameStarted()
          This method is called to notify the listener, that a new game has started.
 void kicked()
          This method is called to notify the listener, that it has been removed from the table following a request of the table owner.
 void ownerChanged()
          This method will be called to notify this listener that the table has got a new owner.
 void playersChanged()
          This method is called to notify this listener that a player joined or left the table.
 void watchersChanged()
          This method is called to notify this listener that a watcher joined or left this table.
 

Method Detail

ownerChanged

public void ownerChanged()
                  throws java.rmi.RemoteException
This method will be called to notify this listener that the table has got a new owner. This can happen if the owner of a table leaves it.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

playersChanged

public void playersChanged()
                    throws java.rmi.RemoteException
This method is called to notify this listener that a player joined or left the table. The new player list can be obtained from the Table interface.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

watchersChanged

public void watchersChanged()
                     throws java.rmi.RemoteException
This method is called to notify this listener that a watcher joined or left this table. The new watcher list can be obtained from the Table interface.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

gameStarted

public void gameStarted()
                 throws java.rmi.RemoteException
This method is called to notify the listener, that a new game has started.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.

kicked

public void kicked()
            throws java.rmi.RemoteException
This method is called to notify the listener, that it has been removed from the table following a request of the table owner.
Throws:
java.rmi.RemoteException - If the remote call of this method fails.