|
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 de.mindmatters.faces.taglib.jsp.AbstractHtmlEventHandlerComponentTag
public abstract class AbstractHtmlEventHandlerComponentTag
AbstractHtmlEventHandlerComponentTag is a convenience base class that implements attributes needed for any concrete HTML event handler 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 | |
---|---|
AbstractHtmlEventHandlerComponentTag()
|
Method Summary | |
---|---|
java.lang.String |
getOnclick()
Returns the onclick value. |
java.lang.String |
getOndblclick()
Returns the ondblclick value. |
java.lang.String |
getOnkeydown()
Returns the onkeydown value. |
java.lang.String |
getOnkeypress()
Returns the onkeypress value. |
java.lang.String |
getOnkeyup()
Returns the onkeyup value. |
java.lang.String |
getOnmousedown()
Returns the onmousedown value. |
java.lang.String |
getOnmousemove()
Returns the onmousemove value. |
java.lang.String |
getOnmouseout()
Returns the onmouseout value. |
java.lang.String |
getOnmouseover()
Returns the onmouseover value. |
java.lang.String |
getOnmouseup()
Returns the onmouseup value. |
void |
release()
Release any resources allocated during the execution of this tag handler. |
void |
setOnclick(java.lang.String onclick)
Sets the onclick attribute. |
void |
setOndblclick(java.lang.String ondblclick)
Sets the ondblclick attribute. |
void |
setOnkeydown(java.lang.String onkeydown)
Sets the onkeydown attribute. |
void |
setOnkeypress(java.lang.String onkeypress)
Sets the onkeypress attribute. |
void |
setOnkeyup(java.lang.String onkeyup)
Sets the onkeyup attribute. |
void |
setOnmousedown(java.lang.String onmousedown)
Sets the onmousedown attribute. |
void |
setOnmousemove(java.lang.String onmousemove)
Sets the onmousemove attribute. |
void |
setOnmouseout(java.lang.String onmouseout)
Sets the onmouseout attribute. |
void |
setOnmouseover(java.lang.String onmouseover)
Sets the onmouseover attribute. |
void |
setOnmouseup(java.lang.String onmouseup)
Sets the onmouseup attribute. |
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 Tag subclasses that want to support additional set properties
must ensure that the base class 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:
|
Methods inherited from class de.mindmatters.faces.taglib.jsp.AbstractHtmlComponentTag |
---|
getDir, getLang, getStyle, getStyleClass, getTitle, setDir, setLang, setStyle, setStyleClass, setTitle |
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 AbstractHtmlEventHandlerComponentTag()
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 AbstractHtmlComponentTag
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 AbstractHtmlComponentTag
component
- UIComponent
whose properties are to be
overriddenpublic final java.lang.String getOnclick()
public final void setOnclick(java.lang.String onclick)
onclick
- The onclick attributepublic final java.lang.String getOndblclick()
public final void setOndblclick(java.lang.String ondblclick)
ondblclick
- The ondblclick attributepublic final java.lang.String getOnkeydown()
public final void setOnkeydown(java.lang.String onkeydown)
onkeydown
- The onkeydown attributepublic final java.lang.String getOnkeypress()
public final void setOnkeypress(java.lang.String onkeypress)
onkeypress
- The onkeypress attributepublic final java.lang.String getOnkeyup()
public final void setOnkeyup(java.lang.String onkeyup)
onkeyup
- The onkeyup attributepublic final java.lang.String getOnmousedown()
public final void setOnmousedown(java.lang.String onmousedown)
onmousedown
- The onmousedown attributepublic final java.lang.String getOnmousemove()
public final void setOnmousemove(java.lang.String onmousemove)
onmousemove
- The onmousemove attributepublic final java.lang.String getOnmouseout()
public final void setOnmouseout(java.lang.String onmouseout)
onmouseout
- The onmouseout attributepublic final java.lang.String getOnmouseover()
public final void setOnmouseover(java.lang.String onmouseover)
onmouseover
- The onmouseover attributepublic final java.lang.String getOnmouseup()
public final void setOnmouseup(java.lang.String onmouseup)
onmouseup
- The onmouseup attribute
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |