fr.paris.lutece.portal.service.message
Class AdminMessage

java.lang.Object
  extended by fr.paris.lutece.portal.service.message.AdminMessage

public class AdminMessage
extends java.lang.Object

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(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nType, boolean bCancelButton)
          Creates a new instance of AppMessage
 
Method Summary
 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()
           
 java.lang.String getUrl()
          Returns the Url of the message box Ok button
 boolean isCancel()
           
 void setCancel(boolean bCancel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_INFO

public static final int TYPE_INFO
See Also:
Constant Field Values

TYPE_QUESTION

public static final int TYPE_QUESTION
See Also:
Constant Field Values

TYPE_ERROR

public static final int TYPE_ERROR
See Also:
Constant Field Values

TYPE_WARNING

public static final int TYPE_WARNING
See Also:
Constant Field Values

TYPE_CONFIRMATION

public static final int TYPE_CONFIRMATION
See Also:
Constant Field Values

TYPE_STOP

public static final int TYPE_STOP
See Also:
Constant Field Values
Constructor Detail

AdminMessage

public AdminMessage(java.lang.String strTextKey,
                    java.lang.Object[] messageArgs,
                    java.lang.String strTitleKey,
                    java.lang.String strUrl,
                    java.lang.String strTarget,
                    int nType,
                    boolean bCancelButton)
Creates a new instance of AppMessage

Method Detail

getType

public int getType()

isCancel

public boolean isCancel()

setCancel

public void setCancel(boolean bCancel)

getText

public java.lang.String getText(java.util.Locale locale)
Returns the localized text of the message

Parameters:
locale - The current locale
Returns:
The localized text of the message

getTitle

public java.lang.String getTitle(java.util.Locale locale)
Returns the localized text of the message

Parameters:
locale - The current locale
Returns:
The localized text of the message

getUrl

public java.lang.String getUrl()
Returns the Url of the message box Ok button

Returns:
the Url of the Ok button

getTarget

public java.lang.String getTarget()
Returns the Url of the message box Ok button

Returns:
the Url of the Ok button


Copyright © 2007 Mairie de Paris. All Rights Reserved.