public class MessageBox
extends java.lang.Object
Constructor and Description |
---|
MessageBox(int nr,
java.lang.String insert,
com.uc4.translate.Message translator)
Constructs a
MessageBox . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInsert()
Returns the insert of this message.
|
int |
getNumber()
Returns the number of this message.
|
java.lang.String |
getText()
Returns the translated message text.
|
char |
getType()
Returns the type of the message.
|
java.lang.String |
toString() |
public MessageBox(int nr, java.lang.String insert, com.uc4.translate.Message translator)
MessageBox
.nr
- Message numberinsert
- Message inserttranslator
- translatorpublic java.lang.String getInsert()
public int getNumber()
public java.lang.String getText()
public char getType()
Return value | Description |
I | Info message. An info message means that there was no error. |
E | Error message, if a message box with "E" is returned the request was not executed successfully. |
A | Abort, same meaning as E (error). |
W | Warning. In this case the response can be empty or truncated. A search which returns too many rows is one case where a message box with type "W" is returned in addition to the data. |
Q | Question. In many cases this can be solved by re-sending the API request with different parameters.
Example: Opening an object which has already been opened by another user returns
U4006501 Object '?' is being edited by user '?' since '?'. \Do you want to open it for read only?
To open the object read only (= reply yes) the OpenObject request should be sent with the read only flag set. |
C | Caption, this type is used for labels and menu items. It is normally not used in message boxes. |
public java.lang.String toString()
toString
in class java.lang.Object