fr.ove.openmath.jome.model.events
Class ModelEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byfr.ove.openmath.jome.model.events.ModelEvent
All Implemented Interfaces:
java.io.Serializable

public class ModelEvent
extends java.util.EventObject

The event to send to all objects that implements the interface ModelListener and which want to be alerted of changes of the model they are listening to.

Version:
1.0 09/07/98
Author:
© 1998 DIRAT Laurent
See Also:
Serialized Form

Field Summary
static int ADD
          Add the element which produces the event.
static int CLEAR
           
static int CREATE
          Create the display for the instance which produces the event.
static int HERE_IS_MAPLE
           
static int HERE_IS_OPENMATH
          Give the OpenMath object of the formula.
static int MOVE
          Remove the element which produces the event.
static int REBUILD
          Rebuild the element which produces the event.
static int REMOVE
          Remove the element which produces the event.
static int UPDATE
          Update the element which produces the event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ModelEvent(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

ADD

public static final int ADD
Add the element which produces the event.

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
Remove the element which produces the event.

See Also:
Constant Field Values

MOVE

public static final int MOVE
Remove the element which produces the event.

See Also:
Constant Field Values

CREATE

public static final int CREATE
Create the display for the instance which produces the event.

See Also:
Constant Field Values

CLEAR

public static final int CLEAR
See Also:
Constant Field Values

UPDATE

public static final int UPDATE
Update the element which produces the event.

See Also:
Constant Field Values

REBUILD

public static final int REBUILD
Rebuild the element which produces the event.

See Also:
Constant Field Values

HERE_IS_OPENMATH

public static final int HERE_IS_OPENMATH
Give the OpenMath object of the formula.

See Also:
Constant Field Values

HERE_IS_MAPLE

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

ModelEvent

public ModelEvent(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.