Class FormFocusEvent
- 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.FormFocusEvent
-
- All Implemented Interfaces:
Serializable
public class FormFocusEvent extends FormEvent
A specific event class dealing with focus events.
A focus event is fired when a component gains or loses focus.
- Version:
- $Id: FormFocusEvent.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormFocusEvent.TypeAn enumeration class defining the different types of focus events.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description FormFocusEvent(Object source, ComponentHandler<?> handler, String name, FormFocusEvent.Type type)Creates a new instance ofFormFocusEventand 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.FormFocusEvent.TypegetType()Returns the type of this event.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
-
FormFocusEvent
public FormFocusEvent(Object source, ComponentHandler<?> handler, String name, FormFocusEvent.Type type)
Creates a new instance ofFormFocusEventand initializes it.- Parameters:
source- the source eventhandler- the component handlername- the component's nametype- the focus type of the event (gained or lost)
-
-
Method Detail
-
getType
public FormFocusEvent.Type getType()
Returns the type of this event.- Returns:
- the type of this event
-
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.
-
-