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
-
ADD
- Indicates that an MBElement was added to the ManagedBean.
-
DELETE
- Indicates that an MBElement was deleted from the ManagedBean.
-
MODIFY
- Indicates that an MBElement was modified in the ManagedBean.
-
MBModelChangeEvent(ManagedBean, int, MBElement)
-
Constructs an event around the specified
parameters.
-
MBModelChangeEvent(ManagedBean, int, Vector)
-
Constructs an event around the specified
parameters.
-
getID()
- Returns the ID of this event (ADD, DELETE, or MODIFY).
-
getManagedBean()
- Returns a reference to the ManagedBean that generated this event.
-
getMBElements()
- Returns A Vector of the MBElements wrapped by this event.
ADD
public static final int ADD
- Indicates that an MBElement was added to the ManagedBean.
DELETE
public static final int DELETE
- Indicates that an MBElement was deleted from the ManagedBean.
MODIFY
public static final int MODIFY
- Indicates that an MBElement was modified in the ManagedBean.
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
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
getID
public int getID()
- Returns the ID of this event (ADD, DELETE, or MODIFY).
- Returns:
- ADD, DELETE, or MODIFY.
getMBElements
public Vector getMBElements()
- Returns A Vector of the MBElements wrapped by this event.
- Returns:
- A Vector of MBElements.
- See Also:
- MBElement
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