edu.umd.cfar.lamp.viper.gui.core
Class ViperMediatorChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byedu.umd.cfar.lamp.viper.gui.core.ViperMediatorChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ViperMediatorChangeEvent
extends java.util.EventObject

Indicates a change that UI elements might want to respond to.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ViperMediatorChangeEvent(java.lang.Object source)
          Constructs a new event object with the given source.
ViperMediatorChangeEvent(java.lang.Object source, ViperChangeEvent viperEvent)
          Constructs a new change event.
 
Method Summary
 ViperChangeEvent getViperEvent()
          Gets the viper event that caused this change.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViperMediatorChangeEvent

public ViperMediatorChangeEvent(java.lang.Object source)
Constructs a new event object with the given source.

Parameters:
source - where the event occurred

ViperMediatorChangeEvent

public ViperMediatorChangeEvent(java.lang.Object source,
                                ViperChangeEvent viperEvent)
Constructs a new change event.

Parameters:
source - the source of the change. Probably should be the mediator.
viperEvent - the associated viper change event, if it exists
Method Detail

getViperEvent

public ViperChangeEvent getViperEvent()
Gets the viper event that caused this change.

Returns:
the change event