de.kosi.model
Class TableAdapter

java.lang.Object
  |
  +--de.kosi.model.TableAdapter
All Implemented Interfaces:
java.util.EventListener, java.rmi.Remote, TableListener

public class TableAdapter
extends java.lang.Object
implements TableListener

This is an adapter class for the TableListener interface to make it easier to implement the interface. So if you only want to implement some of the methods you don't have to overwrite everyone.

ChangeLog:

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

 Revision 1.2  2001/06/06 09:22:35  betacarotine
 updated documentation


 

Version:
$Revision: 1.3 $ ($Date: 2001/06/22 13:24:32 $)
Author:
PG KoSI, Fachbereich Informatik, Universitaet Oldenburg

Constructor Summary
TableAdapter()
          To prevent checkdocs from giving us warnings.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableAdapter

public TableAdapter()
To prevent checkdocs from giving us warnings.
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.
Specified by:
ownerChanged in interface TableListener
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.
Specified by:
playersChanged in interface TableListener
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.
Specified by:
watchersChanged in interface TableListener
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.
Specified by:
gameStarted in interface TableListener
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.
Specified by:
kicked in interface TableListener
Throws:
java.rmi.RemoteException - If the remote call of this method fails.