Back to index

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

The event to send to all objects that implements the interface SlectionEventListener and which want to maintain a list of selected elements. More...

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

List of all members.

Public Member Functions

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

Static Public Attributes

static final int PURGE = 0
 The different actions associated with the event.
static final int REMOVE = 1
 This action tells the selections manager to remove an element.
static final int ADD = 2
 This action tells the selections manager to add an element.
static final int GET_SELECTION_SIZE = 3
 This action tells the selections manager to give the number of selected elements.
static final int GET_SELECTION = 4
 This action tells the selections manager to give all the selected elements.
static final int LIST = 10
 For debugg only.

Private Attributes

int action
 The action to execute by sending the event.
Object argument
 The object which has been selected.

Detailed Description

The event to send to all objects that implements the interface SlectionEventListener and which want to maintain a list of selected elements.

Author:
1998 DIRAT Laurent
Version:
1.0 30/06/98

Definition at line 40 of file SelectionEvent.java.


Constructor & Destructor Documentation

The constructor.

Parameters:
srcthe object which produces this event.

Definition at line 55 of file SelectionEvent.java.

                                      {
        super(src);
    }

Member Function Documentation

Returns the action associated with the event.

Definition at line 74 of file SelectionEvent.java.

                           {
        return action;
    }

Here is the caller graph for this function:

Returns the action argument.

Definition at line 81 of file SelectionEvent.java.

                                {
        return argument;
    }

Here is the caller graph for this function:

void fr.ove.openmath.jome.ctrlview.bidim.selection.events.SelectionEvent.setAction ( int  action,
Object  argument 
) [inline]

Sets the action to execute and its argument.

Parameters:
actionthe action.
argumentthe argument.
In the case of the actions GET_SELECTION and GET_SELECTION_SIZE, arguments will serve as well as the return value

Definition at line 66 of file SelectionEvent.java.

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

Sets the action argument.

Parameters:
argumentthe action argument.

Definition at line 89 of file SelectionEvent.java.

                                             {
        this.argument = argument;
    }

Here is the caller graph for this function:


Member Data Documentation

The action to execute by sending the event.

Definition at line 44 of file SelectionEvent.java.

This action tells the selections manager to add an element.

(which will be given to him)

Definition at line 112 of file SelectionEvent.java.

The object which has been selected.

Definition at line 49 of file SelectionEvent.java.

This action tells the selections manager to give all the selected elements.

Definition at line 123 of file SelectionEvent.java.

This action tells the selections manager to give the number of selected elements.

Definition at line 118 of file SelectionEvent.java.

For debugg only.

To list all the selected elements.

Definition at line 128 of file SelectionEvent.java.

The different actions associated with the event.


This action tells the selections manager to remove all the elements it has.

Definition at line 100 of file SelectionEvent.java.

This action tells the selections manager to remove an element.

(which will be given to him)

Definition at line 106 of file SelectionEvent.java.


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