|
||||||||||
| 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.LabelAndMessageRenderer
public abstract class LabelAndMessageRenderer
| Field Summary | |
|---|---|
static java.lang.String |
INLINE_MESSAGE_DEFAULT_GAP
|
static java.lang.String |
INLINE_MESSAGE_PDA_GAP
|
| 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 | |
|---|---|
LabelAndMessageRenderer(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 |
getClientId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Returns the client ID. |
protected java.lang.String |
getDefaultLabelValign(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getFieldCellContentsStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getFooterContentsStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getLabel(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected abstract java.lang.String |
getLabelFor(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Returns the ID (clientId) of the component that should receive the label. |
protected java.lang.String |
getLabelInlineStyleKey(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getLabelStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
This gets the rootStyleClass from the bean, appends ::label to it, |
boolean |
getRendersChildren()
|
protected boolean |
getRequired(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getRootStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
getShowRequired(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected boolean |
hasMessage(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 boolean |
hasOwnLabel(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Override and return "true" to indicate that the component has its own internal label - and that therefore there shouldn't be an HTML <label> tag, for instance. |
protected boolean |
isContentEditable(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
If it's known that the field content is not editable, return false. |
protected boolean |
isIndented()
|
protected boolean |
isLeafRenderer()
|
protected boolean |
labelShowRequired(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Hook for resolving whether we should show the "required" icon. |
protected void |
renderEndFacetForNarrowPDA(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
boolean insideTableData)
|
protected abstract void |
renderFieldCellContents(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 |
renderFieldFooterContents(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Renders footer contents if isFooterPresent() is true. |
protected void |
renderRootDomElementStyles(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 boolean |
shouldRenderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Returns true if the component should render an ID. |
protected boolean |
showAccessKeyOnLabel(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
| Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
|---|
afterEncode, beforeEncode, decode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, encodeEnd, getBehaviorParameters, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderId, 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 |
| Field Detail |
|---|
public static final java.lang.String INLINE_MESSAGE_DEFAULT_GAP
public static final java.lang.String INLINE_MESSAGE_PDA_GAP
| Constructor Detail |
|---|
public LabelAndMessageRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
| Method Detail |
|---|
public boolean getRendersChildren()
getRendersChildren in class javax.faces.render.Rendererprotected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants in class XhtmlRenderer
protected void renderRootDomElementStyles(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
java.io.IOException
protected boolean shouldRenderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
XhtmlRenderer
shouldRenderId in class XhtmlRenderer
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.lang.String getRootStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getFieldCellContentsStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getFooterContentsStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected boolean hasMessage(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 java.lang.String getClientId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
getClientId in class org.apache.myfaces.trinidad.render.CoreRendererprotected boolean isLeafRenderer()
protected java.lang.String getDefaultLabelValign(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected abstract void renderFieldCellContents(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
java.io.IOException
protected void renderFieldFooterContents(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
context - the FacesContextrc - the RenderingContextcomponent - the component to renderbean - the FacesBean of the component to render
java.io.IOException - if there are problems rendering the contents
protected boolean isContentEditable(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected boolean isIndented()
protected boolean hasOwnLabel(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected boolean showAccessKeyOnLabel(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected abstract java.lang.String getLabelFor(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 java.lang.String getLabelInlineStyleKey(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected boolean labelShowRequired(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected boolean getShowRequired(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected boolean getRequired(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getLabel(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getLabelStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
bean -
protected void renderEndFacetForNarrowPDA(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
boolean insideTableData)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||