|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.webapp.UIComponentTag de.mindmatters.faces.taglib.jsp.AbstractUIComponentTag de.mindmatters.faces.taglib.jsp.AbstractHtmlComponentTag
public abstract class AbstractHtmlComponentTag
AbstractHtmlComponentTag is a convenience base class that implements attributes needed for any concrete HTML jsp tag.
Field Summary |
---|
Fields inherited from class javax.faces.webapp.UIComponentTag |
---|
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
AbstractHtmlComponentTag()
|
Method Summary | |
---|---|
java.lang.String |
getDir()
Returns the language direction. |
java.lang.String |
getLang()
Returns the language. |
java.lang.String |
getStyle()
Returns the css style. |
java.lang.String |
getStyleClass()
Returns the css style class. |
java.lang.String |
getTitle()
Returns the title. |
void |
release()
Release any resources allocated during the execution of this tag handler. |
void |
setDir(java.lang.String dir)
Sets the language direction. |
void |
setLang(java.lang.String lang)
Sets the language. |
protected void |
setProperties(UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. |
void |
setStyle(java.lang.String style)
Sets the css style attribute. |
void |
setStyleClass(java.lang.String styleClass)
Sets the css style class attribute. |
void |
setTitle(java.lang.String title)
Sets the title. |
Methods inherited from class de.mindmatters.faces.taglib.jsp.AbstractUIComponentTag |
---|
addValueBindingIfNecessary, setBooleanProperty, setStringProperty |
Methods inherited from class javax.faces.webapp.UIComponentTag |
---|
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getComponentType, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, getRendererType, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractHtmlComponentTag()
Method Detail |
---|
public void release()
Release any resources allocated during the execution of this tag handler.
release
in interface javax.servlet.jsp.tagext.Tag
release
in class UIComponentTag
protected void setProperties(UIComponent component)
Override properties and attributes of the specified component,
if the corresponding properties of this tag handler instance were
explicitly set. This method must be called ONLY
if the specified UIComponent
was in fact created during
the execution of this tag handler instance, and this call will occur
BEFORE the UIComponent
is added to
the view.
Tag subclasses that want to support additional set properties
must ensure that the base class setProperties()
method is still called. A typical implementation that supports
extra properties foo
and bar
would look
something like this:
protected void setProperties(UIComponent component) { super.setProperties(component); if (foo != null) { component.setAttribute("foo", foo); } if (bar != null) { component.setAttribute("bar", bar); } }
The default implementation overrides the following properties:
rendered
- Set if a value for the
rendered
property is specified for
this tag handler instance.rendererType
- Set if the getRendererType()
method returns a non-null value.
setProperties
in class UIComponentTag
component
- UIComponent
whose properties are to be
overriddenpublic final java.lang.String getStyle()
public final void setStyle(java.lang.String style)
style
- The css style attributepublic final java.lang.String getStyleClass()
public final void setStyleClass(java.lang.String styleClass)
styleClass
- The css style class attributepublic final java.lang.String getTitle()
public final void setTitle(java.lang.String title)
title
- The title attributepublic final java.lang.String getDir()
public final void setDir(java.lang.String dir)
dir
- The language directionpublic final java.lang.String getLang()
public final void setLang(java.lang.String lang)
lang
- The language
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |