Package org.richfaces.taglib

Source Code of org.richfaces.taglib.HotKeyTag

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

import java.lang.String ;
import org.ajax4jsf.webapp.taglib.HtmlComponentTagBase ;
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.HtmlHotKey;

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

    // Fields
                               
    /*
     * checkParent
     * Defines the hotkey handling of events generated by child components nested into the parent component to which the <rich:hotKey> is attached.
     */
    private ValueExpression _checkParent;
    /**
     * Defines the hotkey handling of events generated by child components nested into the parent component to which the <rich:hotKey> is attached.
     * Setter for checkParent
     * @param checkParent - new value
     */
     public void setCheckParent( ValueExpression  __checkParent ){
      this._checkParent = __checkParent;
       }
   
                                
    /*
     * disableInInput
     * Disables the hotkeys activated on input elements when the value of this attribute is "true".
     */
    private ValueExpression _disableInInput;
    /**
     * Disables the hotkeys activated on input elements when the value of this attribute is "true".
     * Setter for disableInInput
     * @param disableInInput - new value
     */
     public void setDisableInInput( ValueExpression  __disableInInput ){
      this._disableInInput = __disableInInput;
       }
   
                                
    /*
     * disableInInputTypes
     * Defines the types of the inputs not to be influenced with hotKey component. Possible values: buttons, texts and all (default). By default it is empty and this means ALL the types.
     */
    private ValueExpression _disableInInputTypes;
    /**
     * Defines the types of the inputs not to be influenced with hotKey component. Possible values: buttons, texts and all (default). By default it is empty and this means ALL the types.
     * Setter for disableInInputTypes
     * @param disableInInputTypes - new value
     */
     public void setDisableInInputTypes( ValueExpression  __disableInInputTypes ){
      this._disableInInputTypes = __disableInInputTypes;
       }
   
                                     
    /*
     * handler
     * Defines the JavaScript function name which is called on hotkey activation
     */
    private ValueExpression _handler;
    /**
     * Defines the JavaScript function name which is called on hotkey activation
     * Setter for handler
     * @param handler - new value
     */
     public void setHandler( ValueExpression  __handler ){
      this._handler = __handler;
       }
   
                                     
    /*
     * key
     * Defines the hotkey itself
     */
    private ValueExpression _key;
    /**
     * Defines the hotkey itself
     * Setter for key
     * @param key - new value
     */
     public void setKey( ValueExpression  __key ){
      this._key = __key;
       }
   
                                     
    /*
     * selector
     * Defines a selector for query
     */
    private ValueExpression _selector;
    /**
     * Defines a selector for query
     * Setter for selector
     * @param selector - new value
     */
     public void setSelector( ValueExpression  __selector ){
      this._selector = __selector;
       }
   
                                
    /*
     * timing
     * Defines the time when the hotkey is registered. Possible values are "immediate" (by default), "onload", and "onregistercall".
     */
    private ValueExpression _timing;
    /**
     * Defines the time when the hotkey is registered. Possible values are "immediate" (by default), "onload", and "onregistercall".
     * Setter for timing
     * @param timing - new value
     */
     public void setTiming( ValueExpression  __timing ){
      this._timing = __timing;
       }
   
                                
    /*
     * type
     * Defines the type of a keyboard event (onkeyup, onkeypress, etc.)
     */
    private ValueExpression _type;
    /**
     * Defines the type of a keyboard event (onkeyup, onkeypress, etc.)
     * Setter for type
     * @param type - new value
     */
     public void setType( ValueExpression  __type ){
      this._type = __type;
       }
   
       
 
    public void release()
    {
        // TODO Auto-generated method stub
        super.release();
                          this._checkParent = null;
                this._disableInInput = null;
                this._disableInInputTypes = null;
                     this._handler = null;
                     this._key = null;
                     this._selector = null;
                this._timing = null;
                this._type = 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);
    HtmlHotKey comp = (HtmlHotKey) component;
             
            if (this._checkParent != null) {
        if (this._checkParent.isLiteralText()) {
          try {
                       
            java.lang.Boolean __checkParent = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._checkParent.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setCheckParent(__checkParent);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("checkParent", this._checkParent);
        }
      }
                        
            if (this._disableInInput != null) {
        if (this._disableInInput.isLiteralText()) {
          try {
                       
            java.lang.Boolean __disableInInput = (java.lang.Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disableInInput.getExpressionString(),
                      java.lang.Boolean.class);
         
                        comp.setDisableInInput(__disableInInput);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disableInInput", this._disableInInput);
        }
      }
                        
            if (this._disableInInputTypes != null) {
        if (this._disableInInputTypes.isLiteralText()) {
          try {
                       
            java.lang.String __disableInInputTypes = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._disableInInputTypes.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setDisableInInputTypes(__disableInInputTypes);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("disableInInputTypes", this._disableInInputTypes);
        }
      }
                         
            if (this._handler != null) {
        if (this._handler.isLiteralText()) {
          try {
                       
            java.lang.String __handler = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._handler.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHandler(__handler);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("handler", this._handler);
        }
      }
                         
            if (this._key != null) {
        if (this._key.isLiteralText()) {
          try {
                       
            java.lang.String __key = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._key.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setKey(__key);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("key", this._key);
        }
      }
                         
            if (this._selector != null) {
        if (this._selector.isLiteralText()) {
          try {
                       
            java.lang.String __selector = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._selector.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setSelector(__selector);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("selector", this._selector);
        }
      }
                        
            if (this._timing != null) {
        if (this._timing.isLiteralText()) {
          try {
                       
            java.lang.String __timing = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._timing.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setTiming(__timing);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("timing", this._timing);
        }
      }
                        
            if (this._type != null) {
        if (this._type.isLiteralText()) {
          try {
                       
            java.lang.String __type = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._type.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setType(__type);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("type", this._type);
        }
      }
               }
 
  /* (non-Javadoc)
   * @see javax.faces.webapp.UIComponentTag#getComponentType()
   */
  public String getComponentType() {
    // TODO Auto-generated method stub
    return "org.richfaces.HotKey";
  }

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

}
TOP

Related Classes of org.richfaces.taglib.HotKeyTag

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.