Class FormActionEvent
- java.lang.Object
-
- java.util.EventObject
-
- net.sf.jguiraffe.gui.builder.event.BuilderEvent
-
- net.sf.jguiraffe.gui.builder.event.FormEvent
-
- net.sf.jguiraffe.gui.builder.event.FormActionEvent
-
- All Implemented Interfaces:
Serializable
public class FormActionEvent extends FormEvent
A specific event class for dealing with action events.
Action events are triggered by components like buttons. They usually cause the application to perform a certain action. As an additional property a command string is provided.
- Version:
- $Id: FormActionEvent.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description FormActionEvent(Object source, ComponentHandler<?> handler, String name, String cmd)Creates a new instance ofFormActionEventand initializes it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)This base implementation tests the handler and name properties.StringgetCommand()Returns the action command string.inthashCode()Returns a hash code for this object.-
Methods inherited from class net.sf.jguiraffe.gui.builder.event.FormEvent
getHandler, getName
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
FormActionEvent
public FormActionEvent(Object source, ComponentHandler<?> handler, String name, String cmd)
Creates a new instance ofFormActionEventand initializes it.- Parameters:
source- the original eventhandler- the component handlername- the component's namecmd- the action command string
-
-
Method Detail
-
getCommand
public String getCommand()
Returns the action command string.- Returns:
- the command
-
hashCode
public int hashCode()
Returns a hash code for this object. This implementation takes the additional fields into account declared by this class.
-
equals
public boolean equals(Object obj)
This base implementation tests the handler and name properties. It is implemented in a way that subclasses can override it to add checks for additional properties. This implementation also checks the additional fields declared by this class.
-
-