org.apache.myfaces.custom.effect
Class EffectRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.custom.effect.EffectRenderer

public class EffectRenderer
extends org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer

Fade field only currently the renderer is implemented and the tag, because we do not store any extra functionality over a simple div in here For the fade, we only need a simple renderer and a backend javascript inclusion so that we can serve it out of the jar

Version:
$Revision: 472727 $ $Date: 2006-11-09 02:08:46 +0100 (Do, 09 Nov 2006) $
Author:
Werner Punz werpu@gmx.at

Field Summary
static java.lang.String RENDERER_TYPE
           
 
Constructor Summary
EffectRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          We only need an encodeBeing method because the fade control, does not have any childs The fading is done via a styleClass tag according to the FAT specs, for now this is more flexible than embedding yet another tag in another tag but less flexible for styleClass usage reasons (but you always can use x:div for handling this issue in a proper manner) we have to do a full overload unfortunately because it is altered severely
 void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Standard encode end
 boolean getRendersChildren()
           
 void renderEffectsBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
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

RENDERER_TYPE

public static final java.lang.String RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

EffectRenderer

public EffectRenderer()
Method Detail

getRendersChildren

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

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
We only need an encodeBeing method because the fade control, does not have any childs The fading is done via a styleClass tag according to the FAT specs, for now this is more flexible than embedding yet another tag in another tag but less flexible for styleClass usage reasons (but you always can use x:div for handling this issue in a proper manner) we have to do a full overload unfortunately because it is altered severely

Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
java.io.IOException

renderEffectsBegin

public void renderEffectsBegin(javax.faces.context.FacesContext context,
                               javax.faces.component.UIComponent component)
                        throws java.io.IOException
Throws:
java.io.IOException

encodeChildren

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

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Standard encode end

Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.