org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class SimpleSelectBooleanRenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.trinidad.render.CoreRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectBooleanRenderer
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
- Direct Known Subclasses:
- SimpleSelectBooleanCheckboxRenderer, SimpleSelectBooleanRadioRenderer
public abstract class SimpleSelectBooleanRenderer
- extends FormInputRenderer
| Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
CHAR_UNDEFINED, NO_CHILD_INDEX |
|
Method Summary |
protected void |
encodeAllAsElement(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 |
encodeAllAsNonElement(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 char |
getAccessKey(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getAutoSubmitScript(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getCompositeId(java.lang.String clientId)
|
protected abstract java.lang.String |
getIconAltTextName(boolean selected)
|
protected abstract java.lang.String |
getIconName(boolean selected,
boolean disabled)
|
protected boolean |
getRenderSimpleSpan(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
return true if you want to render the span that goes around the simple
element, where we put the root dom element styles. |
protected java.lang.String |
getText(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected abstract java.lang.Object |
getType()
|
protected abstract java.lang.Object |
getValueAttr(org.apache.myfaces.trinidad.context.RenderingContext rc)
|
protected boolean |
isRadio()
|
protected void |
renderAccessKeyAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderInputEventHandlers(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderNameAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderSpanEventHandlers(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderText(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderAccessKeys,
boolean renderID,
java.lang.String text,
char accessKey)
Renders the node text |
| Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer |
detectAutoSubmit, encodeAll, getContentStyle, getDefaultStyleClass, getHiddenLabel, getLabel, getOnblur, getOnchange, getOnfocus, getRendersChildren, getSubmittedValue, isAutoSubmit, isHiddenLabelRequired, renderAsElement, renderEventHandlers, renderFormEventHandlers, renderNonElementContent, renderReadOnlyAsElement, renderShortDescAsHiddenLabel |
| Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer |
addOnSubmitConverterValidators, decode, getConvertedString, getConvertedValue, getDisabled, getReadOnly, getRequired, getRequiredMessageKey, getSubmittedValue, getValidators, isImmediate, shouldRenderId, wasSubmitted |
| Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer |
canSkipRendering, canSkipRendering, cloneWithType, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getPartialTriggers, getShortDesc, getStyleClass, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderSubmitButtonNonJSBrowser, renderTransparent, renderVerticalSpacer, resolveProperty, resolveProperty, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNarrowScreen, supportsNavigation, supportsOnClickOnImgInput, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation |
| Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
afterEncode, beforeEncode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSelectBooleanRenderer
public SimpleSelectBooleanRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
- Overrides:
findTypeConstants in class FormInputRenderer
getValueAttr
protected abstract java.lang.Object getValueAttr(org.apache.myfaces.trinidad.context.RenderingContext rc)
getType
protected abstract java.lang.Object getType()
getIconName
protected abstract java.lang.String getIconName(boolean selected,
boolean disabled)
getIconAltTextName
protected abstract java.lang.String getIconAltTextName(boolean selected)
renderNameAttribute
protected void renderNameAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Throws:
java.io.IOException
encodeAllAsElement
protected void encodeAllAsElement(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
- Overrides:
encodeAllAsElement in class FormElementRenderer
- Throws:
java.io.IOException
encodeAllAsNonElement
protected void encodeAllAsNonElement(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
- Overrides:
encodeAllAsNonElement in class FormElementRenderer
- Throws:
java.io.IOException
renderSpanEventHandlers
protected void renderSpanEventHandlers(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Throws:
java.io.IOException
renderInputEventHandlers
protected void renderInputEventHandlers(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Throws:
java.io.IOException
renderAccessKeyAttribute
protected void renderAccessKeyAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
- Throws:
java.io.IOException
renderText
protected void renderText(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderAccessKeys,
boolean renderID,
java.lang.String text,
char accessKey)
throws java.io.IOException
- Renders the node text
- Throws:
java.io.IOException
getAutoSubmitScript
protected java.lang.String getAutoSubmitScript(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
isRadio
protected boolean isRadio()
getCompositeId
protected java.lang.String getCompositeId(java.lang.String clientId)
getText
protected java.lang.String getText(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getAccessKey
protected char getAccessKey(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getRenderSimpleSpan
protected boolean getRenderSimpleSpan(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- return true if you want to render the span that goes around the simple
element, where we put the root dom element styles.
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.