edu.washington.biostr.sig.brainj3d.remoteutil
Class CollectionEvent

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.util.observables.Event
      extended by edu.washington.biostr.sig.brainj3d.remoteutil.CollectionEvent
All Implemented Interfaces:
Externalizable, Serializable

public class CollectionEvent
extends Event
implements Externalizable

See Also:
Serialized Form

Field Summary
static int ADD
           
static int CLEAR
           
static int REMOVE
           
 
Fields inherited from class edu.washington.biostr.sig.brainj3d.util.observables.Event
sourceId
 
Constructor Summary
CollectionEvent()
          This construtor should only be used by externalizable.
CollectionEvent(int type, long id, Object value)
           
 
Method Summary
 long getTarget()
           
 int getType()
           
 Object getValue()
           
<T> void
process(ObservableCollection<T> c)
          Process this command on the given list.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class edu.washington.biostr.sig.brainj3d.util.observables.Event
getSourceId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
See Also:
Constant Field Values

REMOVE

public static final int REMOVE
See Also:
Constant Field Values

CLEAR

public static final int CLEAR
See Also:
Constant Field Values
Constructor Detail

CollectionEvent

public CollectionEvent()
This construtor should only be used by externalizable.


CollectionEvent

public CollectionEvent(int type,
                       long id,
                       Object value)
Method Detail

getTarget

public long getTarget()
Returns:
Returns the target.

getType

public int getType()
Returns:
Returns the type.

getValue

public Object getValue()
Returns:
Returns the value.

process

public <T> void process(ObservableCollection<T> c)
Process this command on the given list. If the list is not the list identified by the target id, then the results are unspecified.

Type Parameters:
T -
Parameters:
l -

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException


Copyright © 2006 University of Washington. All Rights Reserved.