All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.mb.MBModelChangeEvent

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

public class MBModelChangeEvent
extends EventObject
implements Serializable
This class defines the event that describes changes to the ManagedBean. An ADD event indicates that MBElements were added to the Model. A DELETE event indicates that MBElements were deleted from the Model. A MODIFY event indicates that MBElements in the ManagedBean were modified.

See Also:
ManagedBean, MBModelChangeListener, MBElement

Variable Index

 o ADD
Indicates that an MBElement was added to the ManagedBean.
 o DELETE
Indicates that an MBElement was deleted from the ManagedBean.
 o MODIFY
Indicates that an MBElement was modified in the ManagedBean.

Constructor Index

 o MBModelChangeEvent(ManagedBean, int, MBElement)
Constructs an event around the specified parameters.
 o MBModelChangeEvent(ManagedBean, int, Vector)
Constructs an event around the specified parameters.

Method Index

 o getID()
Returns the ID of this event (ADD, DELETE, or MODIFY).
 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 an MBElement was added to the ManagedBean.

 o DELETE
 public static final int DELETE
Indicates that an MBElement was deleted from the ManagedBean.

 o MODIFY
 public static final int MODIFY
Indicates that an MBElement was modified in the ManagedBean.

Constructors

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

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

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

Methods

 o getID
 public int getID()
Returns the ID of this event (ADD, DELETE, or MODIFY).

Returns:
ADD, DELETE, or MODIFY.
 o getMBElements
 public Vector getMBElements()
Returns A Vector of the MBElements wrapped by this event.

Returns:
A 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