|
||||||||||
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(java.lang.String strTextKey,
java.lang.Object[] messageArgs,
java.lang.String strTitleKey,
java.lang.String strUrl,
java.lang.String strTarget,
int nType,
boolean bCancelButton)
Deprecated. |
|
SiteMessage(java.lang.String strTextKey,
java.lang.Object[] messageArgs,
java.lang.String strTitleKey,
java.lang.String strUrl,
java.lang.String strTarget,
int nType,
int nTypeButton,
java.util.Map<java.lang.String,java.lang.Object> requestParameters,
java.lang.String strBackUrl)
|
Method Summary | |
---|---|
java.lang.String |
getBackUrl()
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestParameters()
|
java.lang.String |
getTarget()
Returns the Url of the message box Ok button |
java.lang.String |
getText(java.util.Locale locale)
Returns the localized text of the message |
java.lang.String |
getTitle(java.util.Locale locale)
Returns the localized text of the message |
int |
getType()
Get the type of message |
int |
getTypeButton()
|
java.lang.String |
getUrl()
Returns the Url of the message box Ok button |
boolean |
isCancel()
Deprecated. |
void |
setBackUrl(java.lang.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(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nType, int nTypeButton, java.util.Map<java.lang.String,java.lang.Object> requestParameters, java.lang.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(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.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 java.lang.String getText(java.util.Locale locale)
locale
- The current locale
public java.lang.String getTitle(java.util.Locale locale)
locale
- The current locale
public java.lang.String getUrl()
public java.lang.String getTarget()
public int getTypeButton()
public void setTypeButton(int nTypeButton)
nTypeButton
- The Type of cancel buttonpublic java.util.Map<java.lang.String,java.lang.String> getRequestParameters()
public void setBackUrl(java.lang.String _strBackUrl)
_strBackUrl
- the back urlpublic java.lang.String getBackUrl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |