org.apache.myfaces.shared.renderkit.html
Class HtmlMessageRendererBase

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.shared.renderkit.html.HtmlMessageRendererBase
Direct Known Subclasses:
HtmlMessagesRendererBase

public abstract class HtmlMessageRendererBase
extends HtmlRenderer

Version:
$Revision: 1307560 $ $Date: 2012-03-30 13:02:45 -0500 (Fri, 30 Mar 2012) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Constructor Summary
HtmlMessageRendererBase()
           
 
Method Summary
protected abstract  String getDetail(FacesContext facesContext, UIComponent message, FacesMessage facesMessage, String msgClientId)
           
protected  String getFor(UIComponent component)
           
static String[] getStyleAndStyleClass(UIComponent message, FacesMessage.Severity severity)
           
protected abstract  String getSummary(FacesContext facesContext, UIComponent message, FacesMessage facesMessage, String msgClientId)
           
protected  String getTitle(UIComponent component)
           
protected  boolean isRedisplay(UIComponent component)
           
protected  boolean isShowDetail(UIComponent component)
           
protected  boolean isShowSummary(UIComponent component)
           
protected  boolean isTooltip(UIComponent component)
           
protected  void renderMessage(FacesContext facesContext, UIComponent message)
           
protected  void renderMessage(FacesContext facesContext, UIComponent message, boolean alwaysRenderSpan)
           
protected  void renderMessage(FacesContext facesContext, UIComponent message, boolean alwaysRenderSpan, boolean renderDivWhenNoMessagesAndIdSet)
           
protected  void renderSingleFacesMessage(FacesContext facesContext, UIComponent message, FacesMessage facesMessage, String messageClientId)
           
protected  void renderSingleFacesMessage(FacesContext facesContext, UIComponent message, FacesMessage facesMessage, String messageClientId, boolean renderId)
           
protected  void renderSingleFacesMessage(FacesContext facesContext, UIComponent message, FacesMessage facesMessage, String messageClientId, boolean renderId, boolean renderStyleAndStyleClass)
           
protected  void renderSingleFacesMessage(FacesContext facesContext, UIComponent message, FacesMessage facesMessage, String messageClientId, boolean renderId, boolean renderStyleAndStyleClass, boolean wrapSpan)
           
 
Methods inherited from class org.apache.myfaces.shared.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, isCommonEventsOptimizationEnabled, isCommonPropertiesOptimizationEnabled, renderId, shouldRenderId, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlMessageRendererBase

public HtmlMessageRendererBase()
Method Detail

getSummary

protected abstract String getSummary(FacesContext facesContext,
                                     UIComponent message,
                                     FacesMessage facesMessage,
                                     String msgClientId)

getDetail

protected abstract String getDetail(FacesContext facesContext,
                                    UIComponent message,
                                    FacesMessage facesMessage,
                                    String msgClientId)

renderMessage

protected void renderMessage(FacesContext facesContext,
                             UIComponent message)
                      throws IOException
Throws:
IOException

renderMessage

protected void renderMessage(FacesContext facesContext,
                             UIComponent message,
                             boolean alwaysRenderSpan)
                      throws IOException
Throws:
IOException

renderMessage

protected void renderMessage(FacesContext facesContext,
                             UIComponent message,
                             boolean alwaysRenderSpan,
                             boolean renderDivWhenNoMessagesAndIdSet)
                      throws IOException
Parameters:
facesContext -
message -
alwaysRenderSpan - if true will render a span even if there is no message
Throws:
IOException

renderSingleFacesMessage

protected void renderSingleFacesMessage(FacesContext facesContext,
                                        UIComponent message,
                                        FacesMessage facesMessage,
                                        String messageClientId)
                                 throws IOException
Throws:
IOException

renderSingleFacesMessage

protected void renderSingleFacesMessage(FacesContext facesContext,
                                        UIComponent message,
                                        FacesMessage facesMessage,
                                        String messageClientId,
                                        boolean renderId)
                                 throws IOException
Throws:
IOException

renderSingleFacesMessage

protected void renderSingleFacesMessage(FacesContext facesContext,
                                        UIComponent message,
                                        FacesMessage facesMessage,
                                        String messageClientId,
                                        boolean renderId,
                                        boolean renderStyleAndStyleClass)
                                 throws IOException
Throws:
IOException

renderSingleFacesMessage

protected void renderSingleFacesMessage(FacesContext facesContext,
                                        UIComponent message,
                                        FacesMessage facesMessage,
                                        String messageClientId,
                                        boolean renderId,
                                        boolean renderStyleAndStyleClass,
                                        boolean wrapSpan)
                                 throws IOException
Throws:
IOException

getStyleAndStyleClass

public static String[] getStyleAndStyleClass(UIComponent message,
                                             FacesMessage.Severity severity)

getFor

protected String getFor(UIComponent component)

getTitle

protected String getTitle(UIComponent component)

isTooltip

protected boolean isTooltip(UIComponent component)

isShowSummary

protected boolean isShowSummary(UIComponent component)

isShowDetail

protected boolean isShowDetail(UIComponent component)

isRedisplay

protected boolean isRedisplay(UIComponent component)


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.