Package org.ajax4jsf.taglib.html.jsp

Source Code of org.ajax4jsf.taglib.html.jsp.LogTag

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

import java.lang.String ;
import org.ajax4jsf.webapp.taglib.UIComponentTagBase ;
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.ajax4jsf.component.html.AjaxLog;

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

    // Fields
                               
    /*
     * dir
     * Direction indication for text that does not inherit
      directionality. Valid values are "LTR" (left-to-right)
      and "RTL" (right-to-left)
     */
    private ValueExpression _dir;
    /**
     * Direction indication for text that does not inherit
      directionality. Valid 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;
       }
   
                                     
    /*
     * height
     * Height of pop-up. Default value is "600".
     */
    private ValueExpression _height;
    /**
     * Height of pop-up. Default value is "600".
     * Setter for height
     * @param height - new value
     */
     public void setHeight( ValueExpression  __height ){
      this._height = __height;
       }
   
                                
    /*
     * hotkey
     * Keyboard key for activate ( in combination with
        CTRL+SHIFT ) log window. Default value is "L"
     */
    private ValueExpression _hotkey;
    /**
     * Keyboard key for activate ( in combination with
        CTRL+SHIFT ) log window. Default value is "L"
     * Setter for hotkey
     * @param hotkey - new value
     */
     public void setHotkey( ValueExpression  __hotkey ){
      this._hotkey = __hotkey;
       }
   
                                     
    /*
     * 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;
       }
   
                                
    /*
     * level
     * Log level. The possible values are
        "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "ALL".
        Component sets level 'ALL' by default.
     */
    private ValueExpression _level;
    /**
     * Log level. The possible values are
        "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "ALL".
        Component sets level 'ALL' by default.
     * Setter for level
     * @param level - new value
     */
     public void setLevel( ValueExpression  __level ){
      this._level = __level;
       }
   
                                
    /*
     * name
     * Name of pop-up window. Default value is "LogWindow"
     */
    private ValueExpression _name;
    /**
     * Name of pop-up window. Default value is "LogWindow"
     * Setter for name
     * @param name - new value
     */
     public void setName( ValueExpression  __name ){
      this._name = __name;
       }
   
                                
    /*
     * onclick
     * HTML: a script expression; a pointer button is clicked
     */
    private ValueExpression _onclick;
    /**
     * HTML: a script expression; a pointer button is clicked
     * Setter for onclick
     * @param onclick - new value
     */
     public void setOnclick( ValueExpression  __onclick ){
      this._onclick = __onclick;
       }
   
                                
    /*
     * ondblclick
     * HTML: a script expression; a pointer button is double-clicked
     */
    private ValueExpression _ondblclick;
    /**
     * HTML: a script expression; a pointer button is double-clicked
     * Setter for ondblclick
     * @param ondblclick - new value
     */
     public void setOndblclick( ValueExpression  __ondblclick ){
      this._ondblclick = __ondblclick;
       }
   
                                
    /*
     * onkeydown
     * HTML: a script expression; a key is pressed down
     */
    private ValueExpression _onkeydown;
    /**
     * HTML: a script expression; a key is pressed down
     * Setter for onkeydown
     * @param onkeydown - new value
     */
     public void setOnkeydown( ValueExpression  __onkeydown ){
      this._onkeydown = __onkeydown;
       }
   
                                
    /*
     * onkeypress
     * HTML: a script expression; a key is pressed and released
     */
    private ValueExpression _onkeypress;
    /**
     * HTML: a script expression; a key is pressed and released
     * Setter for onkeypress
     * @param onkeypress - new value
     */
     public void setOnkeypress( ValueExpression  __onkeypress ){
      this._onkeypress = __onkeypress;
       }
   
                                
    /*
     * onkeyup
     * HTML: a script expression; a key is released
     */
    private ValueExpression _onkeyup;
    /**
     * HTML: a script expression; a key is released
     * Setter for onkeyup
     * @param onkeyup - new value
     */
     public void setOnkeyup( ValueExpression  __onkeyup ){
      this._onkeyup = __onkeyup;
       }
   
                                
    /*
     * onmousedown
     * HTML: script expression; a pointer button is pressed down
     */
    private ValueExpression _onmousedown;
    /**
     * HTML: script expression; a pointer button is pressed down
     * Setter for onmousedown
     * @param onmousedown - new value
     */
     public void setOnmousedown( ValueExpression  __onmousedown ){
      this._onmousedown = __onmousedown;
       }
   
                                
    /*
     * onmousemove
     * HTML: a script expression; a pointer is moved within
     */
    private ValueExpression _onmousemove;
    /**
     * HTML: a script expression; a pointer is moved within
     * Setter for onmousemove
     * @param onmousemove - new value
     */
     public void setOnmousemove( ValueExpression  __onmousemove ){
      this._onmousemove = __onmousemove;
       }
   
                                
    /*
     * onmouseout
     * HTML: a script expression; a pointer is moved away
     */
    private ValueExpression _onmouseout;
    /**
     * HTML: a script expression; a pointer is moved away
     * Setter for onmouseout
     * @param onmouseout - new value
     */
     public void setOnmouseout( ValueExpression  __onmouseout ){
      this._onmouseout = __onmouseout;
       }
   
                                
    /*
     * onmouseover
     * HTML: a script expression; a pointer is moved onto
     */
    private ValueExpression _onmouseover;
    /**
     * HTML: a script expression; a pointer is moved onto
     * Setter for onmouseover
     * @param onmouseover - new value
     */
     public void setOnmouseover( ValueExpression  __onmouseover ){
      this._onmouseover = __onmouseover;
       }
   
                                
    /*
     * onmouseup
     * HTML: script expression; a pointer button is released
     */
    private ValueExpression _onmouseup;
    /**
     * HTML: script expression; a pointer button is released
     * Setter for onmouseup
     * @param onmouseup - new value
     */
     public void setOnmouseup( ValueExpression  __onmouseup ){
      this._onmouseup = __onmouseup;
       }
   
                                
    /*
     * popup
     * Renders log as pop-up window or as div element on the page. Default value is "true".
     */
    private ValueExpression _popup;
    /**
     * Renders log as pop-up window or as div element on the page. Default value is "true".
     * Setter for popup
     * @param popup - new value
     */
     public void setPopup( ValueExpression  __popup ){
      this._popup = __popup;
       }
   
                                     
    /*
     * style
     * CSS style(s) is/are to be applied when this component is rendered
     */
    private ValueExpression _style;
    /**
     * CSS style(s) is/are to be applied when this component is rendered
     * Setter for style
     * @param style - new value
     */
     public void setStyle( ValueExpression  __style ){
      this._style = __style;
       }
   
                                
    /*
     * styleClass
     * Corresponds to the HTML class attribute
     */
    private ValueExpression _styleClass;
    /**
     * Corresponds to the HTML class attribute
     * Setter for styleClass
     * @param styleClass - new value
     */
     public void setStyleClass( ValueExpression  __styleClass ){
      this._styleClass = __styleClass;
       }
   
                                
    /*
     * 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;
       }
   
                                
    /*
     * width
     * Width of pop-up. Default value is "800".
     */
    private ValueExpression _width;
    /**
     * Width of pop-up. Default value is "800".
     * Setter for width
     * @param width - new value
     */
     public void setWidth( ValueExpression  __width ){
      this._width = __width;
       }
   
       
 
    public void release()
    {
        // TODO Auto-generated method stub
        super.release();
                          this._dir = null;
                     this._height = null;
                this._hotkey = null;
                     this._lang = null;
                this._level = null;
                this._name = null;
                this._onclick = null;
                this._ondblclick = 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._popup = null;
                     this._style = null;
                this._styleClass = null;
                this._title = null;
                this._width = 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);
    AjaxLog comp = (AjaxLog) component;
             
            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._height != null) {
        if (this._height.isLiteralText()) {
          try {
                       
            java.lang.String __height = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._height.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHeight(__height);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("height", this._height);
        }
      }
                        
            if (this._hotkey != null) {
        if (this._hotkey.isLiteralText()) {
          try {
                       
            java.lang.String __hotkey = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._hotkey.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setHotkey(__hotkey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("hotkey", this._hotkey);
        }
      }
                         
            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._level != null) {
        if (this._level.isLiteralText()) {
          try {
                       
            java.lang.String __level = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._level.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setLevel(__level);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("level", this._level);
        }
      }
                        
            if (this._name != null) {
        if (this._name.isLiteralText()) {
          try {
                       
            java.lang.String __name = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._name.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setName(__name);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("name", this._name);
        }
      }
                        
            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._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._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 (this._popup != null) {
        if (this._popup.isLiteralText()) {
          try {
                       
            Boolean __popup = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._popup.getExpressionString(),
                      Boolean.class);
         
                        comp.setPopup(__popup.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("popup", this._popup);
        }
      }
                         
            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._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 (this._width != null) {
        if (this._width.isLiteralText()) {
          try {
                       
            java.lang.String __width = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._width.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setWidth(__width);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("width", this._width);
        }
      }
               }
 
  /* (non-Javadoc)
   * @see javax.faces.webapp.UIComponentTag#getComponentType()
   */
  public String getComponentType() {
    // TODO Auto-generated method stub
    return "org.ajax4jsf.Log";
  }

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

}
TOP

Related Classes of org.ajax4jsf.taglib.html.jsp.LogTag

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.