de.kosi.util
Class DistributedListEvent

java.lang.Object
  |
  +--de.kosi.util.DistributedListEvent
All Implemented Interfaces:
java.io.Serializable

public class DistributedListEvent
extends java.lang.Object
implements java.io.Serializable

A DistributedListEvent is an event, that is send to all listeners, when the list changes. It contains a list of items in the list that have changed.

ChangeLog:

 $Log: DistributedListEvent.java,v $
 Revision 1.4  2001/07/20 13:01:41  jiriki
 Start of BugFixing

 Revision 1.3  2001/06/12 17:14:33  jiriki
 - Reimplemented DistributedList to make filters working
 - Made ServertestCase working.

 Revision 1.2  2001/06/04 14:21:10  jiriki
 Made source more comliant to coding guidelines.

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

 Revision 1.6  2001/03/20 18:17:31  wombat
 Added logging support

 Revision 1.5  2001/03/18 17:32:04  wombat
 Changed database concept

 Revision 1.4  2001/03/01 21:28:14  wombat
 Updated TestClient
 Resolved some bugs

 Revision 1.3  2001/02/25 23:16:05  wombat
 - deadlock vermeidung umgestellt.
 - ListenerList erstellt

 Revision 1.2  2001/02/02 10:59:15  wombat
 Updated Documentationm

 

Version:
$Revision: 1.4 $ ($Date: 2001/07/20 13:01:41 $)
Author:
Jan-Ole Janssen, Niklas Mehner, Time Sticher
See Also:
Serialized Form

Field Summary
static int DLE_ADD
          constant indicating that this is an add event.
static int DLE_REMOVE
          constant indicating that this is an remove event.
 
Constructor Summary
DistributedListEvent(int type, java.util.List entries)
          Creates a new Event.
DistributedListEvent(int type, java.lang.Object entry)
          Creates a new Event.
 
Method Summary
 java.util.List getEntries()
          Returns the entries that have changed.
 int getType()
          Returns the type of this event.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DLE_ADD

public static final int DLE_ADD
constant indicating that this is an add event.

DLE_REMOVE

public static final int DLE_REMOVE
constant indicating that this is an remove event.
Constructor Detail

DistributedListEvent

public DistributedListEvent(int type,
                            java.util.List entries)
Creates a new Event.
Parameters:
type - Typ of the event (either DLE_ADD or DLE_REMOVE).
entries - entries that have changed.

DistributedListEvent

public DistributedListEvent(int type,
                            java.lang.Object entry)
Creates a new Event.
Parameters:
type - Typ of the event (either DLE_ADD or DLE_REMOVE).
entry - entriy that has changed.
Method Detail

getType

public int getType()
Returns the type of this event.
Returns:
type of this event.

getEntries

public java.util.List getEntries()
Returns the entries that have changed.
Returns:
array of entries, that have changed.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object