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

      • FormActionEvent

        public FormActionEvent​(Object source,
                               ComponentHandler<?> handler,
                               String name,
                               String cmd)
        Creates a new instance of FormActionEvent and initializes it.
        Parameters:
        source - the original event
        handler - the component handler
        name - the component's name
        cmd - 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.
        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