org.geotools.swt.control
Class ValueChangedEvent<T>

Object
  extended by ValueChangedEvent<T>

public class ValueChangedEvent<T>
extends Object

An event published when the value of a control derived from JValueField changes.

Since:
2.7
Author:
Michael Bedward, Andrea Antonello (www.hydrologis.com)
See Also:
JValueField, ValueChangedListener

Constructor Summary
ValueChangedEvent(Control source, T newValue)
          Create a value changed event.
 
Method Summary
 Control getSource()
          Get the control that invoked this event.
 T getValue()
          Get the updated value.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueChangedEvent

public ValueChangedEvent(Control source,
                         T newValue)
Create a value changed event.

Parameters:
source - the control holding the value.
newValue - the updated value.
Method Detail

getSource

public Control getSource()
Get the control that invoked this event.

Returns:
the invoking control.

getValue

public T getValue()
Get the updated value.

Returns:
the updated value.


Copyright © 1996-2014 Geotools. All Rights Reserved.