|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnl.tudelft.goal.ut2004.visualizer.data.AbstractData
public abstract class AbstractData
Abstract class for data that is gathered from the UnrealServer.
| Constructor Summary | |
|---|---|
AbstractData()
|
|
| Method Summary | |
|---|---|
void |
notifyListeners()
Notifies all the listeners that this AbstractData has been updated. |
abstract void |
serverChanged(cz.cuni.amis.pogamut.ut2004.server.IUT2004Server server)
Called when ever the server is updated. |
void |
subscribe(DataUpdateListener listener)
Add the specified DataUpdateListener to the listeners for this AbstractData object. |
void |
unsubscribe(DataUpdateListener listener)
Removes the specified DataUpdateListener from the listeners to this AbstractData object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractData()
| Method Detail |
|---|
public abstract void serverChanged(cz.cuni.amis.pogamut.ut2004.server.IUT2004Server server)
server - the new server or null if the connection was lost.public void subscribe(DataUpdateListener listener)
DataUpdateListener to the listeners for this AbstractData object.
listener - The listener that needs to be subscribedpublic void unsubscribe(DataUpdateListener listener)
DataUpdateListener from the listeners to this AbstractData object.
listener - The listener that needs to be removed.public void notifyListeners()
AbstractData has been updated.
type - The Type of DataUpdateEvent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||