@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public class WebappMessage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_TYPE_CUSTOM
A message type that is the lowest designed to be intercepted by the
plugin code on the client side and displayed in a custom way.
|
static int |
MESSAGE_TYPE_ERROR
Message type error.
|
static int |
MESSAGE_TYPE_INFO
Message type info.
|
static int |
MESSAGE_TYPE_RESULT_VALUE
This message represents a return value from an WebappAuthorOperation.
|
static int |
MESSAGE_TYPE_SYSTEM_APPLICATION
A message type that should be handled by the webapp
to open the url in the system application as it cannot
be opened server-side.
|
static int |
MESSAGE_TYPE_WARN
Message type warning.
|
Constructor and Description |
---|
WebappMessage(int type,
java.lang.String title,
java.lang.String message,
boolean isUserGenerated)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage() |
java.lang.String |
getTitle() |
int |
getType() |
int |
hashCode() |
boolean |
isUserGenerated() |
java.lang.String |
toString() |
public static final int MESSAGE_TYPE_RESULT_VALUE
public static final int MESSAGE_TYPE_SYSTEM_APPLICATION
public static final int MESSAGE_TYPE_INFO
public static final int MESSAGE_TYPE_WARN
public static final int MESSAGE_TYPE_ERROR
public static final int MESSAGE_TYPE_CUSTOM
public WebappMessage(int type, java.lang.String title, java.lang.String message, boolean isUserGenerated)
type
- Message type.title
- Message title.message
- Message body.isUserGenerated
- true
if the message was generated by the user and
should be presented in UI.public java.lang.String getMessage()
public java.lang.String getTitle()
public int getType()
public boolean isUserGenerated()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.