|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.coffeecrew.mobile.oop.util.Observable
org.coffeecrew.mobile.oop.impl.ObjectReceiver
public class ObjectReceiver
This class should be used on the receiving side of the transfer. This class is
observable, so you can attach an Observer
object to it, to be
notified if an object was received.
ObjectReceiver
usage is pretty simple, you just have to instance
it like:
new ObjectReceiver(receivedObjects);or if you want an
Observer
to be
attached, simply do:
new ObjectReceiver(receivedObjects).addObserver(observer);
Constructor Summary | |
---|---|
ObjectReceiver(java.util.Vector receivedObjects)
Creates a new instance of ObjectReceiver. |
Method Summary | |
---|---|
void |
run()
Starts the receiving thread. |
Methods inherited from class org.coffeecrew.mobile.oop.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectReceiver(java.util.Vector receivedObjects)
receivedObjects
- The received object will be added to this vector
which can hold lots of objects you receive.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |