org.apache.myfaces.shared_tomahawk.renderkit.html
Class HtmlLinkRendererBase

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlLinkRendererBase
Direct Known Subclasses:
ExtendedHtmlLinkRenderer

public abstract class HtmlLinkRendererBase
extends HtmlRenderer

Version:
$Revision: 1041329 $ $Date: 2010-12-02 06:07:21 -0500 (Thu, 02 Dec 2010) $
Author:
Manfred Geiler

Field Summary
static java.lang.String END_LINK_OUTCOME_AS_SPAN
           
 
Constructor Summary
HtmlLinkRendererBase()
           
 
Method Summary
protected  void addHiddenCommandParameter(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent nestingForm, java.lang.String hiddenFieldName)
           
protected  java.lang.String buildServerOnclick(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.String clientId, FormInfo formInfo)
           
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  FormInfo findNestingForm(javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext)
          find nesting form
need to be overrideable to deal with dummyForm stuff in tomahawk.
 boolean getRendersChildren()
           
protected  java.lang.String getStyle(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent link)
          Can be overwritten by derived classes to overrule the style to be used.
protected  java.lang.String getStyleClass(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent link)
          Can be overwritten by derived classes to overrule the style class to be used.
protected  void renderBehaviorizedJavaScriptAnchorStart(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String clientId, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> behaviors, FormInfo formInfo)
           
protected  void renderCommandLinkEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  void renderCommandLinkStart(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.String clientId, java.lang.Object value, java.lang.String style, java.lang.String styleClass)
           
protected  void renderJavaScriptAnchorStart(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String clientId, FormInfo formInfo)
           
protected  void renderNonJavaScriptAnchorStart(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String clientId, FormInfo formInfo)
           
protected  void renderOutcomeLinkEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  void renderOutcomeLinkStart(javax.faces.context.FacesContext facesContext, javax.faces.component.UIOutcomeTarget output)
           
protected  void renderOutputLinkEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  void renderOutputLinkStart(javax.faces.context.FacesContext facesContext, javax.faces.component.UIOutput output)
           
 
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, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END_LINK_OUTCOME_AS_SPAN

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

HtmlLinkRendererBase

public HtmlLinkRendererBase()
Method Detail

getRendersChildren

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

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

encodeBegin

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

getStyle

protected java.lang.String getStyle(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent link)
Can be overwritten by derived classes to overrule the style to be used.


getStyleClass

protected java.lang.String getStyleClass(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent link)
Can be overwritten by derived classes to overrule the style class to be used.


encodeChildren

public void encodeChildren(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIComponent component)
                    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
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
java.io.IOException

renderCommandLinkStart

protected void renderCommandLinkStart(javax.faces.context.FacesContext facesContext,
                                      javax.faces.component.UIComponent component,
                                      java.lang.String clientId,
                                      java.lang.Object value,
                                      java.lang.String style,
                                      java.lang.String styleClass)
                               throws java.io.IOException
Throws:
java.io.IOException

renderJavaScriptAnchorStart

protected void renderJavaScriptAnchorStart(javax.faces.context.FacesContext facesContext,
                                           javax.faces.context.ResponseWriter writer,
                                           javax.faces.component.UIComponent component,
                                           java.lang.String clientId,
                                           FormInfo formInfo)
                                    throws java.io.IOException
Throws:
java.io.IOException

renderBehaviorizedJavaScriptAnchorStart

protected void renderBehaviorizedJavaScriptAnchorStart(javax.faces.context.FacesContext facesContext,
                                                       javax.faces.context.ResponseWriter writer,
                                                       javax.faces.component.UIComponent component,
                                                       java.lang.String clientId,
                                                       java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> behaviors,
                                                       FormInfo formInfo)
                                                throws java.io.IOException
Throws:
java.io.IOException

buildServerOnclick

protected java.lang.String buildServerOnclick(javax.faces.context.FacesContext facesContext,
                                              javax.faces.component.UIComponent component,
                                              java.lang.String clientId,
                                              FormInfo formInfo)
                                       throws java.io.IOException
Throws:
java.io.IOException

findNestingForm

protected FormInfo findNestingForm(javax.faces.component.UIComponent uiComponent,
                                   javax.faces.context.FacesContext facesContext)
find nesting form
need to be overrideable to deal with dummyForm stuff in tomahawk.


addHiddenCommandParameter

protected void addHiddenCommandParameter(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent nestingForm,
                                         java.lang.String hiddenFieldName)

renderNonJavaScriptAnchorStart

protected void renderNonJavaScriptAnchorStart(javax.faces.context.FacesContext facesContext,
                                              javax.faces.context.ResponseWriter writer,
                                              javax.faces.component.UIComponent component,
                                              java.lang.String clientId,
                                              FormInfo formInfo)
                                       throws java.io.IOException
Throws:
java.io.IOException

renderOutputLinkStart

protected void renderOutputLinkStart(javax.faces.context.FacesContext facesContext,
                                     javax.faces.component.UIOutput output)
                              throws java.io.IOException
Throws:
java.io.IOException

renderOutcomeLinkStart

protected void renderOutcomeLinkStart(javax.faces.context.FacesContext facesContext,
                                      javax.faces.component.UIOutcomeTarget output)
                               throws java.io.IOException
Throws:
java.io.IOException

renderOutcomeLinkEnd

protected void renderOutcomeLinkEnd(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent component)
                             throws java.io.IOException
Throws:
java.io.IOException

renderOutputLinkEnd

protected void renderOutputLinkEnd(javax.faces.context.FacesContext facesContext,
                                   javax.faces.component.UIComponent component)
                            throws java.io.IOException
Throws:
java.io.IOException

renderCommandLinkEnd

protected void renderCommandLinkEnd(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent component)
                             throws java.io.IOException
Throws:
java.io.IOException


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