cz.cuni.utils
Interface FlagListener<T>

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
MapVisualizationPanel, RemoteParserServer.MediatorStorage, UTServer, UTServerConnection

public interface FlagListener<T>
extends java.util.EventListener


Method Summary
 void flagChanged(T changedValue, int listenerParam)
          When registering the flag you may additionally specify listener parameter, if you do so - your listener will be called with that parameter.
 

Method Detail

flagChanged

void flagChanged(T changedValue,
                 int listenerParam)
When registering the flag you may additionally specify listener parameter, if you do so - your listener will be called with that parameter. Note that we purposefully denying OOP paradigm here. 'listenerParam' will allow you to implement this interface only once for more flags at the cost of switch(listenerParam){} ... but imagine that you have 4 objects which all register 4 different flag listeners (it would be a bit messy, wouldn't it).

Parameters:
changedValue -
listenerParam -