|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.message.SiteMessage
public class SiteMessage
The class provides a bean to hold message box informations
Field Summary | |
---|---|
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 Summary | |
---|---|
SiteMessage(String strTextKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nType,
boolean bCancelButton)
Deprecated. |
|
SiteMessage(String strTextKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nType,
int nTypeButton,
Map<String,Object> requestParameters,
String strBackUrl)
|
Method Summary | |
---|---|
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 |
boolean |
isCancel()
Deprecated. |
void |
setBackUrl(String strBackUrl)
set the back url |
void |
setCancel(boolean bCancel)
Deprecated. |
void |
setTypeButton(int nTypeButton)
|
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
public static final int TYPE_BUTTON_HIDDEN
public static final int TYPE_BUTTON_BACK
public static final int TYPE_BUTTON_CANCEL
Constructor Detail |
---|
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 SiteMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton)
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, ...)bCancelButton
- True if Cancel button is necessaryMethod Detail |
---|
public int getType()
public boolean isCancel()
public void setCancel(boolean bCancel)
bCancel
- True if Cancel button is required (set with default type)public String getText(Locale locale)
locale
- The current locale
public String getTitle(Locale locale)
locale
- The current locale
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |