fr.ove.openmath.jome.ctrlview.bidim.selection.events
Class SelectionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byfr.ove.openmath.jome.ctrlview.bidim.selection.events.SelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class SelectionEvent
extends java.util.EventObject

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

Version:
1.0 30/06/98
Author:
© 1998 DIRAT Laurent
See Also:
Serialized Form

Field Summary
static int ADD
          This action tells the selections manager to add an element.
static int GET_SELECTION
          This action tells the selections manager to give all the selected elements
static int GET_SELECTION_SIZE
          This action tells the selections manager to give the number of selected elements
static int LIST
          For debugg only.
static int PURGE
          This action tells the selections manager to remove all the elements it has.
static int REMOVE
          This action tells the selections manager to remove an element.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SelectionEvent(java.lang.Object src)
          The constructor.
 
Method Summary
 int getAction()
          Returns the action associated with the event.
 java.lang.Object getArgument()
          Returns the action argument.
 void setAction(int action, java.lang.Object argument)
          Sets the action to execute and its argument.
 void setArgument(java.lang.Object argument)
          Sets the action argument.
 
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

PURGE

public static final int PURGE
This action tells the selections manager to remove all the elements it has.

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
This action tells the selections manager to remove an element. (which will be given to him)

See Also:
Constant Field Values

ADD

public static final int ADD
This action tells the selections manager to add an element. (which will be given to him)

See Also:
Constant Field Values

GET_SELECTION_SIZE

public static final int GET_SELECTION_SIZE
This action tells the selections manager to give the number of selected elements

See Also:
Constant Field Values

GET_SELECTION

public static final int GET_SELECTION
This action tells the selections manager to give all the selected elements

See Also:
Constant Field Values

LIST

public static final int LIST
For debugg only. To list all the selected elements.

See Also:
Constant Field Values
Constructor Detail

SelectionEvent

public SelectionEvent(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 to execute and its argument.

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

getAction

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


getArgument

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


setArgument

public void setArgument(java.lang.Object argument)
Sets the action argument.

Parameters:
argument - the action argument.


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