com.guiseframework.event
Class ValueEvent<V>

java.lang.Object
  extended by java.util.EventObject
      extended by com.globalmentor.event.AbstractEvent
          extended by com.guiseframework.event.AbstractGuiseEvent
              extended by com.guiseframework.event.ValueEvent<V>
Type Parameters:
V - The type of value to be reported.
All Implemented Interfaces:
com.globalmentor.event.Event, GuiseEvent, java.io.Serializable

public class ValueEvent<V>
extends AbstractGuiseEvent

An event reporting a value.

Author:
Garret Wilson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValueEvent(java.lang.Object source, V value)
          Source and value constructor.
 
Method Summary
 V getValue()
           
 
Methods inherited from class com.guiseframework.event.AbstractGuiseEvent
getSession
 
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
 
Methods inherited from interface com.globalmentor.event.Event
getSource
 

Constructor Detail

ValueEvent

public ValueEvent(java.lang.Object source,
                  V value)
Source and value constructor.

Parameters:
source - The object on which the event initially occurred.
value - The value being reported.
Throws:
java.lang.NullPointerException - if the given source is null.
Method Detail

getValue

public V getValue()
Returns:
The value being reported.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.