Package org.richfaces.taglib

Source Code of org.richfaces.taglib.DataOrderedListTag

/**
* 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 java.util.Set ;
import javax.faces.component.UIComponent ;

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

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

    // Fields
                          
    /*
     * ajaxKeys
     * This attribute defines row keys that are updated after an AJAX request
     */
    private ValueExpression _ajaxKeys;
    /**
     * This attribute defines row keys that are updated after an AJAX request
     * Setter for ajaxKeys
     * @param ajaxKeys - new value
     */
     public void setAjaxKeys( ValueExpression  __ajaxKeys ){
      this._ajaxKeys = __ajaxKeys;
       }
   
                                                              
    /*
     * first
     * A zero-relative row number of the first row to display
     */
    private ValueExpression _first;
    /**
     * A zero-relative row number of the first row to display
     * Setter for first
     * @param first - new value
     */
     public void setFirst( ValueExpression  __first ){
      this._first = __first;
       }
   
                                                                        
    /*
     * rowClasses
     * A comma-delimited list of CSS style classes that is applied to popup table rows. A space separated list of classes may also be specified for any individual row. The styles are applied, in turn, to each row in the table. For example, if the list has two elements, the first style class in the list is applied to the first row, the second to the second row, the first to the third row, the second to the fourth row, etc. In other words, we keep iterating through the list until we reach the end, and then we start at the beginning again
     */
    private ValueExpression _rowClasses;
    /**
     * A comma-delimited list of CSS style classes that is applied to popup table rows. A space separated list of classes may also be specified for any individual row. The styles are applied, in turn, to each row in the table. For example, if the list has two elements, the first style class in the list is applied to the first row, the second to the second row, the first to the third row, the second to the fourth row, etc. In other words, we keep iterating through the list until we reach the end, and then we start at the beginning again
     * Setter for rowClasses
     * @param rowClasses - new value
     */
     public void setRowClasses( ValueExpression  __rowClasses ){
      this._rowClasses = __rowClasses;
       }
   
                                               
    /*
     * rowKey
     * RowKey is a representation of an identifier for a specific data row
     */
    private ValueExpression _rowKey;
    /**
     * RowKey is a representation of an identifier for a specific data row
     * Setter for rowKey
     * @param rowKey - new value
     */
     public void setRowKey( ValueExpression  __rowKey ){
      this._rowKey = __rowKey;
       }
   
                                
    /*
     * rowKeyConverter
     * Converter for a RowKey object.
     */
    private ValueExpression _rowKeyConverter;
    /**
     * Converter for a RowKey object.
     * Setter for rowKeyConverter
     * @param rowKeyConverter - new value
     */
     public void setRowKeyConverter( ValueExpression  __rowKeyConverter ){
      this._rowKeyConverter = __rowKeyConverter;
       }
   
                                
    /*
     * rowKeyVar
     * The attribute provides access to a row key in a Request scope
     */
    private String _rowKeyVar;
    /**
     * The attribute provides access to a row key in a Request scope
     * Setter for rowKeyVar
     * @param rowKeyVar - new value
     */
     public void setRowKeyVar( String  __rowKeyVar ){
      this._rowKeyVar = __rowKeyVar;
       }
   
                                
    /*
     * rows
     * A number of rows to display, or zero for all remaining
            rows in the table
     */
    private ValueExpression _rows;
    /**
     * A number of rows to display, or zero for all remaining
            rows in the table
     * Setter for rows
     * @param rows - new value
     */
     public void setRows( ValueExpression  __rows ){
      this._rows = __rows;
       }
   
                                                    
    /*
     * type
     * Corresponds to the HTML OL type attribute
     */
    private ValueExpression _type;
    /**
     * Corresponds to the HTML OL type attribute
     * Setter for type
     * @param type - new value
     */
     public void setType( ValueExpression  __type ){
      this._type = __type;
       }
   
                                
    /*
     * value
     * The current value for this component
     */
    private ValueExpression _value;
    /**
     * The current value for this component
     * Setter for value
     * @param value - new value
     */
     public void setValue( ValueExpression  __value ){
      this._value = __value;
       }
   
                                
    /*
     * var
     * A request-scope attribute via which the data object for the
            current row will be used when iterating
     */
    private String _var;
    /**
     * A request-scope attribute via which the data object for the
            current row will be used when iterating
     * Setter for var
     * @param var - new value
     */
     public void setVar( String  __var ){
      this._var = __var;
       }
   
       
 
    public void release()
    {
        // TODO Auto-generated method stub
        super.release();
                     this._ajaxKeys = null;
                                              this._first = null;
                                                        this._rowClasses = null;
                               this._rowKey = null;
                this._rowKeyConverter = null;
                this._rowKeyVar = null;
                this._rows = null;
                                    this._type = null;
                this._value = null;
                this._var = 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);
    HtmlDataOrderedList comp = (HtmlDataOrderedList) component;
            
            if (this._ajaxKeys != null) {
        if (this._ajaxKeys.isLiteralText()) {
          try {
                       
            java.util.Set __ajaxKeys = (java.util.Set) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ajaxKeys.getExpressionString(),
                      java.util.Set.class);
         
                        comp.setAjaxKeys(__ajaxKeys);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ajaxKeys", this._ajaxKeys);
        }
      }
                              
            if (this._first != null) {
        if (this._first.isLiteralText()) {
          try {
                       
            Integer __first = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._first.getExpressionString(),
                      Integer.class);
         
                        comp.setFirst(__first.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("first", this._first);
        }
      }
                                
            if (this._rowClasses != null) {
        if (this._rowClasses.isLiteralText()) {
          try {
                       
            java.lang.String __rowClasses = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowClasses.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRowClasses(__rowClasses);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowClasses", this._rowClasses);
        }
      }
                           
            if (this._rowKey != null) {
        if (this._rowKey.isLiteralText()) {
          try {
                       
            java.lang.Object __rowKey = (java.lang.Object) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rowKey.getExpressionString(),
                      java.lang.Object.class);
         
                        comp.setRowKey(__rowKey);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rowKey", this._rowKey);
        }
      }
                        setRowKeyConverterProperty(comp, this._rowKeyConverter);
                  
                      if (this._rowKeyVar != null) {
          comp.setRowKeyVar(this._rowKeyVar);
        }
                                
            if (this._rows != null) {
        if (this._rows.isLiteralText()) {
          try {
                       
            Integer __rows = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._rows.getExpressionString(),
                      Integer.class);
         
                        comp.setRows(__rows.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("rows", this._rows);
        }
      }
                            
            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);
        }
      }
                        
            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);
        }
      }
                        
                      if (this._var != null) {
          comp.setVar(this._var);
        }
                       }
 
  /* (non-Javadoc)
   * @see javax.faces.webapp.UIComponentTag#getComponentType()
   */
  public String getComponentType() {
    // TODO Auto-generated method stub
    return "org.richfaces.DataOrderedList";
  }

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

}
TOP

Related Classes of org.richfaces.taglib.DataOrderedListTag

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.