|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectides.api.core.WorkspaceMessage
public class WorkspaceMessage
Message sent by Workspace to classes that implement
WorkspaceSubscriber i.e. that subscribe to change notifications from
the workspace containing multiple discrete event system models.
| Field Summary | |
|---|---|
static int |
ADD
Addition of a model. |
static int |
MODIFY
Other change of the workspace which cannot be described as addition or removal of a model, such as switching the active model. |
static int |
REMOVE
Removal of a model. |
| Constructor Summary | |
|---|---|
WorkspaceMessage(java.lang.String name,
int eventType)
Creates a change notification message for the given model and event type. |
|
WorkspaceMessage(java.lang.String name,
int eventType,
java.lang.String messageText)
Creates a change notification message for the given model, event type and descriptive text. |
|
| Method Summary | |
|---|---|
int |
getEventType()
Returns the type of event that occurred. |
java.lang.String |
getMessageText()
Returns a string describing the message. |
java.lang.String |
getModelName()
Returns the name of the model that was changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ADD
public static final int REMOVE
public static final int MODIFY
| Constructor Detail |
|---|
public WorkspaceMessage(java.lang.String name,
int eventType,
java.lang.String messageText)
name - the model's nameeventType - ADD, REMOVE or MODIFYmessageText - descriptive message as a string
public WorkspaceMessage(java.lang.String name,
int eventType)
name - the model's nameeventType - ADD, REMOVE or MODIFY| Method Detail |
|---|
public int getEventType()
public java.lang.String getModelName()
public java.lang.String getMessageText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||