Package org.richfaces.taglib

Source Code of org.richfaces.taglib.ColorPickerTag

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

import java.lang.String ;
import javax.faces.convert.Converter ;
import java.lang.Object ;
import org.ajax4jsf.webapp.taglib.HtmlComponentTagBase ;
import javax.faces.el.MethodBinding ;
import java.lang.Boolean ;
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.HtmlColorPicker;

public class ColorPickerTag extends org.ajax4jsf.webapp.taglib.HtmlComponentTagBase {

    // Fields
                               
    /*
     * colorMode
     * Defines a color mode for the component input. Possible values are hex, rgb.
     */
    private ValueExpression _colorMode;
    /**
     * Defines a color mode for the component input. Possible values are hex, rgb.
     * Setter for colorMode
     * @param colorMode - new value
     */
     public void setColorMode( ValueExpression  __colorMode ){
      this._colorMode = __colorMode;
       }
   
                                
    /*
     * converter
     * Id of Converter to be used or reference to a Converter
     */
    private ValueExpression _converter;
    /**
     * Id of Converter to be used or reference to a Converter
     * Setter for converter
     * @param converter - new value
     */
     public void setConverter( ValueExpression  __converter ){
      this._converter = __converter;
       }
   
                                
    /*
     * converterMessage
     * A ValueExpression enabled attribute that, if present,
      will be used as the text of the converter message,
      replacing any message that comes from the converter
     */
    private ValueExpression _converterMessage;
    /**
     * A ValueExpression enabled attribute that, if present,
      will be used as the text of the converter message,
      replacing any message that comes from the converter
     * Setter for converterMessage
     * @param converterMessage - new value
     */
     public void setConverterMessage( ValueExpression  __converterMessage ){
      this._converterMessage = __converterMessage;
       }
   
                                     
    /*
     * flat
     * Defines whether the component will be rendered flat.
     */
    private ValueExpression _flat;
    /**
     * Defines whether the component will be rendered flat.
     * Setter for flat
     * @param flat - new value
     */
     public void setFlat( ValueExpression  __flat ){
      this._flat = __flat;
       }
   
                                     
    /*
     * immediate
     * A flag indicating that this component value must be converted
            and validated immediately (that is, during Apply Request Values
            phase), rather than waiting until a Process Validations phase
     */
    private ValueExpression _immediate;
    /**
     * A flag indicating that this component value must be converted
            and validated immediately (that is, during Apply Request Values
            phase), rather than waiting until a Process Validations phase
     * Setter for immediate
     * @param immediate - new value
     */
     public void setImmediate( ValueExpression  __immediate ){
      this._immediate = __immediate;
       }
   
                                          
    /*
     * onbeforeshow
     * The client side script method to be called before the component widget is opened
     */
    private ValueExpression _onbeforeshow;
    /**
     * The client side script method to be called before the component widget is opened
     * Setter for onbeforeshow
     * @param onbeforeshow - new value
     */
     public void setOnbeforeshow( ValueExpression  __onbeforeshow ){
      this._onbeforeshow = __onbeforeshow;
       }
   
                                
    /*
     * onchange
     * The client side script method to be called when the element value was changed
     */
    private ValueExpression _onchange;
    /**
     * The client side script method to be called when the element value was changed
     * Setter for onchange
     * @param onchange - new value
     */
     public void setOnchange( ValueExpression  __onchange ){
      this._onchange = __onchange;
       }
   
                                          
    /*
     * onhide
     * The client side script method to be called before the component widget is hidden
     */
    private ValueExpression _onhide;
    /**
     * The client side script method to be called before the component widget is hidden
     * Setter for onhide
     * @param onhide - new value
     */
     public void setOnhide( ValueExpression  __onhide ){
      this._onhide = __onhide;
       }
   
                                                                        
    /*
     * onselect
     * The client side script method to be called when the color is selected
     */
    private ValueExpression _onselect;
    /**
     * The client side script method to be called when the color is selected
     * Setter for onselect
     * @param onselect - new value
     */
     public void setOnselect( ValueExpression  __onselect ){
      this._onselect = __onselect;
       }
   
                                
    /*
     * onshow
     * The client side script method to be called when the component widget is displayed
     */
    private ValueExpression _onshow;
    /**
     * The client side script method to be called when the component widget is displayed
     * Setter for onshow
     * @param onshow - new value
     */
     public void setOnshow( ValueExpression  __onshow ){
      this._onshow = __onshow;
       }
   
                                     
    /*
     * required
     * If "true", this component is checked for non-empty input
     */
    private ValueExpression _required;
    /**
     * If "true", this component is checked for non-empty input
     * Setter for required
     * @param required - new value
     */
     public void setRequired( ValueExpression  __required ){
      this._required = __required;
       }
   
                                
    /*
     * requiredMessage
     * A ValueExpression enabled attribute that, if present,
      will be used as the text of the validation message for
      the "required" facility, if the "required" facility is
      used
     */
    private ValueExpression _requiredMessage;
    /**
     * A ValueExpression enabled attribute that, if present,
      will be used as the text of the validation message for
      the "required" facility, if the "required" facility is
      used
     * Setter for requiredMessage
     * @param requiredMessage - new value
     */
     public void setRequiredMessage( ValueExpression  __requiredMessage ){
      this._requiredMessage = __requiredMessage;
       }
   
                                
    /*
     * showEvent
     * Defines the event that triggers the colorPicker.
            Default value is "onclick".
     */
    private ValueExpression _showEvent;
    /**
     * Defines the event that triggers the colorPicker.
            Default value is "onclick".
     * Setter for showEvent
     * @param showEvent - new value
     */
     public void setShowEvent( ValueExpression  __showEvent ){
      this._showEvent = __showEvent;
       }
   
                           
    /*
     * validator
     * MethodBinding pointing at a method that is called during
            Process Validations phase of the request processing lifecycle,
            to validate the current value of this component
     */
    private MethodExpression _validator;
    /**
     * MethodBinding pointing at a method that is called during
            Process Validations phase of the request processing lifecycle,
            to validate the current value of this component
     * Setter for validator
     * @param validator - new value
     */
     public void setValidator( MethodExpression  __validator ){
      this._validator = __validator;
       }
   
                                
    /*
     * validatorMessage
     * A ValueExpression enabled attribute that, if present,
      will be used as the text of the validator message,
      replacing any message that comes from the validator
     */
    private ValueExpression _validatorMessage;
    /**
     * A ValueExpression enabled attribute that, if present,
      will be used as the text of the validator message,
      replacing any message that comes from the validator
     * Setter for validatorMessage
     * @param validatorMessage - new value
     */
     public void setValidatorMessage( ValueExpression  __validatorMessage ){
      this._validatorMessage = __validatorMessage;
       }
   
                                     
    /*
     * value
     * The current value of this component
     */
    private ValueExpression _value;
    /**
     * The current value of this component
     * Setter for value
     * @param value - new value
     */
     public void setValue( ValueExpression  __value ){
      this._value = __value;
       }
   
                      
    /*
     * valueChangeListener
     * Listener for value changes
     */
    private MethodExpression _valueChangeListener;
    /**
     * Listener for value changes
     * Setter for valueChangeListener
     * @param valueChangeListener - new value
     */
     public void setValueChangeListener( MethodExpression  __valueChangeListener ){
      this._valueChangeListener = __valueChangeListener;
       }
   
            
 
