org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class PanelHeaderRenderer
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.PanelHeaderRenderer
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
- Direct Known Subclasses:
- ShowDetailHeaderRenderer
public class PanelHeaderRenderer
- extends XhtmlRenderer
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/base/desktop/HeaderRenderer.java#0 $) $Date: 10-nov-2005.18:55:17 $
| Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
CHAR_UNDEFINED, NO_CHILD_INDEX |
|
Method Summary |
protected static void |
decrementHeaderNestLevel(org.apache.myfaces.trinidad.context.RenderingContext rc)
|
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 static java.lang.Number |
getContextHeaderSize(org.apache.myfaces.trinidad.context.RenderingContext rc,
java.lang.Number defaultValue)
|
protected static int |
getHeaderNestLevel(org.apache.myfaces.trinidad.context.RenderingContext rc)
Returns the current depth of the nesting. |
protected java.lang.String |
getIconUri(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Returns the uri for icon. |
protected java.lang.String |
getMessageIconName(java.lang.String messageType)
This method compares the messageType to a number of
possible message types (e.g. |
protected java.lang.String |
getMessageType(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
boolean |
getRendersChildren()
|
protected java.lang.Number |
getSize(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getText(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.String messageType)
Returns text of header |
protected static void |
incrementHeaderNestLevel(org.apache.myfaces.trinidad.context.RenderingContext rc)
|
protected void |
renderIcon(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 messageType)
|
protected static void |
setContextHeaderSize(org.apache.myfaces.trinidad.context.RenderingContext rc,
java.lang.Number size)
Set the size of the header stored on the context |
protected boolean |
shouldRenderChildren(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
| Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer |
canSkipRendering, canSkipRendering, cloneWithType, getAbsoluteImageUri, getBaseImageUri, getDefaultStyleClass, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getPartialTriggers, getShortDesc, getStyleClass, renderAllAttributes, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderEventHandlers, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderSubmitButtonNonJSBrowser, renderTransparent, renderVerticalSpacer, resolveProperty, resolveProperty, shouldRenderId, 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, 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, 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 |
HEADER_NEST_LEVEL
public static final java.lang.Object HEADER_NEST_LEVEL
HEADER_SIZE
public static final java.lang.Object HEADER_SIZE
PanelHeaderRenderer
public PanelHeaderRenderer()
PanelHeaderRenderer
protected PanelHeaderRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
- Overrides:
findTypeConstants in class XhtmlRenderer
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren in class javax.faces.render.Renderer
encodeAll
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
- Overrides:
encodeAll in class org.apache.myfaces.trinidad.render.CoreRenderer
- Throws:
java.io.IOException
renderIcon
protected void renderIcon(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 messageType)
throws java.io.IOException
- Throws:
java.io.IOException
getText
protected java.lang.String getText(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.String messageType)
- Returns text of header
getIconUri
protected java.lang.String getIconUri(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
- Returns the uri for icon.
getSize
protected java.lang.Number getSize(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getMessageType
protected java.lang.String getMessageType(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
shouldRenderChildren
protected boolean shouldRenderChildren(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getContextHeaderSize
protected static java.lang.Number getContextHeaderSize(org.apache.myfaces.trinidad.context.RenderingContext rc,
java.lang.Number defaultValue)
setContextHeaderSize
protected static void setContextHeaderSize(org.apache.myfaces.trinidad.context.RenderingContext rc,
java.lang.Number size)
- Set the size of the header stored on the context
getHeaderNestLevel
protected static int getHeaderNestLevel(org.apache.myfaces.trinidad.context.RenderingContext rc)
- Returns the current depth of the nesting.
incrementHeaderNestLevel
protected static void incrementHeaderNestLevel(org.apache.myfaces.trinidad.context.RenderingContext rc)
throws java.io.IOException
- Throws:
java.io.IOException
decrementHeaderNestLevel
protected static void decrementHeaderNestLevel(org.apache.myfaces.trinidad.context.RenderingContext rc)
throws java.io.IOException
- Throws:
java.io.IOException
getMessageIconName
protected java.lang.String getMessageIconName(java.lang.String messageType)
- This method compares the messageType to a number of
possible message types (e.g. SkinSelectors.MESSAGE_TYPE_ERROR)
and returns an icon name for the appropriate type.
This method should be overridden to change the standard
icons used for this component.
- Parameters:
messageType -
- Returns:
- The icon name for the specfied messageType.
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.