Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Attributes | Private Attributes
fr.ove.openmath.jome.model.events.ModelEvent Class Reference

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. More...

Inheritance diagram for fr.ove.openmath.jome.model.events.ModelEvent:
Inheritance graph
[legend]
Collaboration diagram for fr.ove.openmath.jome.model.events.ModelEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ModelEvent (Object src)
 The constructor.
void setAction (int action, Object argument)
 Sets the action and its argument, if necessary, to execute to the event.
int getAction ()
 Returns the action associated with the event.
Object getArgument ()
 Returns the argument of the action.

Static Public Attributes

static final int ADD = 0
 The different actions associated with the event.
static final int REMOVE = 1
 Remove the element which produces the event.
static final int MOVE = 2
 Remove the element which produces the event.
static final int CREATE = 10
 Create the display for the instance which produces the event.
static final int CLEAR = 6
static final int UPDATE = 3
 Update the element which produces the event.
static final int REBUILD = 7
 Rebuild the element which produces the event.
static final int HERE_IS_OPENMATH = 4
 Give the OpenMath object of the formula.
static final int HERE_IS_MAPLE = 5

Private Attributes

int action
 The action to execute with the event.
Object argument
 The argument of the action to execute.

Detailed Description

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.

Author:
1998 DIRAT Laurent
Version:
1.0 09/07/98

Definition at line 40 of file ModelEvent.java.


Constructor & Destructor Documentation

The constructor.

Parameters:
srcthe object which produces this event.

Definition at line 55 of file ModelEvent.java.

                                  {
        super(src);
    }

Member Function Documentation

Returns the action associated with the event.

Definition at line 73 of file ModelEvent.java.

                           {
        return action;
    }

Here is the caller graph for this function:

Returns the argument of the action.

Definition at line 80 of file ModelEvent.java.

                                {
        return argument;
    }

Here is the caller graph for this function:

void fr.ove.openmath.jome.model.events.ModelEvent.setAction ( int  action,
Object  argument 
) [inline]

Sets the action and its argument, if necessary, to execute to the event.

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

Definition at line 65 of file ModelEvent.java.

                                                       {
        this.action = action;
        this.argument = argument;
    }

Here is the caller graph for this function:


Member Data Documentation

The action to execute with the event.

Definition at line 44 of file ModelEvent.java.

The different actions associated with the event.


Add the element which produces the event.

Definition at line 91 of file ModelEvent.java.

The argument of the action to execute.

Definition at line 49 of file ModelEvent.java.

Definition at line 111 of file ModelEvent.java.

Create the display for the instance which produces the event.

Definition at line 106 of file ModelEvent.java.

Definition at line 136 of file ModelEvent.java.

Give the OpenMath object of the formula.

Definition at line 131 of file ModelEvent.java.

Remove the element which produces the event.

Definition at line 101 of file ModelEvent.java.

Rebuild the element which produces the event.

Definition at line 126 of file ModelEvent.java.

Remove the element which produces the event.

Definition at line 96 of file ModelEvent.java.

Update the element which produces the event.

Definition at line 121 of file ModelEvent.java.


The documentation for this class was generated from the following file: