com.sun.rave.web.ui.renderer
Class PageAlertRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.rave.web.ui.renderer.AbstractRenderer
          extended by com.sun.rave.web.ui.renderer.PageAlertRenderer

public class PageAlertRenderer
extends AbstractRenderer

Renders a full page alert.


Field Summary
static java.lang.String PAGETITLE_BUTTON_FACET
          Content Page Title Button facet
 
Fields inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
BUNDLE, EVENTS_ATTRIBUTES, I18N_ATTRIBUTES
 
Constructor Summary
PageAlertRenderer()
          Creates a new instance of MastheadRenderer
 
Method Summary
protected  void renderAlert(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)
          Renders alert - summary message, detail message and any input components contained in the facet.
protected  void renderAlertDetail(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Theme theme, javax.faces.context.ResponseWriter writer)
          Renders detsil summary message
protected  void renderAlertIcon(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Theme theme, javax.faces.context.ResponseWriter writer)
          Renders PageAlert Icon
protected  void renderAlertSummary(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Theme theme, javax.faces.context.ResponseWriter writer)
          Renders alert summary message
protected  void renderEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer)
          Render the full page alert.
 
Methods inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer
addBooleanAttributes, addCoreAttributes, addIntegerAttributes, addStringAttributes, decode, encodeBegin, encodeChildren, encodeEnd, getApplication, getAsObject, getAsString, getExternalContext, getFacesContext, getSubmittedValue, isDisabled, isPortlet, isReadOnly, renderAttributes, renderMarkup, renderStart, setSubmittedValue
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGETITLE_BUTTON_FACET

public static final java.lang.String PAGETITLE_BUTTON_FACET
Content Page Title Button facet

See Also:
Constant Field Values
Constructor Detail

PageAlertRenderer

public PageAlertRenderer()
Creates a new instance of MastheadRenderer

Method Detail

renderEnd

protected void renderEnd(javax.faces.context.FacesContext context,
                         javax.faces.component.UIComponent component,
                         javax.faces.context.ResponseWriter writer)
                  throws java.io.IOException
Render the full page alert.

Overrides:
renderEnd in class AbstractRenderer
Parameters:
context - The current FacesContext
component - The ImageComponent object to use
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurss

renderAlertSummary

protected void renderAlertSummary(javax.faces.context.FacesContext context,
                                  javax.faces.component.UIComponent component,
                                  Theme theme,
                                  javax.faces.context.ResponseWriter writer)
                           throws java.io.IOException
Renders alert summary message

Parameters:
context - The current FacesContext
component - The Alert object to use
theme - The Theme to use
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs

renderAlertDetail

protected void renderAlertDetail(javax.faces.context.FacesContext context,
                                 javax.faces.component.UIComponent component,
                                 Theme theme,
                                 javax.faces.context.ResponseWriter writer)
                          throws java.io.IOException
Renders detsil summary message

Parameters:
context - The current FacesContext
component - The Alert object to use
theme - The Theme to use
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs

renderAlertIcon

protected void renderAlertIcon(javax.faces.context.FacesContext context,
                               javax.faces.component.UIComponent component,
                               Theme theme,
                               javax.faces.context.ResponseWriter writer)
                        throws java.io.IOException
Renders PageAlert Icon

Parameters:
context - The current FacesContext
component - The Alert object to use
theme - The Theme to use
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs

renderAlert

protected void renderAlert(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component,
                           javax.faces.context.ResponseWriter writer)
                    throws java.io.IOException
Renders alert - summary message, detail message and any input components contained in the facet.

Parameters:
context - The current FacesContext
component - The Alert object to use
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs