|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces.application
|
Nested Class Summary | |
---|---|
static class |
FacesMessage.Severity
Class used to represent message severity levels in a typesafe enumeration. |
Field Summary | |
---|---|
static String |
FACES_MESSAGES
ResourceBundle identifier for messages whose
message identifiers are defined in the JavaServer Faces
specification. |
static FacesMessage.Severity |
SEVERITY_ERROR
Message severity level indicating that an error has occurred. |
static FacesMessage.Severity |
SEVERITY_FATAL
Message severity level indicating that a serious error has occurred. |
static FacesMessage.Severity |
SEVERITY_INFO
Message severity level indicating an informational message rather than an error. |
static FacesMessage.Severity |
SEVERITY_WARN
Message severity level indicating that an error might have occurred. |
static List |
VALUES
Immutable List of valid FacesMessage.Severity
instances, in ascending order of their ordinal value. |
static Map |
VALUES_MAP
Immutable Map of valid FacesMessage.Severity
instances, keyed by name. |
Constructor Summary | |
---|---|
FacesMessage()
Construct a new FacesMessage with no initial
values. |
|
FacesMessage(FacesMessage.Severity severity,
String summary,
String detail)
Construct a new FacesMessage with the specified
initial values. |
|
FacesMessage(String summary)
Construct a new FacesMessage with just a summary. |
|
FacesMessage(String summary,
String detail)
Construct a new FacesMessage with the specified initial
values. |
Method Summary | |
---|---|
String |
getDetail()
Return the localized detail text. |
FacesMessage.Severity |
getSeverity()
Return the severity level. |
String |
getSummary()
Return the localized summary text. |
void |
setDetail(String detail)
Set the localized detail text. |
void |
setSeverity(FacesMessage.Severity severity)
Set the severity level. |
void |
setSummary(String summary)
Set the localized summary text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FACES_MESSAGES
ResourceBundle
identifier for messages whose
message identifiers are defined in the JavaServer Faces
specification.
public static final FacesMessage.Severity SEVERITY_INFO
Message severity level indicating an informational message rather than an error.
public static final FacesMessage.Severity SEVERITY_WARN
Message severity level indicating that an error might have occurred.
public static final FacesMessage.Severity SEVERITY_ERROR
Message severity level indicating that an error has occurred.
public static final FacesMessage.Severity SEVERITY_FATAL
Message severity level indicating that a serious error has occurred.
public static final List VALUES
Immutable List
of valid FacesMessage.Severity
instances, in ascending order of their ordinal value.
public static final Map VALUES_MAP
Immutable Map
of valid FacesMessage.Severity
instances, keyed by name.
Constructor Detail |
---|
public FacesMessage()
Construct a new FacesMessage
with no initial
values. The severity is set to Severity.INFO.
public FacesMessage(String summary)
Construct a new FacesMessage
with just a summary. The
detail is null
, the severity is set to
Severity.INFO
.
public FacesMessage(String summary, String detail)
Construct a new FacesMessage
with the specified initial
values. The severity is set to Severity.INFO.
summary
- Localized summary message textdetail
- Localized detail message text
IllegalArgumentException
- if the specified severity level
is not one of the supported valuespublic FacesMessage(FacesMessage.Severity severity, String summary, String detail)
Construct a new FacesMessage
with the specified
initial values.
severity
- the severitysummary
- Localized summary message textdetail
- Localized detail message text
IllegalArgumentException
- if the specified severity level
is not one of the supported valuesMethod Detail |
---|
public String getDetail()
Return the localized detail text. If no localized detail text has been defined for this message, return the localized summary text instead.
public void setDetail(String detail)
Set the localized detail text.
detail
- The new localized detail textpublic FacesMessage.Severity getSeverity()
Return the severity level.
public void setSeverity(FacesMessage.Severity severity)
Set the severity level.
severity
- The new severity level
IllegalArgumentException
- if the specified severity level
is not one of the supported valuespublic String getSummary()
Return the localized summary text.
public void setSummary(String summary)
Set the localized summary text.
summary
- The new localized summary text