cz.cuni.amis.utils.flag
Class ReasonFlagListener.ReasonFlagListenerNotifier<T,R>

Package class diagram package ReasonFlagListener.ReasonFlagListenerNotifier
java.lang.Object
  extended by cz.cuni.amis.utils.flag.FlagListener.FlagListenerNotifier<T>
      extended by cz.cuni.amis.utils.flag.ReasonFlagListener.ReasonFlagListenerNotifier<T,R>
Type Parameters:
T -
All Implemented Interfaces:
Listeners.ListenerNotifier<FlagListener<T>>
Enclosing interface:
ReasonFlagListener<TYPE,REASON>

public static class ReasonFlagListener.ReasonFlagListenerNotifier<T,R>
extends FlagListener.FlagListenerNotifier<T>

Notifier for the ReasonFlagListener.

Author:
Jimmy

Constructor Summary
ReasonFlagListener.ReasonFlagListenerNotifier()
           
ReasonFlagListener.ReasonFlagListenerNotifier(T changedValue)
           
ReasonFlagListener.ReasonFlagListenerNotifier(T changedValue, R reasonForChange)
           
 
Method Summary
 void notify(FlagListener<T> listener)
          If ReasonFlagListener is passed into the method, it is redirected into appropriate method.
 void notify(ReasonFlagListener<T,R> listener)
           
 void setReason(R reason)
           
 
Methods inherited from class cz.cuni.amis.utils.flag.FlagListener.FlagListenerNotifier
getEvent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReasonFlagListener.ReasonFlagListenerNotifier

public ReasonFlagListener.ReasonFlagListenerNotifier()

ReasonFlagListener.ReasonFlagListenerNotifier

public ReasonFlagListener.ReasonFlagListenerNotifier(T changedValue)

ReasonFlagListener.ReasonFlagListenerNotifier

public ReasonFlagListener.ReasonFlagListenerNotifier(T changedValue,
                                                     R reasonForChange)
Method Detail

setReason

public void setReason(R reason)

notify

public void notify(FlagListener<T> listener)
If ReasonFlagListener is passed into the method, it is redirected into appropriate method.

Specified by:
notify in interface Listeners.ListenerNotifier<FlagListener<T>>
Overrides:
notify in class FlagListener.FlagListenerNotifier<T>

notify

public void notify(ReasonFlagListener<T,R> listener)


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.