Package org.richfaces.taglib.html.jsp

Source Code of org.richfaces.taglib.html.jsp.GraphValidator

/**
* GENERATED FILE - DO NOT EDIT
*
*/
package org.richfaces.taglib.html.jsp;

import java.lang.String ;
import java.lang.Object ;
import org.ajax4jsf.webapp.taglib.UIComponentTagBase ;
import java.util.Set ;
import javax.faces.component.UIComponent ;

import javax.el.ELException;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
import javax.el.MethodExpression;
import javax.faces.el.MethodBinding;
import javax.faces.el.ValueBinding;
import javax.el.ValueExpression;
import org.richfaces.webapp.taglib.MethodBindingMethodExpressionAdaptor;
import org.richfaces.webapp.taglib.ValueBindingValueExpressionAdaptor;
import org.richfaces.component.html.HtmlGraphValidator;

public class GraphValidator extends org.ajax4jsf.webapp.taglib.UIComponentTagBase {

    // Fields
                                         
    /*
     * profile
     * profile
     */
    private ValueExpression _profile;
    /**
     * profile
     * Setter for profile
     * @param profile - new value
     */
     public void setProfile( ValueExpression  __profile ){
      this._profile = __profile;
       }
   
                                     
    /*
     * summary
     * summary
     */
    private ValueExpression _summary;
    /**
     * summary
     * Setter for summary
     * @param summary - new value
     */
     public void setSummary( ValueExpression  __summary ){
      this._summary = __summary;
       }
   
                                
    /*
     * value
     * value
     */
    private ValueExpression _value;
    /**
     * value
     * Setter for value
     * @param value - new value
     */
     public void setValue( ValueExpression  __value ){
      this._value = __value;
       }
   
       
 
    public void release()
    {
        // TODO Auto-generated method stub
        super.release();
                                    this._profile = null;
                     this._summary = null;
                this._value = null;
       }
 
    /* (non-Javadoc)
     * @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#setProperties(javax.faces.component.UIComponent)
     */
    protected void setProperties(UIComponent component)
    {
        // TODO Auto-generated method stub
        super.setProperties(component);
    HtmlGraphValidator comp = (HtmlGraphValidator) component;
               
            if (this._profile != null) {
        if (this._profile.isLiteralText()) {
          try {
                       
            java.util.Set __profile = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._profile.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setProfile(__profile);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("profile", this._profile);
        }
      }
                         
            if (this._summary != null) {
        if (this._summary.isLiteralText()) {
          try {
                       
            java.lang.String __summary = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._summary.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSummary(__summary);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("summary", this._summary);
        }
      }
                        
            if (this._value != null) {
        if (this._value.isLiteralText()) {
          try {
                       
            java.lang.Object __value = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._value.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setValue(__value);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("value", this._value);
        }
      }
               }
 
  /* (non-Javadoc)
   * @see javax.faces.webapp.UIComponentTag#getComponentType()
   */
  public String getComponentType() {
    // TODO Auto-generated method stub
    return "org.richfaces.GraphValidator";
  }

  /* (non-Javadoc)
   * @see javax.faces.webapp.UIComponentTag#getRendererType()
   */
  public String getRendererType() {
        return null;
      }

}
TOP

Related Classes of org.richfaces.taglib.html.jsp.GraphValidator

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.