|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.render.Renderer
org.apache.myfaces.trinidad.render.CoreRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.GoLinkRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.GoButtonRenderer
public class GoButtonRenderer
FIXME: the inheritance hierarchy is a bit annoying: should we extend CommandButtonRenderer or GoLinkRenderer? Either way, there's a fair bit of duplicated code
| Field Summary |
|---|
| Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer |
|---|
TRANSPARENT_GIF |
| Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
|---|
CHAR_UNDEFINED, NO_CHILD_INDEX |
| Constructor Summary | |
|---|---|
|
GoButtonRenderer()
|
protected |
GoButtonRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
| Method Summary | |
|---|---|
protected void |
encodeAll(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
protected java.lang.String |
getButtonOnclick(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getDefaultStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getIcon(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnclick(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
boolean |
getRendersChildren()
|
protected java.util.List<java.lang.String> |
getStateStyleClasses(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Override to return any state-based (selected, disabled, etc.) CSS style markers. |
protected void |
renderStyleAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.String defaultStyleClass)
When there's a default style class pass it in to this method |
| Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.GoLinkRenderer |
|---|
encodeBegin, encodeEnd, getAccessKey, getDestination, getDisabled, getOnblur, getOnfocus, getTargetFrame, getText, hasOnclick, renderEventHandlers, renderId |
| Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
|---|
afterEncode, beforeEncode, decode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, getBehaviorParameters, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, setupChildrenEncodingContext, setupEncodingContext, setupEncodingContext, tearDownChildrenEncodingContext, tearDownEncodingContext, tearDownEncodingContext, toActionUri, toChar, toInt, toLong, toResourceUri, toString, toUri, visitChildrenForEncoding |
| 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 |
| Constructor Detail |
|---|
public GoButtonRenderer()
protected GoButtonRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
| Method Detail |
|---|
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants in class GoLinkRendererpublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.Renderer
protected void encodeAll(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
encodeAll in class org.apache.myfaces.trinidad.render.CoreRendererjava.io.IOException
protected java.util.List<java.lang.String> getStateStyleClasses(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected void renderStyleAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.String defaultStyleClass)
throws java.io.IOException
XhtmlRenderer
renderStyleAttributes in class XhtmlRendererjava.io.IOException
protected java.lang.String getOnclick(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getOnclick in class XhtmlRenderer
protected java.lang.String getButtonOnclick(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getDefaultStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getDefaultStyleClass in class GoLinkRenderer
protected java.lang.String getIcon(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||