public class AdminMessage extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
AdminMessage(String strTextKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nType,
boolean bCancelButton)
Creates a new instance of AppMessage
|
AdminMessage(String strTextKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nType,
boolean bCancelButton,
Map<String,Object> requestParameters)
Creates a new instance of AppMessage with request parameters
|
AdminMessage(String strTextKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nType,
boolean bCancelButton,
Map<String,Object> requestParameters,
String strBackUrl)
Creates a new instance of AppMessage with request parameters
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBackUrl() |
Map<String,Object> |
getRequestParameters()
Return the request parameters
|
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()
Return the type of message
|
String |
getUrl()
Returns the Url of the message box Ok button
|
boolean |
isCancel()
Return if the cancel button is display
|
void |
setBackUrl(String strBackUrl)
set the back url
|
void |
setCancel(boolean bCancel)
Set the display of cancel button
|
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 AdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton)
strTextKey - The message KeystrUrl - The default Button URLmessageArgs - The message argumentsstrTitleKey - The Title keystrTarget - The targetnType - The message TypebCancelButton - Add a Cancel Buttonpublic AdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton, Map<String,Object> requestParameters)
strTextKey - The message KeystrUrl - The default Button URLmessageArgs - The message argumentsstrTitleKey - The Title keystrTarget - The targetnType - The message TypebCancelButton - Add a Cancel ButtonrequestParameters - The Request parameters in a mappublic AdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton, Map<String,Object> requestParameters, String strBackUrl)
strTextKey - The message KeystrUrl - The default Button URLmessageArgs - The message argumentsstrTitleKey - The Title keystrTarget - The targetnType - The message TypebCancelButton - Add a Cancel ButtonrequestParameters - The Request parameters in a mapstrBackUrl - the back urlpublic int getType()
public boolean isCancel()
public void setCancel(boolean bCancel)
bCancel - the new bCancelpublic String getText(Locale locale)
locale - The current localepublic String getTitle(Locale locale)
locale - The current localepublic String getUrl()
public String getTarget()
public Map<String,Object> getRequestParameters()
public void setBackUrl(String strBackUrl)
strBackUrl - the back urlpublic String getBackUrl()
Copyright © 2020 City of Paris. All rights reserved.