Back to index

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

The event to send to all objects that implements the interface ControlListener and which want to execute the control actions. More...

Inheritance diagram for fr.ove.openmath.jome.ctrlview.events.ControlEvent:
Inheritance graph
[legend]
Collaboration diagram for fr.ove.openmath.jome.ctrlview.events.ControlEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ControlEvent (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 ICONIFY = 2
 Iconify the element which produces the event.
static final int UNICONIFY = 3
 Uniconify the element which produces the event.
static final int UNICONIFY_ALL = 4
 Recursive iconification.
static final int SUBSTITUTE = 5
 Substitue the selection by a friendly name.
static final int GIVE_OPENMATH = 6
 Ask the OpenMath object of the formula.
static final int GIVE_MAPLE = 7

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 ControlListener and which want to execute the control actions.

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

Definition at line 40 of file ControlEvent.java.


Constructor & Destructor Documentation

The constructor.

Parameters:
srcthe object which produces this event.

Definition at line 55 of file ControlEvent.java.

                                    {
        super(src);
    }

Member Function Documentation

Returns the action associated with the event.

Definition at line 73 of file ControlEvent.java.

                           {
        return action;
    }

Returns the argument of the action.

Definition at line 80 of file ControlEvent.java.

                                {
        return argument;
    }
void fr.ove.openmath.jome.ctrlview.events.ControlEvent.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 ControlEvent.java.

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

Member Data Documentation

The action to execute with the event.

Definition at line 44 of file ControlEvent.java.

The different actions associated with the event.


Add the element which produces the event.

Definition at line 91 of file ControlEvent.java.

The argument of the action to execute.

Definition at line 49 of file ControlEvent.java.

Definition at line 126 of file ControlEvent.java.

Ask the OpenMath object of the formula.

Definition at line 121 of file ControlEvent.java.

Iconify the element which produces the event.

Definition at line 101 of file ControlEvent.java.

Remove the element which produces the event.

Definition at line 96 of file ControlEvent.java.

Substitue the selection by a friendly name.

Definition at line 116 of file ControlEvent.java.

Uniconify the element which produces the event.

Definition at line 106 of file ControlEvent.java.

Recursive iconification.

Definition at line 111 of file ControlEvent.java.


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