JSF-Spring

de.mindmatters.faces.taglib.jsp
Class AbstractHtmlEventHandlerComponentTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTag
      extended by de.mindmatters.faces.taglib.jsp.AbstractUIComponentTag
          extended by de.mindmatters.faces.taglib.jsp.AbstractHtmlComponentTag
              extended by de.mindmatters.faces.taglib.jsp.AbstractHtmlEventHandlerComponentTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
AbstractHtmlActionSourceComponentTag

public abstract class AbstractHtmlEventHandlerComponentTag
extends AbstractHtmlComponentTag

AbstractHtmlEventHandlerComponentTag is a convenience base class that implements attributes needed for any concrete HTML event handler jsp tag.

Author:
Andreas Kuhrwahl

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 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.
 
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

AbstractHtmlEventHandlerComponentTag

public AbstractHtmlEventHandlerComponentTag()
Method Detail

release

public void release()

Release any resources allocated during the execution of this tag handler.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class AbstractHtmlComponentTag

setProperties

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:

Overrides:
setProperties in class AbstractHtmlComponentTag
Parameters:
component - UIComponent whose properties are to be overridden

getOnclick

public final java.lang.String getOnclick()
Returns the onclick value.

Returns:
The onclick value

setOnclick

public final void setOnclick(java.lang.String onclick)
Sets the onclick attribute.

Parameters:
onclick - The onclick attribute

getOndblclick

public final java.lang.String getOndblclick()
Returns the ondblclick value.

Returns:
The ondblclick value

setOndblclick

public final void setOndblclick(java.lang.String ondblclick)
Sets the ondblclick attribute.

Parameters:
ondblclick - The ondblclick attribute

getOnkeydown

public final java.lang.String getOnkeydown()
Returns the onkeydown value.

Returns:
The onkeydown value

setOnkeydown

public final void setOnkeydown(java.lang.String onkeydown)
Sets the onkeydown attribute.

Parameters:
onkeydown - The onkeydown attribute

getOnkeypress

public final java.lang.String getOnkeypress()
Returns the onkeypress value.

Returns:
The onkeypress value

setOnkeypress

public final void setOnkeypress(java.lang.String onkeypress)
Sets the onkeypress attribute.

Parameters:
onkeypress - The onkeypress attribute

getOnkeyup

public final java.lang.String getOnkeyup()
Returns the onkeyup value.

Returns:
The onkeyup value

setOnkeyup

public final void setOnkeyup(java.lang.String onkeyup)
Sets the onkeyup attribute.

Parameters:
onkeyup - The onkeyup attribute

getOnmousedown

public final java.lang.String getOnmousedown()
Returns the onmousedown value.

Returns:
The onmousedown value

setOnmousedown

public final void setOnmousedown(java.lang.String onmousedown)
Sets the onmousedown attribute.

Parameters:
onmousedown - The onmousedown attribute

getOnmousemove

public final java.lang.String getOnmousemove()
Returns the onmousemove value.

Returns:
The onmousemove value

setOnmousemove

public final void setOnmousemove(java.lang.String onmousemove)
Sets the onmousemove attribute.

Parameters:
onmousemove - The onmousemove attribute

getOnmouseout

public final java.lang.String getOnmouseout()
Returns the onmouseout value.

Returns:
The onmouseout value

setOnmouseout

public final void setOnmouseout(java.lang.String onmouseout)
Sets the onmouseout attribute.

Parameters:
onmouseout - The onmouseout attribute

getOnmouseover

public final java.lang.String getOnmouseover()
Returns the onmouseover value.

Returns:
The onmouseover value

setOnmouseover

public final void setOnmouseover(java.lang.String onmouseover)
Sets the onmouseover attribute.

Parameters:
onmouseover - The onmouseover attribute

getOnmouseup

public final java.lang.String getOnmouseup()
Returns the onmouseup value.

Returns:
The onmouseup value

setOnmouseup

public final void setOnmouseup(java.lang.String onmouseup)
Sets the onmouseup attribute.

Parameters:
onmouseup - The onmouseup attribute

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG