de.kosi.model
Class ProxyTableListener

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

public class ProxyTableListener
extends java.lang.Object
implements TableListener

This is the proxy listener class for the TableListener.

ChangeLog:

 $Log: ProxyTableListener.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.1  2001/03/01 11:38:17  wombat
 worked on table listener

 

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

Constructor Summary
ProxyTableListener(TableListener listener)
          Creates a new listener.
 
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

ProxyTableListener

public ProxyTableListener(TableListener listener)
Creates a new listener.
Parameters:
listener - Listener the calls are relayed to.
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.