Package org.richfaces.taglib

Source Code of org.richfaces.taglib.ToggleControlTag

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

import java.lang.String ;
import java.lang.Object ;
import org.ajax4jsf.webapp.taglib.UIComponentTagBase ;
import javax.faces.el.MethodBinding ;
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.HtmlToggleControl;

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

    // Fields
                          
    /*
     * accesskey
     * Access key that, when pressed, transfers focus to this
        element
     */
    private ValueExpression _accesskey;
    /**
     * Access key that, when pressed, transfers focus to this
        element
     * Setter for accesskey
     * @param accesskey - new value
     */
     public void setAccesskey( ValueExpression  __accesskey ){
      this._accesskey = __accesskey;
       }
   
                      
    /*
     * action
     * MethodBinding pointing at the application action to be invoked,
            if this UIComponent is activated by you, during the Apply
            Request Values or Invoke Application phase of the request
            processing lifecycle, depending on the value of the immediate
            property
     */
    private MethodExpression _action;
    /**
     * MethodBinding pointing at the application action to be invoked,
            if this UIComponent is activated by you, during the Apply
            Request Values or Invoke Application phase of the request
            processing lifecycle, depending on the value of the immediate
            property
     * Setter for action
     * @param action - new value
     */
     public void setAction( MethodExpression  __action ){
      this._action = __action;
       }
   
                           
    /*
     * actionListener
     * MethodBinding pointing at method accepting  an ActionEvent with return type void
     */
    private MethodExpression _actionListener;
    /**
     * MethodBinding pointing at method accepting  an ActionEvent with return type void
     * Setter for actionListener
     * @param actionListener - new value
     */
     public void setActionListener( MethodExpression  __actionListener ){
      this._actionListener = __actionListener;
       }
   
                                          
    /*
     * ajaxSingle
     * Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
     */
    private ValueExpression _ajaxSingle;
    /**
     * Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
     * Setter for ajaxSingle
     * @param ajaxSingle - new value
     */
     public void setAjaxSingle( ValueExpression  __ajaxSingle ){
      this._ajaxSingle = __ajaxSingle;
       }
   
                                     
    /*
     * bypassUpdates
     * If "true", after process validations phase skip updates
        of model beans an force render response. Can be used for
        validate components input
     */
    private ValueExpression _bypassUpdates;
    /**
     * If "true", after process validations phase skip updates
        of model beans an force render response. Can be used for
        validate components input
     * Setter for bypassUpdates
     * @param bypassUpdates - new value
     */
     public void setBypassUpdates( ValueExpression  __bypassUpdates ){
      this._bypassUpdates = __bypassUpdates;
       }
   
                                
    /*
     * data
     * Serialized (on default with JSON) data passed on the client by a developer on AJAX request. It's accessible via "data.foo" syntax
     */
    private ValueExpression _data;
    /**
     * Serialized (on default with JSON) data passed on the client by a developer on AJAX request. It's accessible via "data.foo" syntax
     * Setter for data
     * @param data - new value
     */
     public void setData( ValueExpression  __data ){
      this._data = __data;
       }
   
                                
    /*
     * dir
     * Direction indication for text that does not inherit
        directionality. Possible values are "LTR" (left-to-right)
        and "RTL" (right-to-left).
     */
    private ValueExpression _dir;
    /**
     * Direction indication for text that does not inherit
        directionality. Possible values are "LTR" (left-to-right)
        and "RTL" (right-to-left).
     * Setter for dir
     * @param dir - new value
     */
     public void setDir( ValueExpression  __dir ){
      this._dir = __dir;
       }
   
                                
    /*
     * eventsQueue
     * Name of requests queue to avoid send next request before
        complete other from same event. Can be used to reduce
        number of requests of frequently events (key press,
        mouse move, etc.)
     */
    private ValueExpression _eventsQueue;
    /**
     * Name of requests queue to avoid send next request before
        complete other from same event. Can be used to reduce
        number of requests of frequently events (key press,
        mouse move, etc.)
     * Setter for eventsQueue
     * @param eventsQueue - new value
     */
     public void setEventsQueue( ValueExpression  __eventsQueue ){
      this._eventsQueue = __eventsQueue;
       }
   
                                     
    /*
     * focus
     * id of element to set focus after request completed on client side
     */
    private ValueExpression _focus;
    /**
     * id of element to set focus after request completed on client side
     * Setter for focus
     * @param focus - new value
     */
     public void setFocus( ValueExpression  __focus ){
      this._focus = __focus;
       }
   
                                
    /*
     * for
     * String, which contains id (in the format of a UIComponent.findComponent() call) of the target Toggle Panel.
     */
    private ValueExpression _for;
    /**
     * String, which contains id (in the format of a UIComponent.findComponent() call) of the target Toggle Panel.
     * Setter for for
     * @param for - new value
     */
     public void setFor( ValueExpression  __for ){
      this._for = __for;
       }
   
                                     
    /*
     * ignoreDupResponses
     * Attribute allows to ignore an Ajax Response produced by a request if the newest 'similar' request is
in a queue already. ignoreDupResponses="true" does not cancel the request while it is processed on the server,
but just allows to avoid unnecessary updates on the client side if the response isn't actual now
     */
    private ValueExpression _ignoreDupResponses;
    /**
     * Attribute allows to ignore an Ajax Response produced by a request if the newest 'similar' request is
in a queue already. ignoreDupResponses="true" does not cancel the request while it is processed on the server,
but just allows to avoid unnecessary updates on the client side if the response isn't actual now
     * Setter for ignoreDupResponses
     * @param ignoreDupResponses - new value
     */
     public void setIgnoreDupResponses( ValueExpression  __ignoreDupResponses ){
      this._ignoreDupResponses = __ignoreDupResponses;
       }
   
                                
    /*
     * immediate
     * True means, that the default ActionListener should be executed
            immediately (i.e. during Apply Request Values phase of the
            request processing lifecycle), rather than waiting until the
            Invoke Application phase
     */
    private ValueExpression _immediate;
    /**
     * True means, that the default ActionListener should be executed
            immediately (i.e. during Apply Request Values phase of the
            request processing lifecycle), rather than waiting until the
            Invoke Application phase
     * Setter for immediate
     * @param immediate - new value
     */
     public void setImmediate( ValueExpression  __immediate ){
      this._immediate = __immediate;
       }
   
                                
    /*
     * lang
     * Code describing the language used in the generated
        markup for this component
     */
    private ValueExpression _lang;
    /**
     * Code describing the language used in the generated
        markup for this component
     * Setter for lang
     * @param lang - new value
     */
     public void setLang( ValueExpression  __lang ){
      this._lang = __lang;
       }
   
                                
    /*
     * limitToList
     * If "true", updates on client side ONLY elements from this
        'reRender' property. if "false" (default) updates all
        rendered by ajax region components
     */
    private ValueExpression _limitToList;
    /**
     * If "true", updates on client side ONLY elements from this
        'reRender' property. if "false" (default) updates all
        rendered by ajax region components
     * Setter for limitToList
     * @param limitToList - new value
     */
     public void setLimitToList( ValueExpression  __limitToList ){
      this._limitToList = __limitToList;
       }
   
                                
    /*
     * onbeforedomupdate
     * JavaScript code for call before DOM has been updated on client side
     */
    private ValueExpression _onbeforedomupdate;
    /**
     * JavaScript code for call before DOM has been updated on client side
     * Setter for onbeforedomupdate
     * @param onbeforedomupdate - new value
     */
     public void setOnbeforedomupdate( ValueExpression  __onbeforedomupdate ){
      this._onbeforedomupdate = __onbeforedomupdate;
       }
   
                                
    /*
     * onblur
     * JavaScript code executed when this element loses focus
     */
    private ValueExpression _onblur;
    /**
     * JavaScript code executed when this element loses focus
     * Setter for onblur
     * @param onblur - new value
     */
     public void setOnblur( ValueExpression  __onblur ){
      this._onblur = __onblur;
       }
   
                                
    /*
     * onclick
     * JavaScript code executed when a pointer button is
        clicked over this element
     */
    private ValueExpression _onclick;
    /**
     * JavaScript code executed when a pointer button is
        clicked over this element
     * Setter for onclick
     * @param onclick - new value
     */
     public void setOnclick( ValueExpression  __onclick ){
      this._onclick = __onclick;
       }
   
                                
    /*
     * oncomplete
     * JavaScript code for call after request completed on
        client side
     */
    private ValueExpression _oncomplete;
    /**
     * JavaScript code for call after request completed on
        client side
     * Setter for oncomplete
     * @param oncomplete - new value
     */
     public void setOncomplete( ValueExpression  __oncomplete ){
      this._oncomplete = __oncomplete;
       }
   
                                
    /*
     * ondblclick
     * JavaScript code executed when a pointer button is double
        clicked over this element
     */
    private ValueExpression _ondblclick;
    /**
     * JavaScript code executed when a pointer button is double
        clicked over this element
     * Setter for ondblclick
     * @param ondblclick - new value
     */
     public void setOndblclick( ValueExpression  __ondblclick ){
      this._ondblclick = __ondblclick;
       }
   
                                
    /*
     * onfocus
     * JavaScript code executed when this element receives
        focus
     */
    private ValueExpression _onfocus;
    /**
     * JavaScript code executed when this element receives
        focus
     * Setter for onfocus
     * @param onfocus - new value
     */
     public void setOnfocus( ValueExpression  __onfocus ){
      this._onfocus = __onfocus;
       }
   
                                
    /*
     * onkeydown
     * JavaScript code executed when a key is pressed down over
        this element
     */
    private ValueExpression _onkeydown;
    /**
     * JavaScript code executed when a key is pressed down over
        this element
     * Setter for onkeydown
     * @param onkeydown - new value
     */
     public void setOnkeydown( ValueExpression  __onkeydown ){
      this._onkeydown = __onkeydown;
       }
   
                                
    /*
     * onkeypress
     * JavaScript code executed when a key is pressed and
        released over this element
     */
    private ValueExpression _onkeypress;
    /**
     * JavaScript code executed when a key is pressed and
        released over this element
     * Setter for onkeypress
     * @param onkeypress - new value
     */
     public void setOnkeypress( ValueExpression  __onkeypress ){
      this._onkeypress = __onkeypress;
       }
   
                                
    /*
     * onkeyup
     * JavaScript code executed when a key is released over
        this element
     */
    private ValueExpression _onkeyup;
    /**
     * JavaScript code executed when a key is released over
        this element
     * Setter for onkeyup
     * @param onkeyup - new value
     */
     public void setOnkeyup( ValueExpression  __onkeyup ){
      this._onkeyup = __onkeyup;
       }
   
                                
    /*
     * onmousedown
     * JavaScript code executed when a pointer button is
        pressed down over this element
     */
    private ValueExpression _onmousedown;
    /**
     * JavaScript code executed when a pointer button is
        pressed down over this element
     * Setter for onmousedown
     * @param onmousedown - new value
     */
     public void setOnmousedown( ValueExpression  __onmousedown ){
      this._onmousedown = __onmousedown;
       }
   
                                
    /*
     * onmousemove
     * JavaScript code executed when a pointer button is moved
        within this element
     */
    private ValueExpression _onmousemove;
    /**
     * JavaScript code executed when a pointer button is moved
        within this element
     * Setter for onmousemove
     * @param onmousemove - new value
     */
     public void setOnmousemove( ValueExpression  __onmousemove ){
      this._onmousemove = __onmousemove;
       }
   
                                
    /*
     * onmouseout
     * JavaScript code executed when a pointer button is moved
        away from this element
     */
    private ValueExpression _onmouseout;
    /**
     * JavaScript code executed when a pointer button is moved
        away from this element
     * Setter for onmouseout
     * @param onmouseout - new value
     */
     public void setOnmouseout( ValueExpression  __onmouseout ){
      this._onmouseout = __onmouseout;
       }
   
                                
    /*
     * onmouseover
     * JavaScript code executed when a pointer button is moved
        onto this element
     */
    private ValueExpression _onmouseover;
    /**
     * JavaScript code executed when a pointer button is moved
        onto this element
     * Setter for onmouseover
     * @param onmouseover - new value
     */
     public void setOnmouseover( ValueExpression  __onmouseover ){
      this._onmouseover = __onmouseover;
       }
   
                                
    /*
     * onmouseup
     * JavaScript code executed when a pointer button is
        released over this element
     */
    private ValueExpression _onmouseup;
    /**
     * JavaScript code executed when a pointer button is
        released over this element
     * Setter for onmouseup
     * @param onmouseup - new value
     */
     public void setOnmouseup( ValueExpression  __onmouseup ){
      this._onmouseup = __onmouseup;
       }
   
                                     
    /*
     * panelId
     * Attribute defines Id for corresponding panel
     */
    private ValueExpression _panelId;
    /**
     * Attribute defines Id for corresponding panel
     * Setter for panelId
     * @param panelId - new value
     */
     public void setPanelId( ValueExpression  __panelId ){
      this._panelId = __panelId;
       }
   
                                
    /*
     * process
     * Id['s] (in format of call  UIComponent.findComponent()) of components, processed at the phases 2-5 in case of AjaxRequest  caused by this component. Can be single id, comma-separated list of Id's, or EL Expression  with array or Collection
     */
    private ValueExpression _process;
    /**
     * Id['s] (in format of call  UIComponent.findComponent()) of components, processed at the phases 2-5 in case of AjaxRequest  caused by this component. Can be single id, comma-separated list of Id's, or EL Expression  with array or Collection
     * Setter for process
     * @param process - new value
     */
     public void setProcess( ValueExpression  __process ){
      this._process = __process;
       }
   
                                          
    /*
     * requestDelay
     * Attribute defines the time (in ms.) that the request will be wait in the queue before it is ready to send.
When the delay time is over, the request will be sent to the server or removed if the newest 'similar' request is in a queue already
     */
    private ValueExpression _requestDelay;
    /**
     * Attribute defines the time (in ms.) that the request will be wait in the queue before it is ready to send.
When the delay time is over, the request will be sent to the server or removed if the newest 'similar' request is in a queue already
     * Setter for requestDelay
     * @param requestDelay - new value
     */
     public void setRequestDelay( ValueExpression  __requestDelay ){
      this._requestDelay = __requestDelay;
       }
   
                                
    /*
     * similarityGroupingId
     * If there are any component requests with identical IDs then these requests will be grouped.
     */
    private ValueExpression _similarityGroupingId;
    /**
     * If there are any component requests with identical IDs then these requests will be grouped.
     * Setter for similarityGroupingId
     * @param similarityGroupingId - new value
     */
     public void setSimilarityGroupingId( ValueExpression  __similarityGroupingId ){
      this._similarityGroupingId = __similarityGroupingId;
       }
   
                                
    /*
     * status
     * ID (in format of call UIComponent.findComponent()) of
        Request status component
     */
    private ValueExpression _status;
    /**
     * ID (in format of call UIComponent.findComponent()) of
        Request status component
     * Setter for status
     * @param status - new value
     */
     public void setStatus( ValueExpression  __status ){
      this._status = __status;
       }
   
                                
    /*
     * style
     * CSS style(s) to be applied when this component is
        rendered
     */
    private ValueExpression _style;
    /**
     * CSS style(s) to be applied when this component is
        rendered
     * Setter for style
     * @param style - new value
     */
     public void setStyle( ValueExpression  __style ){
      this._style = __style;
       }
   
                                
    /*
     * styleClass
     * Space-separated list of CSS style class(es) to be
        applied when this element is rendered. This value must
        be passed through as the "class" attribute on generated
        markup
     */
    private ValueExpression _styleClass;
    /**
     * Space-separated list of CSS style class(es) to be
        applied when this element is rendered. This value must
        be passed through as the "class" attribute on generated
        markup
     * Setter for styleClass
     * @param styleClass - new value
     */
     public void setStyleClass( ValueExpression  __styleClass ){
      this._styleClass = __styleClass;
       }
   
                                
    /*
     * switchToState
     * Contains one of the facets names where target togglePanel is switched to
     */
    private ValueExpression _switchToState;
    /**
     * Contains one of the facets names where target togglePanel is switched to
     * Setter for switchToState
     * @param switchToState - new value
     */
     public void setSwitchToState( ValueExpression  __switchToState ){
      this._switchToState = __switchToState;
       }
   
                                
    /*
     * tabindex
     * Position of this element in the tabbing order for the
        current document. This value must be an integer between
        0 and 32767
     */
    private ValueExpression _tabindex;
    /**
     * Position of this element in the tabbing order for the
        current document. This value must be an integer between
        0 and 32767
     * Setter for tabindex
     * @param tabindex - new value
     */
     public void setTabindex( ValueExpression  __tabindex ){
      this._tabindex = __tabindex;
       }
   
                                
    /*
     * timeout
     * Response waiting time on a particular request. If a response is not received during this time, the request is aborted
     */
    private ValueExpression _timeout;
    /**
     * Response waiting time on a particular request. If a response is not received during this time, the request is aborted
     * Setter for timeout
     * @param timeout - new value
     */
     public void setTimeout( ValueExpression  __timeout ){
      this._timeout = __timeout;
       }
   
                                
    /*
     * title
     * Advisory title information about markup elements
        generated for this component
     */
    private ValueExpression _title;
    /**
     * Advisory title information about markup elements
        generated for this component
     * Setter for title
     * @param title - new value
     */
     public void setTitle( ValueExpression  __title ){
      this._title = __title;
       }
   
                                
    /*
     * value
     * Initial value to set when rendered for the first time
     */
    private ValueExpression _value;
    /**
     * Initial value to set when rendered for the first time
     * 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._accesskey = null;
                this._action = null;
                     this._actionListener = null;
                          this._ajaxSingle = null;
                     this._bypassUpdates = null;
                this._data = null;
                this._dir = null;
                this._eventsQueue = null;
                     this._focus = null;
                this._for = null;
                     this._ignoreDupResponses = null;
                this._immediate = null;
                this._lang = null;
                this._limitToList = null;
                this._onbeforedomupdate = null;
                this._onblur = null;
                this._onclick = null;
                this._oncomplete = null;
                this._ondblclick = null;
                this._onfocus = null;
                this._onkeydown = null;
                this._onkeypress = null;
                this._onkeyup = null;
                this._onmousedown = null;
                this._onmousemove = null;
                this._onmouseout = null;
                this._onmouseover = null;
                this._onmouseup = null;
                     this._panelId = null;
                this._process = null;
                          this._requestDelay = null;
                this._similarityGroupingId = null;
                this._status = null;
                this._style = null;
                this._styleClass = null;
                this._switchToState = null;
                this._tabindex = null;
                this._timeout = null;
                this._title = 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);
    HtmlToggleControl comp = (HtmlToggleControl) component;
            
            if (this._accesskey != null) {
        if (this._accesskey.isLiteralText()) {
          try {
                       
            java.lang.String __accesskey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._accesskey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setAccesskey(__accesskey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("accesskey", this._accesskey);
        }
      }
                        setActionProperty(comp, this._action);
                   setActionListenerProperty(comp, this._actionListener);
                    
            if (this._ajaxSingle != null) {
        if (this._ajaxSingle.isLiteralText()) {
          try {
                       
            Boolean __ajaxSingle = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxSingle.getExpressionString(),
                      Boolean.class);
         
                        comp.setAjaxSingle(__ajaxSingle.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxSingle", this._ajaxSingle);
        }
      }
                         
            if (this._bypassUpdates != null) {
        if (this._bypassUpdates.isLiteralText()) {
          try {
                       
            Boolean __bypassUpdates = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._bypassUpdates.getExpressionString(),
                      Boolean.class);
         
                        comp.setBypassUpdates(__bypassUpdates.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("bypassUpdates", this._bypassUpdates);
        }
      }
                        
            if (this._data != null) {
        if (this._data.isLiteralText()) {
          try {
                       
            java.lang.Object __data = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._data.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setData(__data);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("data", this._data);
        }
      }
                        
            if (this._dir != null) {
        if (this._dir.isLiteralText()) {
          try {
                       
            java.lang.String __dir = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._dir.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDir(__dir);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("dir", this._dir);
        }
      }
                        
            if (this._eventsQueue != null) {
        if (this._eventsQueue.isLiteralText()) {
          try {
                       
            java.lang.String __eventsQueue = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._eventsQueue.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setEventsQueue(__eventsQueue);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("eventsQueue", this._eventsQueue);
        }
      }
                         
            if (this._focus != null) {
        if (this._focus.isLiteralText()) {
          try {
                       
            java.lang.String __focus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._focus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFocus(__focus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("focus", this._focus);
        }
      }
                        
            if (this._for != null) {
        if (this._for.isLiteralText()) {
          try {
                       
            java.lang.String __for = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._for.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setFor(__for);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("for", this._for);
        }
      }
                         
            if (this._ignoreDupResponses != null) {
        if (this._ignoreDupResponses.isLiteralText()) {
          try {
                       
            Boolean __ignoreDupResponses = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ignoreDupResponses.getExpressionString(),
                      Boolean.class);
         
                        comp.setIgnoreDupResponses(__ignoreDupResponses.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ignoreDupResponses", this._ignoreDupResponses);
        }
      }
                        
            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._lang != null) {
        if (this._lang.isLiteralText()) {
          try {
                       
            java.lang.String __lang = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._lang.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLang(__lang);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("lang", this._lang);
        }
      }
                        
            if (this._limitToList != null) {
        if (this._limitToList.isLiteralText()) {
          try {
                       
            Boolean __limitToList = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._limitToList.getExpressionString(),
                      Boolean.class);
         
                        comp.setLimitToList(__limitToList.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("limitToList", this._limitToList);
        }
      }
                        
            if (this._onbeforedomupdate != null) {
        if (this._onbeforedomupdate.isLiteralText()) {
          try {
                       
            java.lang.String __onbeforedomupdate = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onbeforedomupdate.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnbeforedomupdate(__onbeforedomupdate);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onbeforedomupdate", this._onbeforedomupdate);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onclick != null) {
        if (this._onclick.isLiteralText()) {
          try {
                       
            java.lang.String __onclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclick(__onclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclick", this._onclick);
        }
      }
                        
            if (this._oncomplete != null) {
        if (this._oncomplete.isLiteralText()) {
          try {
                       
            java.lang.String __oncomplete = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._oncomplete.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOncomplete(__oncomplete);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("oncomplete", this._oncomplete);
        }
      }
                        
            if (this._ondblclick != null) {
        if (this._ondblclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondblclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondblclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndblclick(__ondblclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondblclick", this._ondblclick);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                        
            if (this._onkeydown != null) {
        if (this._onkeydown.isLiteralText()) {
          try {
                       
            java.lang.String __onkeydown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeydown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeydown(__onkeydown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeydown", this._onkeydown);
        }
      }
                        
            if (this._onkeypress != null) {
        if (this._onkeypress.isLiteralText()) {
          try {
                       
            java.lang.String __onkeypress = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeypress.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeypress(__onkeypress);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeypress", this._onkeypress);
        }
      }
                        
            if (this._onkeyup != null) {
        if (this._onkeyup.isLiteralText()) {
          try {
                       
            java.lang.String __onkeyup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeyup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeyup(__onkeyup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeyup", this._onkeyup);
        }
      }
                        
            if (this._onmousedown != null) {
        if (this._onmousedown.isLiteralText()) {
          try {
                       
            java.lang.String __onmousedown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousedown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousedown(__onmousedown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousedown", this._onmousedown);
        }
      }
                        
            if (this._onmousemove != null) {
        if (this._onmousemove.isLiteralText()) {
          try {
                       
            java.lang.String __onmousemove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousemove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousemove(__onmousemove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousemove", this._onmousemove);
        }
      }
                        
            if (this._onmouseout != null) {
        if (this._onmouseout.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseout(__onmouseout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseout", this._onmouseout);
        }
      }
                        
            if (this._onmouseover != null) {
        if (this._onmouseover.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseover = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseover.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseover(__onmouseover);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseover", this._onmouseover);
        }
      }
                        
            if (this._onmouseup != null) {
        if (this._onmouseup.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseup(__onmouseup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseup", this._onmouseup);
        }
      }
                                  if(null != this._panelId && this._panelId.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ToggleControl with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property panelId");
        }
      
            if (this._panelId != null) {
        if (this._panelId.isLiteralText()) {
          try {
                       
            java.lang.String __panelId = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._panelId.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setPanelId(__panelId);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("panelId", this._panelId);
        }
      }
                        
            if (this._process != null) {
        if (this._process.isLiteralText()) {
          try {
                       
            java.lang.Object __process = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._process.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setProcess(__process);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("process", this._process);
        }
      }
                          
            if (this._requestDelay != null) {
        if (this._requestDelay.isLiteralText()) {
          try {
                       
            Integer __requestDelay = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requestDelay.getExpressionString(),
                      Integer.class);
         
                        comp.setRequestDelay(__requestDelay.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requestDelay", this._requestDelay);
        }
      }
                        
            if (this._similarityGroupingId != null) {
        if (this._similarityGroupingId.isLiteralText()) {
          try {
                       
            java.lang.String __similarityGroupingId = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._similarityGroupingId.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSimilarityGroupingId(__similarityGroupingId);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("similarityGroupingId", this._similarityGroupingId);
        }
      }
                        
            if (this._status != null) {
        if (this._status.isLiteralText()) {
          try {
                       
            java.lang.String __status = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._status.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStatus(__status);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("status", this._status);
        }
      }
                        
            if (this._style != null) {
        if (this._style.isLiteralText()) {
          try {
                       
            java.lang.String __style = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._style.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStyle(__style);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("style", this._style);
        }
      }
                        
            if (this._styleClass != null) {
        if (this._styleClass.isLiteralText()) {
          try {
                       
            java.lang.String __styleClass = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._styleClass.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setStyleClass(__styleClass);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("styleClass", this._styleClass);
        }
      }
                        
            if (this._switchToState != null) {
        if (this._switchToState.isLiteralText()) {
          try {
                       
            java.lang.String __switchToState = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._switchToState.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSwitchToState(__switchToState);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("switchToState", this._switchToState);
        }
      }
                        
            if (this._tabindex != null) {
        if (this._tabindex.isLiteralText()) {
          try {
                       
            java.lang.String __tabindex = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._tabindex.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTabindex(__tabindex);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("tabindex", this._tabindex);
        }
      }
                        
            if (this._timeout != null) {
        if (this._timeout.isLiteralText()) {
          try {
                       
            Integer __timeout = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._timeout.getExpressionString(),
                      Integer.class);
         
                        comp.setTimeout(__timeout.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("timeout", this._timeout);
        }
      }
                        
            if (this._title != null) {
        if (this._title.isLiteralText()) {
          try {
                       
            java.lang.String __title = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._title.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTitle(__title);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("title", this._title);
        }
      }
                                 if(null != this._value && this._value.isLiteralText()){
          throw new IllegalArgumentException("Component org.richfaces.ToggleControl with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property value");
        }
      
            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.ToggleControl";
  }

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

}
TOP

Related Classes of org.richfaces.taglib.ToggleControlTag

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.