|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttemplates.model.TemplateModelMessage
public class TemplateModelMessage
Message sent by a TemplateModel to notify listeners of changes to the
model.
| Field Summary | |
|---|---|
static int |
ELEMENT_COMPONENT
Concerning a TemplateComponent. |
static int |
ELEMENT_LINK
Concerning a TemplateLink. |
protected long |
elementId
The id of the element (component or link). |
protected int |
elementType
The type of the element ( ELEMENT_COMPONENT or
ELEMENT_LINK). |
protected java.lang.String |
message
Text message. |
static int |
OP_ADD
Addition to the model. |
static int |
OP_MODIFY
Modification of the model which is not addition or removal. |
static int |
OP_REMOVE
Removal from the model. |
protected int |
operationType
The type of the operation ( OP_ADD, OP_REMOVE or
OP_MODIFY). |
protected TemplateModel |
source
The source of the message. |
| Constructor Summary | |
|---|---|
TemplateModelMessage(TemplateModel source,
long elementId,
int elementType,
int operationType)
Create a message with the given parameters and a null text
message. |
|
TemplateModelMessage(TemplateModel source,
long elementId,
int elementType,
int operationType,
java.lang.String message)
Create a message with the given parameters. |
|
| Method Summary | |
|---|---|
long |
getElementId()
Retrieve the id of the element. |
int |
getElementType()
Retrieve the type of the element. |
java.lang.String |
getMessage()
Retrieve the text message. |
int |
getOperationType()
Retrieve the type of the operation. |
TemplateModel |
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
public static final int ELEMENT_COMPONENT
TemplateComponent.
public static final int ELEMENT_LINK
TemplateLink.
protected TemplateModel source
protected long elementId
protected int elementType
ELEMENT_COMPONENT or
ELEMENT_LINK).
protected int operationType
OP_ADD, OP_REMOVE or
OP_MODIFY).
protected java.lang.String message
| Constructor Detail |
|---|
public TemplateModelMessage(TemplateModel source,
long elementId,
int elementType,
int operationType,
java.lang.String message)
source - the source of the messageelementId - the id of the elementelementType - the type of the element (ELEMENT_COMPONENT or
ELEMENT_LINK)operationType - the type of the operation (OP_ADD, OP_REMOVE
or OP_MODIFY)message - text message
public TemplateModelMessage(TemplateModel source,
long elementId,
int elementType,
int operationType)
null text
message.
source - the source of the messageelementId - the id of the elementelementType - the type of the element (ELEMENT_COMPONENT or
ELEMENT_LINK)operationType - the type of the operation (OP_ADD, OP_REMOVE
or OP_MODIFY)| Method Detail |
|---|
public TemplateModel getSource()
public long getElementId()
public int getElementType()
ELEMENT_COMPONENT or
ELEMENT_LINK)public 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 | |||||||||