org.apache.myfaces.html5.renderkit.media
Class AbstractMediaRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.html5.renderkit.media.AbstractMediaRenderer
Direct Known Subclasses:
AudioRenderer, VideoRenderer

public abstract class AbstractMediaRenderer
extends javax.faces.render.Renderer

Abstract base for media renderers.

Author:
Ali Ok

Field Summary
protected static String FACET_FALLBACK
           
 
Constructor Summary
AbstractMediaRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected abstract  Map<String,String> getPassThroughAttributes()
           
protected abstract  Map<String,String> getPassThroughClientBehaviorEvents()
           
 boolean getRendersChildren()
           
protected  void renderFallbackFacet(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected  void renderMediaSources(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
          Renders extracted media sources.
protected  void renderPassThruAttrsAndEvents(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACET_FALLBACK

protected static final String FACET_FALLBACK
See Also:
Constant Field Values
Constructor Detail

AbstractMediaRenderer

public AbstractMediaRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent uiComponent)
                 throws IOException
Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
IOException

renderPassThruAttrsAndEvents

protected void renderPassThruAttrsAndEvents(javax.faces.context.FacesContext facesContext,
                                            javax.faces.component.UIComponent uiComponent)
                                     throws IOException
Throws:
IOException

getPassThroughClientBehaviorEvents

protected abstract Map<String,String> getPassThroughClientBehaviorEvents()

getPassThroughAttributes

protected abstract Map<String,String> getPassThroughAttributes()

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIComponent uiComponent)
                    throws IOException
Overrides:
encodeChildren in class javax.faces.render.Renderer
Throws:
IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component)
               throws IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
IOException

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

renderMediaSources

protected void renderMediaSources(javax.faces.context.FacesContext facesContext,
                                  javax.faces.component.UIComponent uiComponent)
                           throws IOException
Renders extracted media sources.

Throws:
IOException

renderFallbackFacet

protected void renderFallbackFacet(javax.faces.context.FacesContext facesContext,
                                   javax.faces.component.UIComponent uiComponent)
                            throws IOException
Throws:
IOException


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