fds.micro.ui.events
Class ActionEvent

java.lang.Object
  extended byfds.micro.ui.events.EventUI
      extended byfds.micro.ui.events.ActionEvent

public class ActionEvent
extends EventUI

This class defines an action event to be used with Component sub-classes.

Author:
Frédéric DE STEUR

Constructor Summary
ActionEvent(Component source)
          Build an empty action event.
ActionEvent(Component source, java.lang.String command)
          Build an action event raised by the given command.
 
Method Summary
 java.lang.String getCommand()
          Get the command why this event is produced.
 java.lang.String toString()
          Give String description of this event.
 
Methods inherited from class fds.micro.ui.events.EventUI
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionEvent

public ActionEvent(Component source)
Build an empty action event.

Parameters:
source - The component that have produced the event.

ActionEvent

public ActionEvent(Component source,
                   java.lang.String command)
Build an action event raised by the given command.

Parameters:
source - The component that have produced the event.
command - The command why this event is produced.
Method Detail

getCommand

public java.lang.String getCommand()
Get the command why this event is produced.

Returns:
Returns the action command string.

toString

public java.lang.String toString()
Description copied from class: EventUI
Give String description of this event.

Overrides:
toString in class EventUI