Package org.richfaces.component.html

Source Code of org.richfaces.component.html.HtmlRecursiveTreeNodesAdaptor

/**
* GENERATED FILE - DO NOT EDIT
*
*/

package org.richfaces.component.html;

import java.lang.String ;
import java.lang.Object ;
import org.richfaces.component.UIRecursiveTreeNodesAdaptor ;

import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;

/**
* Component-Type org.richfaces.RecursiveTreeNodesAdaptor
* Component-Family org.richfaces.RecursiveTreeNodesAdaptor
     *
*/
public class HtmlRecursiveTreeNodesAdaptor extends org.richfaces.component.UIRecursiveTreeNodesAdaptor {

  public static final String COMPONENT_TYPE = "org.richfaces.RecursiveTreeNodesAdaptor";

  /**
   *  Constructor to init default renderers
   */
  public HtmlRecursiveTreeNodesAdaptor (){
      }

// Component properties fields
    /**
   * var
   * A request-scope attribute via which the data object for the current collection element will be used when iterating
   */
      private String  _var = null; /* Default is null*/
         /**
   * includedRoot
   * This boolean expression is used to define which elements are processed appling to "roots" collection
   */
      private boolean  _includedRoot = true;   
  /**
   * Flag indicated what includedRoot is set.
   */
   private boolean _includedRootSet = false
         /**
   * includedNode
   * This boolean expression is used to define which elements are processed
   */
      private boolean  _includedNode = true;   
  /**
   * Flag indicated what includedNode is set.
   */
   private boolean _includedNodeSet = false
         /**
   * roots
   * Defines collection to use at the top of iteration
   */
      private Object  _roots = null; /* Default is null*/
          /**
   * included
   * This boolean expression is used to define which elements of both collections are processed
   */
      private boolean  _included = true;   
  /**
   * Flag indicated what included is set.
   */
   private boolean _includedSet = false
           /**
   * nodes
   * Defines collection to use at the other (non-top) levels of iteration
   */
      private Object  _nodes = null; /* Default is null*/
       
// Getters-setters
     /**
   * A request-scope attribute via which the data object for the current collection element will be used when iterating
   * Setter for var
   * @param var - new value
   */
   public void setVar( String  __var ){
    this._var = __var;
      }


   /**
   * A request-scope attribute via which the data object for the current collection element will be used when iterating
   * Getter for var
   * @return var value from local variable or value bindings
   */
   public String getVar(  ){
           if (null != this._var)
        {
            return this._var;
              }
        ValueBinding vb = getValueBinding("var");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * This boolean expression is used to define which elements are processed appling to "roots" collection
   * Setter for includedRoot
   * @param includedRoot - new value
   */
   public void setIncludedRoot( boolean  __includedRoot ){
    this._includedRoot = __includedRoot;
       this._includedRootSet = true;
      }


   /**
   * This boolean expression is used to define which elements are processed appling to "roots" collection
   * Getter for includedRoot
   * @return includedRoot value from local variable or value bindings
   */
   public boolean isIncludedRoot(  ){
        if(this._includedRootSet){
      return this._includedRoot;
     }
      ValueBinding vb = getValueBinding("includedRoot");
      if (vb != null) {
          Boolean value = (Boolean) vb.getValue(getFacesContext());
          if (null == value) {
          return this._includedRoot;
          }
          return (value.booleanValue());
      } else {
          return (this._includedRoot);
      }
      }
        /**
   * This boolean expression is used to define which elements are processed
   * Setter for includedNode
   * @param includedNode - new value
   */
   public void setIncludedNode( boolean  __includedNode ){
    this._includedNode = __includedNode;
       this._includedNodeSet = true;
      }


   /**
   * This boolean expression is used to define which elements are processed
   * Getter for includedNode
   * @return includedNode value from local variable or value bindings
   */
   public boolean isIncludedNode(  ){
        if(this._includedNodeSet){
      return this._includedNode;
     }
      ValueBinding vb = getValueBinding("includedNode");
      if (vb != null) {
          Boolean value = (Boolean) vb.getValue(getFacesContext());
          if (null == value) {
          return this._includedNode;
          }
          return (value.booleanValue());
      } else {
          return (this._includedNode);
      }
      }
        /**
   * Defines collection to use at the top of iteration
   * Setter for roots
   * @param roots - new value
   */
   public void setRoots( Object  __roots ){
    this._roots = __roots;
      }


   /**
   * Defines collection to use at the top of iteration
   * Getter for roots
   * @return roots value from local variable or value bindings
   */
   public Object getRoots(  ){
           if (null != this._roots)
        {
            return this._roots;
              }
        ValueBinding vb = getValueBinding("roots");
        if (null != vb){
            return (Object)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
         /**
   * This boolean expression is used to define which elements of both collections are processed
   * Setter for included
   * @param included - new value
   */
   public void setIncluded( boolean  __included ){
    this._included = __included;
       this._includedSet = true;
      }


   /**
   * This boolean expression is used to define which elements of both collections are processed
   * Getter for included
   * @return included value from local variable or value bindings
   */
   public boolean isIncluded(  ){
        if(this._includedSet){
      return this._included;
     }
      ValueBinding vb = getValueBinding("included");
      if (vb != null) {
          Boolean value = (Boolean) vb.getValue(getFacesContext());
          if (null == value) {
          return this._included;
          }
          return (value.booleanValue());
      } else {
          return (this._included);
      }
      }
          /**
   * Defines collection to use at the other (non-top) levels of iteration
   * Setter for nodes
   * @param nodes - new value
   */
   public void setNodes( Object  __nodes ){
    this._nodes = __nodes;
      }


   /**
   * Defines collection to use at the other (non-top) levels of iteration
   * Getter for nodes
   * @return nodes value from local variable or value bindings
   */
   public Object getNodes(  ){
           if (null != this._nodes)
        {
            return this._nodes;
              }
        ValueBinding vb = getValueBinding("nodes");
        if (null != vb){
            return (Object)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
     
// Component family.
  public static final String COMPONENT_FAMILY = "org.richfaces.RecursiveTreeNodesAdaptor";

  public String getFamily() {
    return COMPONENT_FAMILY;
  }

// Save state
// ----------------------------------------------------- StateHolder Methods


    public Object saveState(FacesContext context) {
        Object values[] = new Object[10];
        values[0] = super.saveState(context);
                 values[1] = _var;
         
            values[2] = new Boolean(_includedRoot);
          values[3] = Boolean.valueOf(_includedRootSet)
         
            values[4] = new Boolean(_includedNode);
          values[5] = Boolean.valueOf(_includedNodeSet)
         
                 values[6] = _roots;
         
             values[7] = new Boolean(_included);
          values[8] = Boolean.valueOf(_includedSet)
         
                   values[9] = _nodes;
         
       return values;
   }
  

    public void restoreState(FacesContext context, Object state) {
        Object values[] = (Object[]) state;
        super.restoreState(context, values[0]);
                 _var = (String)values[1] ;
         
            _includedRoot = ((Boolean)values[2]).booleanValue();
          _includedRootSet = ((Boolean)values[3]).booleanValue()
         
            _includedNode = ((Boolean)values[4]).booleanValue();
          _includedNodeSet = ((Boolean)values[5]).booleanValue()
         
                 _roots = (Object)values[6] ;
         
             _included = ((Boolean)values[7]).booleanValue();
          _includedSet = ((Boolean)values[8]).booleanValue()
         
                   _nodes = (Object)values[9] ;
         
    
   
 
// Utilites

}
TOP

Related Classes of org.richfaces.component.html.HtmlRecursiveTreeNodesAdaptor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.