Class ActionEvent

  • All Implemented Interfaces:
    Serializable

    public class ActionEvent
    extends EventObject
    The object that indicates that a component action occured. It contains information about the event, and is passed to the Action object that will handle the event.
    Since:
    1.0.0
    Author:
    Martin Shevchenko
    See Also:
    Serialized Form
    • Constructor Detail

      • ActionEvent

        public ActionEvent​(Object source,
                           String command)
        Parameters:
        source - the object that originated the event. (Normally a WButton)
        command - a string that may specify a command associated with the event. (Normally the "actionCommand" from the source WButton)
      • ActionEvent

        public ActionEvent​(Object source,
                           String command,
                           Object actionObject)
        Parameters:
        source - the object that originated the event. (Normally a WButton)
        command - a string that may specify a command associated with the event. (Normally the "actionCommand" from the source WButton)
        actionObject - a data object that may contain information related to the event. (Normally the "actionObject" from the source WButton)
    • Method Detail

      • getActionCommand

        public String getActionCommand()
        Returns:
        The string that specifies a command associated with the event, if set
      • getActionObject

        public Object getActionObject()
        Returns:
        The data object that contains information related to the event, if set.