|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttemplates.diagram.TemplateDiagramMessage
public class TemplateDiagramMessage
Describes messages sent by TemplateDiagram to listeners for changes
(i.e., TemplateDiagramSubscribers).
| Field Summary | |
|---|---|
protected java.util.Collection<DiagramElement> |
elements
The DiagramElements affected by the change described by this
message. |
protected java.lang.String |
message
Text message. |
static int |
OP_ADD
Addition to the template diagram. |
static int |
OP_MODIFY
Modification of the template diagram which is not addition or removal. |
static int |
OP_REMOVE
Removal from the template diagram. |
protected int |
operationType
The type of the operation ( OP_ADD, OP_REMOVE or
OP_MODIFY) |
protected TemplateDiagram |
source
The source of the message. |
| Constructor Summary | |
|---|---|
TemplateDiagramMessage(TemplateDiagram source,
java.util.Collection<DiagramElement> elements,
int operationType)
Create a message with the given parameters. |
|
TemplateDiagramMessage(TemplateDiagram source,
java.util.Collection<DiagramElement> elements,
int operationType,
java.lang.String message)
Create a message with the given parameters. |
|
| Method Summary | |
|---|---|
java.util.Collection<DiagramElement> |
getElements()
Retrieve the DiagramElements affected by the change described by
this message. |
java.lang.String |
getMessage()
Retrieve the text message. |
int |
getOperationType()
Retrieve the type of the operation. |
TemplateDiagram |
getSource()
Retrieve the source of the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OP_ADD
public static final int OP_REMOVE
public static final int OP_MODIFY
protected TemplateDiagram source
protected java.util.Collection<DiagramElement> elements
DiagramElements affected by the change described by this
message.
protected int operationType
OP_ADD, OP_REMOVE or
OP_MODIFY)
protected java.lang.String message
| Constructor Detail |
|---|
public TemplateDiagramMessage(TemplateDiagram source,
java.util.Collection<DiagramElement> elements,
int operationType)
source - the source of the messageelements - the diagram elements affected by the changeoperationType - the type of the operation (OP_ADD, OP_REMOVE
or OP_MODIFY)
public TemplateDiagramMessage(TemplateDiagram source,
java.util.Collection<DiagramElement> elements,
int operationType,
java.lang.String message)
source - the source of the messageelements - the diagram elements affected by the changeoperationType - the type of the operation (OP_ADD, OP_REMOVE
or OP_MODIFY)message - text message| Method Detail |
|---|
public TemplateDiagram getSource()
public java.util.Collection<DiagramElement> getElements()
DiagramElements affected by the change described by
this message.
DiagramElements affected by the change described by
this messagepublic int getOperationType()
OP_ADD, OP_REMOVE or
OP_MODIFY)public java.lang.String getMessage()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||