|
||||||||||
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
public class XhtmlRenderer
Field Summary | |
---|---|
static java.lang.String |
TRANSPARENT_GIF
|
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
---|
CHAR_UNDEFINED, NO_CHILD_INDEX |
Constructor Summary | |
---|---|
protected |
XhtmlRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
Method Summary | |
---|---|
javax.faces.render.Renderer |
cloneWithType(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Clone a Renderer instance with a new Type. |
static void |
enableScriptDeferring(org.apache.myfaces.trinidad.context.RenderingContext arc,
boolean isEnabled)
|
protected void |
findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
static java.lang.String |
getAbsoluteImageUri(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.String imagePath)
|
protected static java.lang.String |
getBaseImageUri(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc)
|
protected java.lang.String |
getDefaultStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getInlineStyle(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnclick(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOndblclick(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnkeydown(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnkeypress(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnkeyup(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnmousedown(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnmousemove(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnmouseout(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnmouseover(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getOnmouseup(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getShortDesc(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderAllAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Render the main renderer-specific attributes: "title", "class", "style", and all the Javascript attributes. |
protected void |
renderAllAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean,
boolean renderStyleAttrs)
Render the main renderer-specific attributes: "title", "class", "style", and all the Javascript attributes. |
protected void |
renderDecorativeIcon(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.String iconUri,
java.lang.Object width,
java.lang.Object height,
java.lang.Object id,
java.lang.Object altText)
Renders an icon. |
protected void |
renderDecorativeIcon(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.String iconUri,
java.lang.Object width,
java.lang.Object height,
java.lang.Object id,
java.lang.Object altText,
javax.faces.component.UIComponent comp)
|
protected void |
renderEventHandlers(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Render all the Javascript attributes. |
protected void |
renderFormattedText(javax.faces.context.FacesContext context,
java.lang.Object textValue)
|
protected static void |
renderHAlign(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.Object hAlign)
|
protected void |
renderInlineStyle(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
static void |
renderInlineStyleAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.String style)
Renders the inline style attribute for the specified node |
protected void |
renderPossiblyFormattedText(javax.faces.context.FacesContext context,
java.lang.Object textValue)
|
static void |
renderScriptDeferAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc)
Renders the "defer" attribute for a script element. |
static void |
renderScriptTypeAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc)
Checks whether in screen reader mode, and if so, renders "type" attribute for a script element. |
protected void |
renderShortDescAttribute(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderSpacer(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.String width,
java.lang.String height)
Renders a spacer. |
protected void |
renderStyleAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
renderStyleAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.String defaultStyleClass)
When there's a default style class pass it in to this method |
protected void |
renderTransparent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
java.lang.String width,
java.lang.String height,
boolean needsQuoting,
java.lang.Object id)
Renders a transparent gif using a script to save space. |
protected void |
renderVerticalSpacer(javax.faces.context.FacesContext context,
java.lang.Object height,
java.lang.Object id,
javax.faces.component.UIComponent comp)
Renders a vertical spacer for a specified non-null height. |
protected boolean |
shouldRenderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Returns true if the component should render an ID. |
protected boolean |
skipDecode(javax.faces.context.FacesContext context)
|
static boolean |
supportsAccessKeys(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsAdvancedForms(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsAutoCompleteFormElements(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsDisabledFormElements(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsEditing(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsIntrinsicEvents(org.apache.myfaces.trinidad.context.RenderingContext arc)
See section 5.14 of xhtml modularization. |
static boolean |
supportsNavigation(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsReadonlyFormElements(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsScripting(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns true if the agent supports the Script module. |
static boolean |
supportsSeparateWindow(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsStyleAttributes(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns true if the style attributes should be rendered for this node. |
static boolean |
supportsTarget(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns true if the agent supports setting the target attribute of other elements. |
static boolean |
supportsTextPresentation(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns true if the agent supports the text presentation module. |
static boolean |
supportsXMLDOM(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns true if the agent supports the xmldom |
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
---|
delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAll, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeEnd, encodeEnd, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isIE, isInaccessibleMode, isPDA, isScreenReaderMode, renderEncodedActionURI, renderEncodedResourceURI, renderId, renderStyleClass, renderStyleClasses, setRenderingProperty, toChar, toInt, toLong, toString, toUri |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, decode, getConvertedValue, getRendersChildren |
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 TRANSPARENT_GIF
Constructor Detail |
---|
protected XhtmlRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Method Detail |
---|
public javax.faces.render.Renderer cloneWithType(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
cloneWithType
in interface org.apache.myfaces.trinidad.render.TypedRenderer
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
public static boolean supportsScripting(org.apache.myfaces.trinidad.context.RenderingContext arc)
See section 5.16 of xhtml modularization
public static boolean supportsEditing(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static boolean supportsAdvancedForms(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static boolean supportsIntrinsicEvents(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static boolean supportsStyleAttributes(org.apache.myfaces.trinidad.context.RenderingContext arc)
Clients should override this method if the the user agent doesn't support style attributes.
See section 5.18 of xhtml modularization
public static boolean supportsNavigation(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static boolean supportsTextPresentation(org.apache.myfaces.trinidad.context.RenderingContext arc)
See section 5.4.1 of xhtml modularization.
public static boolean supportsAccessKeys(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static final boolean supportsDisabledFormElements(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static final boolean supportsReadonlyFormElements(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static final boolean supportsAutoCompleteFormElements(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static final boolean supportsSeparateWindow(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static final boolean supportsTarget(org.apache.myfaces.trinidad.context.RenderingContext arc)
See section 5.12 of xhtml modularization.
public static boolean supportsXMLDOM(org.apache.myfaces.trinidad.context.RenderingContext arc)
protected boolean skipDecode(javax.faces.context.FacesContext context)
skipDecode
in class org.apache.myfaces.trinidad.render.CoreRenderer
protected boolean shouldRenderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
shouldRenderId
in class org.apache.myfaces.trinidad.render.CoreRenderer
protected void renderAllAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
java.io.IOException
protected void renderAllAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean, boolean renderStyleAttrs) throws java.io.IOException
java.io.IOException
public static void renderInlineStyleAttribute(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String style) throws java.io.IOException
java.io.IOException
protected void renderInlineStyle(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
java.io.IOException
protected void renderShortDescAttribute(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
java.io.IOException
protected void renderStyleAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
java.io.IOException
protected java.lang.String getDefaultStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected void renderStyleAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean, java.lang.String defaultStyleClass) throws java.io.IOException
java.io.IOException
protected void renderEventHandlers(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
java.io.IOException
protected static void renderHAlign(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.Object hAlign) throws java.io.IOException
java.io.IOException
protected final void renderPossiblyFormattedText(javax.faces.context.FacesContext context, java.lang.Object textValue) throws java.io.IOException
java.io.IOException
protected final void renderFormattedText(javax.faces.context.FacesContext context, java.lang.Object textValue) throws java.io.IOException
java.io.IOException
public static java.lang.String getAbsoluteImageUri(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String imagePath)
protected static java.lang.String getBaseImageUri(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc)
protected final void renderDecorativeIcon(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String iconUri, java.lang.Object width, java.lang.Object height, java.lang.Object id, java.lang.Object altText) throws java.io.IOException
java.io.IOException
protected final void renderDecorativeIcon(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String iconUri, java.lang.Object width, java.lang.Object height, java.lang.Object id, java.lang.Object altText, javax.faces.component.UIComponent comp) throws java.io.IOException
java.io.IOException
protected final void renderVerticalSpacer(javax.faces.context.FacesContext context, java.lang.Object height, java.lang.Object id, javax.faces.component.UIComponent comp) throws java.io.IOException
java.io.IOException
protected final void renderSpacer(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String width, java.lang.String height) throws java.io.IOException
java.io.IOException
protected final void renderTransparent(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String width, java.lang.String height, boolean needsQuoting, java.lang.Object id) throws java.io.IOException
java.io.IOException
public static void renderScriptDeferAttribute(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc) throws java.io.IOException
Note: ResponseWriter.startElement("script", null) must be called before calling this method.
java.io.IOException
public static void enableScriptDeferring(org.apache.myfaces.trinidad.context.RenderingContext arc, boolean isEnabled)
public static void renderScriptTypeAttribute(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc) throws java.io.IOException
Note: ResponseWriter.startElement("script", null) must be called before calling this method. [ =-= mll added 20-Apr-04 to address bug 3426092 ]
java.io.IOException
protected java.lang.String getShortDesc(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getStyleClass(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getInlineStyle(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnclick(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOndblclick(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnkeydown(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnkeyup(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnkeypress(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnmousedown(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnmousemove(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnmouseout(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnmouseover(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.String getOnmouseup(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |