org.apache.myfaces.tobago.taglib.component
Class TabChangeListenerTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.tobago.taglib.component.TabChangeListenerTag
All Implemented Interfaces:
java.io.Serializable, IterationTag, JspTag, Tag

public class TabChangeListenerTag
extends TagSupport

Register an TabChangedListener instance on the UIComponent associated with the closest parent UIComponent custom action.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
TabChangeListenerTag()
           
 
Method Summary
protected  TabChangeListener createTabChangeListener(java.lang.String className)
          Create and return a new TabChangeListener to be registered on our surrounding UIComponent.
 int doStartTag()
          Create a new instance of the specified TabChangeListener class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentTag instance, if the UIComponent instance was created by this execution of the containing JSP page.
 void release()
          Release references to any acquired resources.
 void setBinding(java.lang.String binding)
          The value binding expression to a TabChangeListener.
 void setListener(java.lang.String listener)
          A method binding expression to a processTabChange(TabChangeEvent tabChangeEvent) method.
 void setType(java.lang.String type)
          Fully qualified Java class name of a TabChangeListener to be created and registered.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabChangeListenerTag

public TabChangeListenerTag()
Method Detail

setType

public void setType(java.lang.String type)
Fully qualified Java class name of a TabChangeListener to be created and registered.


setBinding

public void setBinding(java.lang.String binding)
The value binding expression to a TabChangeListener.


setListener

public void setListener(java.lang.String listener)
A method binding expression to a processTabChange(TabChangeEvent tabChangeEvent) method.


doStartTag

public int doStartTag()
               throws JspException

Create a new instance of the specified TabChangeListener class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentTag instance, if the UIComponent instance was created by this execution of the containing JSP page.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Throws:
JspException - if a JSP error occurs

release

public void release()

Release references to any acquired resources.

Specified by:
release in interface Tag
Overrides:
release in class TagSupport

createTabChangeListener

protected TabChangeListener createTabChangeListener(java.lang.String className)
                                             throws JspException

Create and return a new TabChangeListener to be registered on our surrounding UIComponent.

Throws:
JspException - if a new instance cannot be created


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.