|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
de.ls10.jsf.components.UITagCloud
de.ls10.jsf.components.HtmlTagCloud
public class HtmlTagCloud
Render specific subclass for the component UITagCloud.
UITagCloud| Field Summary |
|---|
| Fields inherited from class de.ls10.jsf.components.UITagCloud |
|---|
COMPONENT_FAMILY, RENDERER_TYPE |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
HtmlTagCloud()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getSeperatorWidth()
|
java.lang.String |
getStyle()
|
java.lang.String |
getStyleClass()
|
java.lang.String |
getTagClasses()
|
java.lang.String |
getTitle()
|
java.lang.String |
getTitleClass()
|
java.lang.String |
getTitleStyle()
|
boolean |
isCentered()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setCentered(boolean centered)
Should the content of the tag cloud be centered? |
void |
setSeperatorWidth(java.lang.String seperatorWidth)
Width of the seperator between each tag/link in teh tagcloud. |
void |
setStyle(java.lang.String style)
CSS style of the surrounding div tag. |
void |
setStyleClass(java.lang.String styleClass)
CSS style class of the surrounding div tag. |
void |
setTagClasses(java.lang.String tagClasses)
Comma seperated list of CSS styles that should be applied to the tags/links. |
void |
setTitle(java.lang.String title)
Title that should be displayed above the tagcloud. |
void |
setTitleClass(java.lang.String titleClass)
CSS styleClass that should be used for the formatting of the title. |
void |
setTitleStyle(java.lang.String titleStyle)
CSS style that should be used for the formatting of the title. |
| Methods inherited from class de.ls10.jsf.components.UITagCloud |
|---|
getFamily, getModel, setModel |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlTagCloud()
| Method Detail |
|---|
public void setStyle(java.lang.String style)
div tag.
style - String that is copied 1:1 from this attribute to the value of the
style attribute of the surrounding div tag.public java.lang.String getStyle()
public void setStyleClass(java.lang.String styleClass)
div tag.
styleClass - String that is copied 1:1 from this attribute to the value of the
styleClass attribute of the surrounding
div tag.public java.lang.String getStyleClass()
public void setTitle(java.lang.String title)
For formatting issues see setTitleStyle(String) and
setTitleClass(String).
title - If this isn't an null or null length value, this text
is displayed as headline above the tagcloud.public java.lang.String getTitle()
public void setTitleStyle(java.lang.String titleStyle)
If this value or the value titleStyleClass is set a div tag
is rendered around the specified title, otherwise it will be an
h2 tag.
When title is null or not set at all this
parameter is ignored.
titleStyle - String that is copied 1:1 from this attribute to the value of the
style attribute of the div tag that
surround the title line.public java.lang.String getTitleStyle()
public void setTitleClass(java.lang.String titleClass)
If this value or the value titleStyle is set a div tag is
rendered around the specified title, otherwise it will be an
h2 tag.
When title is null or not set at all this
parameter is ignored.
titleClass - String that is copied 1:1 from this attribute to the value of the
styleClass attribute of the div tag that
surround the title line.public java.lang.String getTitleClass()
public void setTagClasses(java.lang.String tagClasses)
You can specify up to six different style classes that are used for the
different levels of interest in the model. (TagCloudLink.setWeight(de.ls10.jsf.components.models.TagCloudLinkImportance) / TagCloudLinkImportance)
It is expected, that this 'list' of style classes starts with the style
class for the tags/links with the lowest level of interest. When the list
contains more than six style classes, than the surplus classes are simply
ignored. In the other case, that to few style classes are given the
missing ones will be replaced by the default style classes.
See the table below for clue of what the default style classes are.
Default CSS style classes:
| TagCloudLinkImportance.NOT_IMPORTANT | a.tagXS { font-size: 11px; } |
| TagCloudLinkImportance.LESS_IMPORTANT | a.tagS { font-size: 15px; } |
| TagCloudLinkImportance.IMPORTANT | a.tagM { font-size: 17px; } |
| TagCloudLinkImportance.MORE_IMPORTANT | a.tagL { font-size: 21px; line-height: 120%; } |
| TagCloudLinkImportance.HIGHLY_IMPORTANT | a.tagXL { font-size: 24px; } |
tagClasses - The comma seperated list of CSS style classes.styleClass attribute of each tag/link that has the
associated level of interest.public java.lang.String getTagClasses()
public void setSeperatorWidth(java.lang.String seperatorWidth)
Between each tag/link in the tagcloud a seperator is rendered in form of
a span tag, in the style attribute of this tag
the value of margin-left will be setted to the value given
in this component attribute.
seperatorWidth - Valid values are e.g. '10px' or '10%'. In general all values are
allowed that are allowed for the CSS style
margin-left.public java.lang.String getSeperatorWidth()
public void setCentered(boolean centered)
false)
If this attribute is
true a center tag will
be rendered before any of the other parts of the component.
centered - Set it to true if you want to center the whole
'content' of the tagcloud component. Otherwise don't specify it
anyway or set it to false.
public boolean isCentered()
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class UITagCloud
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class UITagCloud
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||