|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
de.ls10.jsf.renderer.HtmlTagCloudRenderer
public class HtmlTagCloudRenderer
HTML specific renderer for the TagCloud component.
Field Summary | |
---|---|
static java.lang.String |
SELECTED_TAG_PARAM_NAME
In this constant the context parameter name is specified that is used to inform an action listener about the pressed tag/link. |
Constructor Summary | |
---|---|
HtmlTagCloudRenderer()
|
Method Summary | |
---|---|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Starts the encoding of the tagcloud component. |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
This method is "verantwortlich" for the rendering of the tags/links in the tagcloud component. |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Simply closes the tags that was opened by encodeBegin . |
boolean |
getRendersChildren()
This method constantly true as this component shouldn't have
children defined in the JSF page but must render child components
acording to the given model. |
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 |
Field Detail |
---|
public static java.lang.String SELECTED_TAG_PARAM_NAME
Constructor Detail |
---|
public HtmlTagCloudRenderer()
Method Detail |
---|
public boolean getRendersChildren()
true
as this component shouldn't have
children defined in the JSF page but must render child components
acording to the given model.
getRendersChildren
in class javax.faces.render.Renderer
true
Renderer.getRendersChildren()
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
In this initializing phase the surounding div
and
center
tag are rendered if nessecary. When the user
specified a title for the component, this title gets also rendered
by this method.
Additionally this method calls
createChildren(FacesContext, UITagCloud)
and
encodeResources(FacesContext, UIComponent)
.
encodeBegin
in class javax.faces.render.Renderer
context
- FacesContext in which the component
should be
renderedcomponent
- The component that should be renderd
java.io.IOException
createChildren(FacesContext, UITagCloud)
,
encodeResources(FacesContext, UIComponent)
,
Renderer.encodeBegin(FacesContext, UIComponent)
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
Therefor this method calls the encodeBegin
,
encodeChildren
and endcodeEnd
methods of each
of the previously created child components.
Between each of those child components an seperator in form of an
span
tag is rendered to assure that some space is left
between two tags/links in the tagcloud.
encodeChildren
in class javax.faces.render.Renderer
context
- FacesContext in which the component
should be
renderedcomponent
- The component that should be renderd
java.io.IOException
Renderer.encodeChildren(FacesContext, UIComponent)
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeBegin
.
encodeEnd
in class javax.faces.render.Renderer
context
- FacesContext in which the component
should be
renderedcomponent
- The component that should be renderd
java.io.IOException
Renderer.encodeEnd(FacesContext, UIComponent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |