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

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.HtmlButtonRendererBase
Direct Known Subclasses:
ExtendedHtmlButtonRenderer

public class HtmlButtonRendererBase
extends HtmlRenderer

Version:
$Revision: 990473 $ $Date: 2010-08-28 21:00:58 -0500 (Sat, 28 Aug 2010) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $), Thomas Spiegl, Anton Koinov

Field Summary
static java.lang.String ACTION_FOR_LIST
           
 
Constructor Summary
HtmlButtonRendererBase()
           
 
Method Summary
protected  void addHiddenCommandParameter(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent nestingForm, java.lang.String hiddenFieldName)
           
protected  java.lang.String buildBehaviorizedOnClick(javax.faces.component.UIComponent uiComponent, java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> behaviors, javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, FormInfo nestedFormInfo, java.util.List<javax.faces.component.UIParameter> validParams)
           
protected  java.lang.StringBuffer buildOnClick(javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.util.List<javax.faces.component.UIParameter> validParams)
           
protected  java.lang.String buildServerOnclick(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.String clientId, FormInfo formInfo, java.util.List<javax.faces.component.UIParameter> validParams)
           
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
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.
protected  boolean isDisabled(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected  boolean isReadonly(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 
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, encodeBegin, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_FOR_LIST

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

HtmlButtonRendererBase

public HtmlButtonRendererBase()
Method Detail

decode

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

encodeEnd

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

buildBehaviorizedOnClick

protected java.lang.String buildBehaviorizedOnClick(javax.faces.component.UIComponent uiComponent,
                                                    java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> behaviors,
                                                    javax.faces.context.FacesContext facesContext,
                                                    javax.faces.context.ResponseWriter writer,
                                                    FormInfo nestedFormInfo,
                                                    java.util.List<javax.faces.component.UIParameter> validParams)
                                             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,
                                              java.util.List<javax.faces.component.UIParameter> validParams)
                                       throws java.io.IOException
Throws:
java.io.IOException

buildOnClick

protected java.lang.StringBuffer buildOnClick(javax.faces.component.UIComponent uiComponent,
                                              javax.faces.context.FacesContext facesContext,
                                              javax.faces.context.ResponseWriter writer,
                                              java.util.List<javax.faces.component.UIParameter> validParams)
                                       throws java.io.IOException
Throws:
java.io.IOException

addHiddenCommandParameter

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

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.


isDisabled

protected boolean isDisabled(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.UIComponent uiComponent)

isReadonly

protected boolean isReadonly(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.UIComponent uiComponent)


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