Package org.geotools.swing.control
Class ValueChangedEvent<T>
- Object
-
- ValueChangedEvent<T>
-
public class ValueChangedEvent<T> extends Object
An event published when the value of a control derived fromJValueField
changes.- Since:
- 2.6.1
- Author:
- Michael Bedward
- See Also:
JValueField
,ValueChangedListener
-
-
Constructor Summary
Constructors Constructor Description ValueChangedEvent(Component source, T newValue)
Create a value changed event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getSource()
Get the control that invoked this eventT
getValue()
Get the updated value
-
-
-
Constructor Detail
-
ValueChangedEvent
public ValueChangedEvent(Component source, T newValue)
Create a value changed event- Parameters:
source
- the control holding the valuenewValue
- the updated value
-
-
Method Detail
-
getSource
public Component getSource()
Get the control that invoked this event- Returns:
- the invoking control
-
getValue
public T getValue()
Get the updated value- Returns:
- the updated value
-
-