ZMObject
└─ZMMessage
public class ZMMessage
extends ZMObject
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMMessage(string text, string type, string ref) Create new message. |
|
| Method Summary | |
|---|---|
| string | getRef() Get the message reference. |
| string | getText() Get the message text. |
| string | getType() Get the message type. |
| void | setRef(string ref) Set the message reference. |
| void | setText(string text) Set the message text. |
| void | setType(string type) Set the message type. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMMessage(string text, string type, string ref)
Create new message.
ZMMessages::REF_GLOBAL.public string getRef()
Get the message reference.
public string getText()
Get the message text.
public string getType()
Get the message type.
public void setRef(string ref)
Set the message reference.
public void setText(string text)
Set the message text.
public void setType(string type)
Set the message type.
A single message.
References can be anything, but usually would be a field number if it is a validation message. Everything else typically would be
null.Note: The message text needs ot be localised.