fr.ove.openmath.mfd2.events
Class RequestContainingEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byfr.ove.openmath.mfd2.events.RequestContainingEvent
All Implemented Interfaces:
java.io.Serializable

public class RequestContainingEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
static int UPDATE
           
static int UPDATE_REQUEST
          The different actions associated with the event.
static int UPDATE_RESULT
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RequestContainingEvent(java.lang.Object src)
          The constructor.
 
Method Summary
 int getAction()
          Returns the action associated with the event.
 java.lang.Object getArgument()
          Returns the argument of the action.
 void setAction(int action, java.lang.Object argument)
          Sets the action and its argument, if necessary, to execute to the event.
 
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
 

Field Detail

UPDATE_REQUEST

public static final int UPDATE_REQUEST
The different actions associated with the event.

See Also:
Constant Field Values

UPDATE_RESULT

public static final int UPDATE_RESULT
See Also:
Constant Field Values

UPDATE

public static final int UPDATE
See Also:
Constant Field Values
Constructor Detail

RequestContainingEvent

public RequestContainingEvent(java.lang.Object src)
The constructor.

Parameters:
src - the object which produces this event.
Method Detail

setAction

public void setAction(int action,
                      java.lang.Object argument)
Sets the action and its argument, if necessary, to execute to the event.

Parameters:
action - the action to execute.
argument - the action argument. If the action don't need an argument, it must be sets to null.

getAction

public int getAction()
Returns the action associated with the event.


getArgument

public java.lang.Object getArgument()
Returns the argument of the action.



Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.