All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.mb.MBSelectionChangeEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.beans.mb.MBSelectionChangeEvent

public class MBSelectionChangeEvent
extends EventObject
implements Serializable
This class defines an event that describes changes to the current selection of MBElements in a ManagedBean. An ADD event indicates that a new selection has taken place.

See Also:
ManagedBean, MBSelectionChangeListener, MBElement

Variable Index

 o ADD
Indicates that a new selection has occurred.

Constructor Index

 o MBSelectionChangeEvent(ManagedBean, int, MBElement)
Constructs an event around the given parameters.
 o MBSelectionChangeEvent(ManagedBean, int, Vector)
Constructs an event around the given parameters.

Method Index

 o getID()
Returns the ID of this event (ADD).
 o getManagedBean()
Returns a reference to the ManagedBean that generated this event.
 o getMBElements()
Returns a Vector of the MBElements wrapped by this event.

Variables

 o ADD
 public static final int ADD
Indicates that a new selection has occurred.

Constructors

 o MBSelectionChangeEvent
 public MBSelectionChangeEvent(ManagedBean source,
                               int id,
                               Vector mbElements)
Constructs an event around the given parameters. This constructor accepts a Vector of MBElements.

Parameters:
source - The ManagedBean that is distributing this event.
id - ADD.
mbElements - Vector of MBElements that are the subject of this event.
See Also:
ManagedBean, MBSelectionChangeListener, MBElement
 o MBSelectionChangeEvent
 public MBSelectionChangeEvent(ManagedBean source,
                               int id,
                               MBElement mbElement)
Constructs an event around the given parameters. This constructor accepts a single MBElement.

Parameters:
source - The ManagedBean that is distributing this event.
id - ADD.
mbElement - MBElement that is the subject of this event.
See Also:
ManagedBean, MBSelectionChangeListener, MBElement

Methods

 o getID
 public int getID()
Returns the ID of this event (ADD).

Returns:
ADD.
 o getMBElements
 public Vector getMBElements()
Returns a Vector of the MBElements wrapped by this event.

Returns:
The Vector of MBElements.
See Also:
MBElement
 o getManagedBean
 public ManagedBean getManagedBean()
Returns a reference to the ManagedBean that generated this event.

Returns:
The ManagedBean that generated this Event.
See Also:
ManagedBean

All Packages  Class Hierarchy  This Package  Previous  Next  Index