public class SiteMessage extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_BUTTON_BACK |
static int |
TYPE_BUTTON_CANCEL |
static int |
TYPE_BUTTON_HIDDEN |
static int |
TYPE_CONFIRMATION |
static int |
TYPE_ERROR |
static int |
TYPE_INFO |
static int |
TYPE_QUESTION |
static int |
TYPE_STOP |
static int |
TYPE_WARNING |
| Constructor and Description |
|---|
SiteMessage(String strTextKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nType,
int nTypeButton,
Map<String,Object> requestParameters,
String strBackUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBackUrl() |
Map<String,String> |
getRequestParameters() |
String |
getTarget()
Returns the Url of the message box Ok button
|
String |
getText(Locale locale)
Returns the localized text of the message
|
String |
getTitle(Locale locale)
Returns the localized text of the message
|
int |
getType()
Get the type of message
|
int |
getTypeButton() |
String |
getUrl()
Returns the Url of the message box Ok button
|
void |
setBackUrl(String strBackUrl)
set the back url
|
void |
setTypeButton(int nTypeButton) |
public static final int TYPE_INFO
public static final int TYPE_QUESTION
public static final int TYPE_ERROR
public static final int TYPE_WARNING
public static final int TYPE_CONFIRMATION
public static final int TYPE_STOP
public static final int TYPE_BUTTON_HIDDEN
public static final int TYPE_BUTTON_BACK
public static final int TYPE_BUTTON_CANCEL
public SiteMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, int nTypeButton, Map<String,Object> requestParameters, String strBackUrl)
strTextKey - I18n key for the message bodymessageArgs - Arguments for the strTextKey or nullstrTitleKey - I18n key for the message titlestrUrl - The url for the Ok buttonstrTarget - Target for the form (_blank, _self, ...)nType - Message type (TYPE_INFO, TYPE_QUESTION, ...)nTypeButton - Type of Cancel buttonrequestParameters - Request parameters as a MapstrBackUrl - the back urlpublic int getType()
public String getText(Locale locale)
locale - The current localepublic String getTitle(Locale locale)
locale - The current localepublic String getUrl()
public String getTarget()
public int getTypeButton()
public void setTypeButton(int nTypeButton)
nTypeButton - The Type of cancel buttonpublic Map<String,String> getRequestParameters()
public void setBackUrl(String strBackUrl)
strBackUrl - the back urlpublic String getBackUrl()
Copyright © 2020 City of Paris. All rights reserved.