Class 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
    • Constructor Detail

      • FormFocusEvent

        public FormFocusEvent​(Object source,
                              ComponentHandler<?> handler,
                              String name,
                              FormFocusEvent.Type type)
        Creates a new instance of FormFocusEvent and initializes it.
        Parameters:
        source - the source event
        handler - the component handler
        name - the component's name
        type - 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.
        Overrides:
        hashCode in class FormEvent
        Returns:
        a hash code
        Since:
        1.3
      • 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.
        Overrides:
        equals in class FormEvent
        Since:
        1.3