pt.moredata.dataentry.event
Class ActionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bypt.moredata.dataentry.event.ActionEvent
All Implemented Interfaces:
java.io.Serializable

public class ActionEvent
extends java.util.EventObject

Company MoreData

Version:
$Revision: 1.3 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ActionEvent(java.lang.Object source, java.lang.String command, RequestMessage message)
          Cria um novo evento associado a uma menssagem com um pedido para ser tratado pelo dataentry.
 
Method Summary
 java.lang.String getActionCommand()
          Returns the command string associated with this action.
 DataEntry getDataEntry()
          Return the dataEntry associated with the RequestMessage.
 RequestMessage getRequestMessage()
          Devolve a menssagem que contem o pedido.
 
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 command,
                   RequestMessage message)
Cria um novo evento associado a uma menssagem com um pedido para ser tratado pelo dataentry.

Parameters:
source - Objecto que gerou o evento associado a accao.
command - Comando associado a accao.
message - Menssagem de pedido associada a accao.
Method Detail

getRequestMessage

public RequestMessage getRequestMessage()
Devolve a menssagem que contem o pedido.

Returns:
Devolve a mensagem de pedido associada ao evento.

getActionCommand

public java.lang.String getActionCommand()
Returns the command string associated with this action. This string allows a "modal" component to specify one of several commands, depending on its state. For example, a single button might toggle between "show details" and "hide details". The source object and the event would be the same in each case, but the command string would identify the intended action.

Returns:
the string identifying the command for this event

getDataEntry

public DataEntry getDataEntry()
Return the dataEntry associated with the RequestMessage.

Returns:
The dataEntry associated with the RequestMessage (may be null) or null if the request message is null.