/**
* GENERATED FILE - DO NOT EDIT
*
*/
package org.richfaces.taglib;
import java.lang.String ;
import org.ajax4jsf.webapp.taglib.HtmlComponentTagBase ;
import javax.el.MethodExpression ;
import org.richfaces.model.Ordering ;
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.HtmlColumnGroup;
public class ColumnGroupTag extends org.ajax4jsf.webapp.taglib.HtmlComponentTagBase {
// Fields
/*
* columnClasses
* Comma-delimited list of CSS style classes that are be applied to the columns of this table.
A space separated list of classes may also be specified for any individual column.
If the number of elements in this list is less than the number of columns specified in the "columns" attribute, no "class" attribute is output for each column greater than the number of elements in the list. If the number of elements in the list is greater than the number of columns specified in the "columns" attribute, the elements at the position in the list after the value of the "columns" attribute are ignored
*/
private ValueExpression _columnClasses;
/**
* Comma-delimited list of CSS style classes that are be applied to the columns of this table.
A space separated list of classes may also be specified for any individual column.
If the number of elements in this list is less than the number of columns specified in the "columns" attribute, no "class" attribute is output for each column greater than the number of elements in the list. If the number of elements in the list is greater than the number of columns specified in the "columns" attribute, the elements at the position in the list after the value of the "columns" attribute are ignored
* Setter for columnClasses
* @param columnClasses - new value
*/
public void setColumnClasses( ValueExpression __columnClasses ){
this._columnClasses = __columnClasses;
}
/*
* filterMethod
* This attribute is defined with method binding. This method accepts on Object parameter and return boolean value
*/
private MethodExpression _filterMethod;
/**
* This attribute is defined with method binding. This method accepts on Object parameter and return boolean value
* Setter for filterMethod
* @param filterMethod - new value
*/
public void setFilterMethod( MethodExpression __filterMethod ){
this._filterMethod = __filterMethod;
}
/*
* filterValue
* Defines current filtering value
*/
private ValueExpression _filterValue;
/**
* Defines current filtering value
* Setter for filterValue
* @param filterValue - new value
*/
public void setFilterValue( ValueExpression __filterValue ){
this._filterValue = __filterValue;
}
/*
* 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;
}
/*
* selfSorted
* Manages if the header of the column is clickable, icons rendered and sorting is fired after click on the header. You need to define this attribute inside <rich:dataTable> component
*/
private ValueExpression _selfSorted;
/**
* Manages if the header of the column is clickable, icons rendered and sorting is fired after click on the header. You need to define this attribute inside <rich:dataTable> component
* Setter for selfSorted
* @param selfSorted - new value
*/
public void setSelfSorted( ValueExpression __selfSorted ){
this._selfSorted = __selfSorted;
}
/*
* sortOrder
* SortOrder is an enumeration of the possible sort orderings.
*/
private ValueExpression _sortOrder;
/**
* SortOrder is an enumeration of the possible sort orderings.
* Setter for sortOrder
* @param sortOrder - new value
*/
public void setSortOrder( ValueExpression __sortOrder ){
this._sortOrder = __sortOrder;
}
public void release()
{
// TODO Auto-generated method stub
super.release();
this._columnClasses = null;
this._filterMethod = null;
this._filterValue = null;
this._rowClasses = null;
this._selfSorted = null;
this._sortOrder = 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);
HtmlColumnGroup comp = (HtmlColumnGroup) component;
if (this._columnClasses != null) {
if (this._columnClasses.isLiteralText()) {
try {
java.lang.String __columnClasses = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._columnClasses.getExpressionString(),
java.lang.String.class);
comp.setColumnClasses(__columnClasses);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("columnClasses", this._columnClasses);
}
}
if(null != this._filterMethod){
((HtmlColumnGroup)component).setFilterMethod(this._filterMethod);
}
if (this._filterValue != null) {
if (this._filterValue.isLiteralText()) {
try {
java.lang.String __filterValue = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._filterValue.getExpressionString(),
java.lang.String.class);
comp.setFilterValue(__filterValue);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("filterValue", this._filterValue);
}
}
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._selfSorted != null) {
if (this._selfSorted.isLiteralText()) {
try {
Boolean __selfSorted = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._selfSorted.getExpressionString(),
Boolean.class);
comp.setSelfSorted(__selfSorted.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("selfSorted", this._selfSorted);
}
}
if (this._sortOrder != null) {
if (this._sortOrder.isLiteralText()) {
try {
org.richfaces.model.Ordering __sortOrder = (org.richfaces.model.Ordering) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._sortOrder.getExpressionString(),
org.richfaces.model.Ordering.class);
comp.setSortOrder(__sortOrder);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("sortOrder", this._sortOrder);
}
}
}
/* (non-Javadoc)
* @see javax.faces.webapp.UIComponentTag#getComponentType()
*/
public String getComponentType() {
// TODO Auto-generated method stub
return "org.richfaces.ColumnGroup";
}
/* (non-Javadoc)
* @see javax.faces.webapp.UIComponentTag#getRendererType()
*/
public String getRendererType() {
return "org.richfaces.ColumnGroupRenderer";
}
}