com.mycompany.jsf.taglib
Class TreeTag

java.lang.Object
  extended byjavax.faces.webapp.UIComponentTag
      extended bycom.mycompany.jsf.taglib.TreeTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public class TreeTag
extends javax.faces.webapp.UIComponentTag

This class is a tag handler that creates and configures a "com.mycompany.Tree" component with a "com.mycompany.Tree" renderer.

Version:
1.0
Author:
Hans Bergsten, Gefion Software

Field Summary
private  java.lang.String value
           
private  java.lang.String var
           
private  java.lang.String varNodeToggler
           
 
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
TreeTag()
           
 
Method Summary
 java.lang.String getComponentType()
          Returns "com.mycompany.Tree".
 java.lang.String getRendererType()
          Returns "com.mycompany.Tree".
protected  void setProperties(javax.faces.component.UIComponent component)
          Configures the component based on the tag handler property values.
 void setValue(java.lang.String value)
          Sets the component's value, which must be a JSF value binding expression for a "com.mycompany.jsf.model.TreeModel" or a "com.mycompany.jsf.model.TreeNode" instance.
 void setVar(java.lang.String var)
          Sets the value of the "var" property, i.e., the name of the request scope variable that holds the current node being processed.
 void setVarNodeToggler(java.lang.String varNodeToggler)
          Sets the value of the "varNodeToggler" property, i.e., the name of the request scope variable that holds an instance of a class with a toggleExpanded() action method that toggles the value of the "expanded" property for the node it's bound to.
 
Methods inherited from class javax.faces.webapp.UIComponentTag
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, release, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private java.lang.String value

var

private java.lang.String var

varNodeToggler

private java.lang.String varNodeToggler
Constructor Detail

TreeTag

public TreeTag()
Method Detail

setValue

public void setValue(java.lang.String value)
Sets the component's value, which must be a JSF value binding expression for a "com.mycompany.jsf.model.TreeModel" or a "com.mycompany.jsf.model.TreeNode" instance.


setVar

public void setVar(java.lang.String var)
Sets the value of the "var" property, i.e., the name of the request scope variable that holds the current node being processed.


setVarNodeToggler

public void setVarNodeToggler(java.lang.String varNodeToggler)
Sets the value of the "varNodeToggler" property, i.e., the name of the request scope variable that holds an instance of a class with a toggleExpanded() action method that toggles the value of the "expanded" property for the node it's bound to.


getComponentType

public java.lang.String getComponentType()
Returns "com.mycompany.Tree".


getRendererType

public java.lang.String getRendererType()
Returns "com.mycompany.Tree".


setProperties

protected void setProperties(javax.faces.component.UIComponent component)
Configures the component based on the tag handler property values.