com.partnersoft.gui.forms
Class FormFieldEvent<T>
java.lang.Object
java.util.EventObject
com.partnersoft.gui.forms.FormFieldEvent<T>
- Type Parameters:
T - type of value edited by the source FormField
- All Implemented Interfaces:
- java.io.Serializable
public class FormFieldEvent<T>
- extends java.util.EventObject
A value change or "action" event triggered by a FormField.
Whenever a user changes the value in the graphical component of a FormField, a change
event is emitted. If the user does something generally considered to be an "action" (e.g. hitting return,
pressing a button, etc.) an event is emitted with the "action" flag set. These are combined into a single
object to simplify listener implementation.
Copyright 2009 Partner Software, Inc.
- Version:
- $Id$
- Author:
- Paul Reavis
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
| 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 |
forChange
public static <T> FormFieldEvent<T> forChange(FormField<T> field,
T value)
- Factory method to create a FormFieldEvent correspondign
forAction
public static <T> FormFieldEvent<T> forAction(FormField<T> field,
T value)
getField
public FormField<T> getField()
getValue
public T getValue()
isAction
public boolean isAction()
isValueChange
public boolean isValueChange()