Package com.uc4.api
Class MessageBox
- java.lang.Object
-
- com.uc4.api.MessageBox
-
public class MessageBox extends java.lang.ObjectThis class a represents a message box. A message box can be sent from the server as reply to a request. This class contains methods to get information about the message text.
-
-
Constructor Summary
Constructors Constructor Description MessageBox(int nr, java.lang.String insert, com.uc4.translate.Message translator)Constructs aMessageBox.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInsert()Returns the insert of this message.intgetNumber()Returns the number of this message.java.lang.StringgetText()Returns the translated message text.chargetType()Returns the type of the message.java.lang.StringtoString()
-
-
-
Method Detail
-
getInsert
public java.lang.String getInsert()
Returns the insert of this message.- Returns:
- insert
-
getNumber
public int getNumber()
Returns the number of this message.- Returns:
- number
-
getText
public java.lang.String getText()
Returns the translated message text. The messgage is translated using the logon language.- Returns:
- text
-
getType
public char getType()
Returns the type of the message.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. - Returns:
- type A,E,I,W,Q,C
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-