    public void release()
    {
        // TODO Auto-generated method stub
        super.release();
                          this._colorMode = null;
                this._converter = null;
                this._converterMessage = null;
                     this._flat = null;
                     this._immediate = null;
                          this._onbeforeshow = null;
                this._onchange = null;
                          this._onhide = null;
                                                        this._onselect = null;
                this._onshow = null;
                     this._required = null;
                this._requiredMessage = null;
                this._showEvent = null;
                     this._validator = null;
                this._validatorMessage = null;
                     this._value = null;
                this._valueChangeListener = 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);
    HtmlColorPicker comp = (HtmlColorPicker) component;
             
            if (this._colorMode != null) {
        if (this._colorMode.isLiteralText()) {
          try {
                       
            java.lang.String __colorMode = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._colorMode.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setColorMode(__colorMode);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("colorMode", this._colorMode);
        }
      }
                        setConverterProperty(comp, this._converter);
                  
            if (this._converterMessage != null) {
        if (this._converterMessage.isLiteralText()) {
          try {
                       
            java.lang.String __converterMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._converterMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setConverterMessage(__converterMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("converterMessage", this._converterMessage);
        }
      }
                         
            if (this._flat != null) {
        if (this._flat.isLiteralText()) {
          try {
                       
            java.lang.Boolean __flat = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._flat.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setFlat(__flat);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("flat", this._flat);
        }
      }
                         
            if (this._immediate != null) {
        if (this._immediate.isLiteralText()) {
          try {
                       
            Boolean __immediate = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._immediate.getExpressionString(),
                      Boolean.class);
         
                        comp.setImmediate(__immediate.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("immediate", this._immediate);
        }
      }
                          
            if (this._onbeforeshow != null) {
        if (this._onbeforeshow.isLiteralText()) {
          try {
                       
            java.lang.String __onbeforeshow = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onbeforeshow.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnbeforeshow(__onbeforeshow);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onbeforeshow", this._onbeforeshow);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                          
            if (this._onhide != null) {
        if (this._onhide.isLiteralText()) {
          try {
                       
            java.lang.String __onhide = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onhide.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnhide(__onhide);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onhide", this._onhide);
        }
      }
                                
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                        
            if (this._onshow != null) {
        if (this._onshow.isLiteralText()) {
          try {
                       
            java.lang.String __onshow = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onshow.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnshow(__onshow);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onshow", this._onshow);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                        
            if (this._showEvent != null) {
        if (this._showEvent.isLiteralText()) {
          try {
                       
            java.lang.String __showEvent = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._showEvent.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setShowEvent(__showEvent);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("showEvent", this._showEvent);
        }
      }
                         setValidatorProperty(comp, this._validator);
                  
            if (this._validatorMessage != null) {
        if (this._validatorMessage.isLiteralText()) {
          try {
                       
            java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._validatorMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setValidatorMessage(__validatorMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("validatorMessage", this._validatorMessage);
        }
      }
                         
            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);
        }
      }
                        setValueChangeListenerProperty(comp, this._valueChangeListener);
          }
 
  /* (non-Javadoc)
   * @see javax.faces.webapp.UIComponentTag#getComponentType()
   */
  public String getComponentType() {
    // TODO Auto-generated method stub
    return "org.richfaces.ColorPicker";
  }

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

}
TOP

Related Classes of org.richfaces.taglib.ColorPickerTag

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.