org.apache.myfaces.trinidad.util
Class LabeledFacesMessage
java.lang.Object
javax.faces.application.FacesMessage
org.apache.myfaces.trinidad.util.LabeledFacesMessage
- All Implemented Interfaces:
- Serializable
public class LabeledFacesMessage
- extends javax.faces.application.FacesMessage
Extension to FacesMessage which keeps track of the label on the component
that generated the message.
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-api/src/main/java/oracle/adf/view/faces/util/LabeledFacesMessage.java#0 $) $Date: 10-nov-2005.19:08:38 $
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.faces.application.FacesMessage |
javax.faces.application.FacesMessage.Severity |
Fields inherited from class javax.faces.application.FacesMessage |
FACES_MESSAGES, SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO, SEVERITY_WARN, VALUES, VALUES_MAP |
Method Summary |
Object |
getLabel()
Returns the label, which can be either a String or a ValueBinding. |
String |
getLabelAsString(javax.faces.context.FacesContext context)
Gets a string representation of the label. |
void |
setLabel(Object label)
Sets the label, which can be either a String or a ValueBinding. |
Methods inherited from class javax.faces.application.FacesMessage |
getDetail, getSeverity, getSummary, isRendered, rendered, setDetail, setSeverity, setSummary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabeledFacesMessage
public LabeledFacesMessage()
LabeledFacesMessage
public LabeledFacesMessage(javax.faces.application.FacesMessage.Severity severity,
String summary,
String detail)
- Creates a LabeledFacesMessage without a pre-set label.
- Parameters:
severity
- the severity of the messagesummary
- the message summarydetail
- the message detail
LabeledFacesMessage
public LabeledFacesMessage(javax.faces.application.FacesMessage.Severity severity,
String summary,
String detail,
Object label)
- Creates a LabeledFacesMessage with a label.
- Parameters:
severity
- the severity of the messagesummary
- the message summarydetail
- the message detaillabel
- the message label - either a String or a ValueBinding
getLabel
public Object getLabel()
- Returns the label, which can be either a String or a ValueBinding.
setLabel
public void setLabel(Object label)
- Sets the label, which can be either a String or a ValueBinding.
getLabelAsString
public String getLabelAsString(javax.faces.context.FacesContext context)
- Gets a string representation of the label. If the label
is a ValueBinding, the expression is evaluated and the string
value returned.
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.