edu.washington.biostr.sig.brainj3d.remoteutil
Class CollectionEvent
java.lang.Object
edu.washington.biostr.sig.brainj3d.util.observables.Event
edu.washington.biostr.sig.brainj3d.remoteutil.CollectionEvent
- All Implemented Interfaces:
- Externalizable, Serializable
public class CollectionEvent
- extends Event
- implements Externalizable
- See Also:
- Serialized Form
| Fields inherited from class edu.washington.biostr.sig.brainj3d.util.observables.Event |
sourceId |
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
CollectionEvent
public CollectionEvent()
- This construtor should only be used by externalizable.
CollectionEvent
public CollectionEvent(int type,
long id,
Object value)
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.