com.droplets.api.event
Class ActionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.droplets.api.event.ActionEvent
All Implemented Interfaces:
java.io.Serializable

public class ActionEvent
extends java.util.EventObject

Event fired when a user performs an action on a component. The types of actions that cause this event to be fired are determined by the specific components.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ActionEvent(java.lang.Object source, java.lang.String action, java.lang.String args)
          Constructs a new ActionEvent.
 
Method Summary
 java.lang.String getAction()
          Gets the action string.
 java.lang.String getActionCommand()
          Gets the action command.
 java.lang.String getArgs()
          Gets the action-specific arguments.
 Component getSourceComponent()
          Type-safe method to return the source object of this event, since we know it's a Component.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionEvent

public ActionEvent(java.lang.Object source,
                   java.lang.String action,
                   java.lang.String args)
Constructs a new ActionEvent.
Parameters:
source - the component or object on which the action was taken
action - indicates what action was taken
args - action-specific arguments
Method Detail

getSourceComponent

public Component getSourceComponent()
Type-safe method to return the source object of this event, since we know it's a Component.
Returns:
the component on which the action occurred

getActionCommand

public java.lang.String getActionCommand()
Gets the action command. This method is identical to getAction(), and is included only as a convenience to those familiar with the java.awt.event.ActionEvent class.
Returns:
the action command.

getAction

public java.lang.String getAction()
Gets the action string.
Returns:
the action string

getArgs

public java.lang.String getArgs()
Gets the action-specific arguments.
Returns:
the action-specific arguments


Copyright © Droplets, 2001. All Rights Reserved.