JSF-Spring

de.mindmatters.faces.taglib.jsp
Class AbstractHtmlComponentTag

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
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
AbstractHtmlEventHandlerComponentTag

public abstract class AbstractHtmlComponentTag
extends AbstractUIComponentTag

AbstractHtmlComponentTag is a convenience base class that implements attributes needed for any concrete HTML 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
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

AbstractHtmlComponentTag

public AbstractHtmlComponentTag()
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 UIComponentTag

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 UIComponentTag
Parameters:
component - UIComponent whose properties are to be overridden

getStyle

public final java.lang.String getStyle()
Returns the css style.

Returns:
The css style attribute

setStyle

public final void setStyle(java.lang.String style)
Sets the css style attribute.

Parameters:
style - The css style attribute

getStyleClass

public final java.lang.String getStyleClass()
Returns the css style class.

Returns:
The css style class attribute

setStyleClass

public final void setStyleClass(java.lang.String styleClass)
Sets the css style class attribute.

Parameters:
styleClass - The css style class attribute

getTitle

public final java.lang.String getTitle()
Returns the title.

Returns:
The title attribute

setTitle

public final void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - The title attribute

getDir

public final java.lang.String getDir()
Returns the language direction.

Returns:
The language direction

setDir

public final void setDir(java.lang.String dir)
Sets the language direction.

Parameters:
dir - The language direction

getLang

public final java.lang.String getLang()
Returns the language.

Returns:
The language

setLang

public final void setLang(java.lang.String lang)
Sets the language.

Parameters:
lang - The language

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG