org.onebusaway.webapp.gwt.common.model
Class ModelEventsImpl

java.lang.Object
  extended by org.onebusaway.webapp.gwt.common.model.ModelEventsImpl
All Implemented Interfaces:
ModelEventsSink, ModelEventsSource, ModelEventsSourceAndSink

public class ModelEventsImpl
extends Object
implements ModelEventsSourceAndSink


Constructor Summary
ModelEventsImpl()
           
 
Method Summary
<T> void
addModelListener(Class<T> modelType, ModelListener<T> listener)
          ModelEventsSource Interface
<T,T2 extends T>
void
fireChange(Class<T> modelType, T2 model)
           
<T> void
fireChange(T model)
          ModelEventsSink Interface
<T> ModelEventSink<T>
getEventSink(Class<T> modelType)
           
<T> ModelEventSource<T>
getEventSource(Class<T> modelType)
           
<T> ModelEventSourceAndSink<T>
getEventSourceAndSink(Class<T> modelType)
           
<T> void
removeModelListener(Class<T> modelType, ModelListener<T> listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelEventsImpl

public ModelEventsImpl()
Method Detail

addModelListener

public <T> void addModelListener(Class<T> modelType,
                                 ModelListener<T> listener)
ModelEventsSource Interface

Specified by:
addModelListener in interface ModelEventsSource

removeModelListener

public <T> void removeModelListener(Class<T> modelType,
                                    ModelListener<T> listener)
Specified by:
removeModelListener in interface ModelEventsSource

fireChange

public <T> void fireChange(T model)
ModelEventsSink Interface

Specified by:
fireChange in interface ModelEventsSink

fireChange

public <T,T2 extends T> void fireChange(Class<T> modelType,
                                        T2 model)
Specified by:
fireChange in interface ModelEventsSink

getEventSourceAndSink

public <T> ModelEventSourceAndSink<T> getEventSourceAndSink(Class<T> modelType)
Specified by:
getEventSourceAndSink in interface ModelEventsSourceAndSink

getEventSource

public <T> ModelEventSource<T> getEventSource(Class<T> modelType)
Specified by:
getEventSource in interface ModelEventsSource

getEventSink

public <T> ModelEventSink<T> getEventSink(Class<T> modelType)
Specified by:
getEventSink in interface ModelEventsSink


Copyright © 2011 OneBusAway. All Rights Reserved.