|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
com.sun.rave.web.ui.renderer.AbstractRenderer
com.sun.rave.web.ui.renderer.BreadcrumbsRenderer
public class BreadcrumbsRenderer
Renderer for a Breadcrumbs
component.
This class renders a breadcrumb or parentage path.
Field Summary |
---|
Fields inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer |
---|
BUNDLE, EVENTS_ATTRIBUTES, I18N_ATTRIBUTES |
Constructor Summary | |
---|---|
BreadcrumbsRenderer()
Creates a new instance of BreadcrumbsRenderer |
Method Summary | |
---|---|
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Overrides encodeChildren of Renderer to do nothing. |
boolean |
getRendersChildren()
Returns a flag indicating that this component is responsible for rendering it's children. |
protected void |
renderBreadcrumbsLink(javax.faces.context.FacesContext context,
Hyperlink link,
Theme theme)
Renders the hyperlinks which make up the breadcrumbs. |
protected void |
renderBreadcrumbsSeparator(javax.faces.context.FacesContext context,
Breadcrumbs breadcrumbs,
Theme theme,
javax.faces.context.ResponseWriter writer)
Renders the separator between the elements of the breadcrumbs. |
protected void |
renderBreadcrumbsText(javax.faces.context.FacesContext context,
Hyperlink crumb,
Theme theme,
javax.faces.context.ResponseWriter writer)
Renders the final breadcrumb text which represents the current page. |
protected void |
renderContainingTable(javax.faces.context.FacesContext context,
Breadcrumbs breadcrumbs,
Theme theme,
javax.faces.context.ResponseWriter writer)
Renders the attributes for the table containing the breadcrumbs. |
protected void |
renderEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
Renders the breadcrumbs. |
Methods inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer |
---|
addBooleanAttributes, addCoreAttributes, addIntegerAttributes, addStringAttributes, decode, encodeBegin, encodeEnd, getApplication, getAsObject, getAsString, getExternalContext, getFacesContext, getSubmittedValue, isDisabled, isPortlet, isReadOnly, renderAttributes, renderMarkup, renderStart, setSubmittedValue |
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 |
Constructor Detail |
---|
public BreadcrumbsRenderer()
Method Detail |
---|
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class AbstractRenderer
context
- The FacesContext of the requestcomponent
- The component associated with the
renderer.
java.io.IOException
- if an input/output error occurspublic boolean getRendersChildren()
getRendersChildren
in class javax.faces.render.Renderer
protected void renderContainingTable(javax.faces.context.FacesContext context, Breadcrumbs breadcrumbs, Theme theme, javax.faces.context.ResponseWriter writer) throws java.io.IOException
context
- The current FacesContextbreadcrumbs
- The Breadcrumbs object to usetheme
- The theme to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderBreadcrumbsSeparator(javax.faces.context.FacesContext context, Breadcrumbs breadcrumbs, Theme theme, javax.faces.context.ResponseWriter writer) throws java.io.IOException
context
- The current FacesContextbreadcrumbs
- The Breadcrumbs object to usetheme
- The theme to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occursprotected void renderBreadcrumbsLink(javax.faces.context.FacesContext context, Hyperlink link, Theme theme) throws java.io.IOException
context
- The current FacesContextlink
- The component representing a page in the breadcrumbs.theme
- The theme to use
This must be a Hyperlink or subclass of a Hyperlink.
java.io.IOException
- if an input/output error occurssprotected void renderBreadcrumbsText(javax.faces.context.FacesContext context, Hyperlink crumb, Theme theme, javax.faces.context.ResponseWriter writer) throws java.io.IOException
context
- The current FacesContextbreadcrumbs
- The Breadcrumbs object to usepageName
- The current page name.theme
- The theme to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occurssprotected void renderEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer) throws java.io.IOException
renderEnd
in class AbstractRenderer
context
- The current FacesContextcomponent
- The Breadcrumbs object to usewriter
- The current ResponseWriter
java.io.IOException
- if an input/output error occurss
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |