|
||||||||||
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.trinidadinternal.uinode.UINodeRendererBase
org.apache.myfaces.trinidadinternal.renderkit.html.layout.CorePanelChoiceRenderer
public class CorePanelChoiceRenderer
Renderer for ShowOneChoice
Constructor Summary | |
---|---|
CorePanelChoiceRenderer()
|
Method Summary | |
---|---|
protected boolean |
elementSupportsPartial(UIXRenderingContext context,
java.lang.String id)
Returns true if the showOneChoice element has an id and the browser supports PPR |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
If nothing is disclosed, makes the first child disclosed. |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Renders a table and renders a choice list / radio button within it. |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Dummy method to prevent base class' encodeEnd call. |
protected java.lang.String |
getFieldTextClass()
Gets classname of the text associated with HTML control text |
protected java.lang.String |
getHTMLControlID(java.lang.String compId)
Gets id of the rendered HTML control |
protected java.lang.String |
getLabelControlSeparatorSize()
Gets classname of the text associated with HTML control text |
boolean |
getRendersChildren()
|
protected void |
renderListDisplay(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String disclosedChildId)
Renders the list UI Control either radio buttons or choice. |
protected void |
renderSelectLabel(UIXRenderingContext rCtx,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter out,
URLEncoder encoder,
java.lang.String compId)
Renders the label associated with the control. |
protected void |
renderSpacerTD(javax.faces.context.ResponseWriter out,
javax.faces.component.UIComponent component,
java.lang.String separatorSize)
Generates markup for rendering a blank TD. |
protected void |
writeAdditionalJS(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Writes any additional javascriipt required to support the control. |
protected void |
writeLabel(javax.faces.context.ResponseWriter out,
javax.faces.component.UIComponent component,
URLEncoder encoder,
java.lang.String label)
Renders the label text with character underlined for label. |
Methods inherited from class org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase |
---|
getRenderingContext, getRenderingContext, skipDecode |
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 |
Constructor Detail |
---|
public CorePanelChoiceRenderer()
Method Detail |
---|
protected void writeAdditionalJS(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
context
- the facesContext object
java.io.IOException
- when any IO error while writing markupprotected void renderListDisplay(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String disclosedChildId) throws java.io.IOException
java.io.IOException
protected java.lang.String getHTMLControlID(java.lang.String compId)
public boolean getRendersChildren()
getRendersChildren
in class UINodeRendererBase
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeBegin
in class UINodeRendererBase
context
- component
-
java.io.IOException
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class UINodeRendererBase
java.io.IOException
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeEnd
in class UINodeRendererBase
context
- the faces context objectcomponent
- the UIComponent object
java.io.IOException
- when some issues while writing outputprotected boolean elementSupportsPartial(UIXRenderingContext context, java.lang.String id)
protected void renderSelectLabel(UIXRenderingContext rCtx, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter out, URLEncoder encoder, java.lang.String compId) throws java.io.IOException
java.io.IOException
protected void writeLabel(javax.faces.context.ResponseWriter out, javax.faces.component.UIComponent component, URLEncoder encoder, java.lang.String label) throws java.io.IOException
java.io.IOException
protected void renderSpacerTD(javax.faces.context.ResponseWriter out, javax.faces.component.UIComponent component, java.lang.String separatorSize) throws java.io.IOException
java.io.IOException
protected java.lang.String getFieldTextClass()
protected java.lang.String getLabelControlSeparatorSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |