public class FormEvent extends BuilderEvent
An event class used in the form and form builder framework to deliver event information related to form elements (controls or input components).
All input components in a Form
object
(i.e. form elements with an associated
ComponentHandler
can act
as event sources. Therefore all event objects contain a reference to the
component handler of the event source and the name under which the
corresponding component was registered at the form. These properties can be
used by custom event listener implementations to find out, which component
has caused the event and to access the component's current input data.
source
Constructor and Description |
---|
FormEvent(Object source,
ComponentHandler<?> handler,
String name)
Creates a new instance of
FormEvent and initializes it. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
This base implementation tests the handler and name
properties.
|
ComponentHandler<?> |
getHandler()
Returns the handler object of the component, which caused this event.
|
String |
getName()
Returns the name of the component, which caused this event.
|
int |
hashCode()
Returns a hash code for this object.
|
getSource, toString
public FormEvent(Object source, ComponentHandler<?> handler, String name)
FormEvent
and initializes it.source
- the event source; this should be the platform specific
event object that is wrapped by this generic object instancehandler
- the component handlername
- the component's namepublic ComponentHandler<?> getHandler()
public String getName()
public int hashCode()
Copyright © 2016 The JGUIraffe Team. All rights reserved.