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 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabeledFacesMessage
public LabeledFacesMessage()
LabeledFacesMessage
public LabeledFacesMessage(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(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(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-2011 The Apache Software Foundation. All Rights Reserved.