cz.cuni.amis.utils.flag
Class ReasonFlagListener.FlagListenerAdapter<T,R>
java.lang.Object
cz.cuni.amis.utils.flag.ReasonFlagListener.FlagListenerAdapter<T,R>
- Type Parameters:
T
- R
-
- All Implemented Interfaces:
- FlagListener<T>, ReasonFlagListener<T,R>, EventListener
- Enclosing interface:
- ReasonFlagListener<TYPE,REASON>
public static class ReasonFlagListener.FlagListenerAdapter<T,R>
- extends Object
- implements ReasonFlagListener<T,R>
Adapter for the simple FlagListener that does not care about reasons (the reason is masked
during the call...)
- Author:
- Jimmy
Method Summary |
void |
flagChanged(T changedValue)
|
void |
flagChanged(T changedValue,
R reason)
This method is called whenever the flag has changed its value and the changer
also specified a reason for this change. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReasonFlagListener.FlagListenerAdapter
public ReasonFlagListener.FlagListenerAdapter(FlagListener<T> listener)
flagChanged
public void flagChanged(T changedValue,
R reason)
- Description copied from interface:
ReasonFlagListener
- This method is called whenever the flag has changed its value and the changer
also specified a reason for this change.
- Specified by:
flagChanged
in interface ReasonFlagListener<T,R>
flagChanged
public void flagChanged(T changedValue)
- Specified by:
flagChanged
in interface FlagListener<T>
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.