|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.message.AdminMessage
public class AdminMessage
The class provides a bean to hold message box informations
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 Button
public 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 map
public 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 url| Method Detail |
|---|
public int getType()
public boolean isCancel()
public void setCancel(boolean bCancel)
bCancel - the new bCancelpublic String getText(Locale locale)
locale - The current locale
public String getTitle(Locale locale)
locale - The current locale
public String getUrl()
public String getTarget()
public Map<String,Object> getRequestParameters()
public void setBackUrl(String strBackUrl)
strBackUrl - the back urlpublic String getBackUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||