Class ActionEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.github.bordertech.wcomponents.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
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ActionEvent(Object source, String command)
ActionEvent(Object source, String command, Object actionObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionCommand()
Object
getActionObject()
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
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)
-
-