public class MEDCommandContainerEvent
extends java.util.EventObject
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ADDED
The flag that signals the ADD action.
|
protected CommandContainerInterface |
newContainer |
protected CommandContainerInterface |
oldContainer |
static int |
REMOVED
The flag that signals the ADD action.
|
static int |
REPLACED
The flag that signals the ADD action.
|
Constructor and Description |
---|
MEDCommandContainerEvent(MEDInterface med,
CommandContainerInterface newContainer,
CommandContainerInterface oldContainer,
int flag)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
added()
Return a boolean whether the event is an added-event.
|
int |
getAction()
Return the flag.
|
CommandContainerInterface |
getContainer()
Get the container that was handles.
|
MEDInterface |
getMED()
Get the MED.
|
CommandContainerInterface |
getPreviousContainer()
Return the removed or replaced container.
|
boolean |
removed()
Return a boolean whether the event is an removed-event.
|
boolean |
replaced()
Return a boolean whether the event is an replaced-event.
|
public static final int ADDED
public static final int REMOVED
public static final int REPLACED
protected CommandContainerInterface oldContainer
protected CommandContainerInterface newContainer
public MEDCommandContainerEvent(MEDInterface med, CommandContainerInterface newContainer, CommandContainerInterface oldContainer, int flag)
med
- The MED that initiate this event.newContianer
- The container that was handled.oldContianer
- The container that was replaced or remove.public CommandContainerInterface getContainer()
public CommandContainerInterface getPreviousContainer()
public MEDInterface getMED()
public boolean added()
public boolean removed()
public boolean replaced()
public int getAction()