/* * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * "The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations under * the License. * * The Original Code is ICEfaces 1.5 open source software code, released * November 5, 2006. The Initial Developer of the Original Code is ICEsoft * Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C) * 2004-2006 ICEsoft Technologies Canada, Corp. All Rights Reserved. * * Contributor(s): _____________________. * * Alternatively, the contents of this file may be used under the terms of * the GNU Lesser General Public License Version 2.1 or later (the "LGPL" * License), in which case the provisions of the LGPL License are * applicable instead of those above. If you wish to allow use of your * version of this file only under the terms of the LGPL License and not to * allow others to use your version of this file under the MPL, indicate * your decision by deleting the provisions above and replace them with * the notice and other provisions required by the LGPL License. If you do * not delete the provisions above, a recipient may use your version of * this file under either the MPL or the LGPL License." * */ package com.icesoft.faces.component.ext; import javax.faces.context.FacesContext; import javax.faces.el.ValueBinding; import org.w3c.dom.Element; import com.icesoft.faces.component.CSS_DEFAULT; import com.icesoft.faces.component.ext.taglib.Util; // We do not need this class, but Sun Studio Creator requires it. public class UIColumn extends javax.faces.component.UIColumn { public static final String COMPONENT_TYPE = "com.icesoft.faces.Column"; /** *
Return the family for this component.
*/ public String getFamily() { return "javax.faces.Column"; } private String colspan = null; private String rowspan = null; private String style = null; private String styleClass = null; private String groupOn = null; // Temporary state, within a single render, for grouping private transient String previousGroupValue = null; private transient int groupCount; private transient Element groupedTd; // binding private String binding = null; public String getBinding() { return this.binding; } public void setBinding(String binding) { this.binding = binding; } // id private String id = null; public String getId() { return this.id; } public void setId(String id) { this.id = id; } private String renderedOnUserRole = null; /** *Set the value of the renderedOnUserRole property.
Return the value of the renderedOnUserRole property.
Return the value of the rendered property.
Restore the state of this component.
*/ public void restoreState(FacesContext _context, Object _state) { Object _values[] = (Object[]) _state; super.restoreState(_context, _values[0]); this.binding = (String) _values[1]; this.id = (String) _values[2]; this.renderedOnUserRole = (String) _values[3]; this.groupOn = (String)_values[4]; this.style = (String)_values[5]; this.rowspan = (String)_values[6]; this.styleClass = (String)_values[7]; this.colspan = (String)_values[8]; } /** *Save the state of this component.
*/ public Object saveState(FacesContext _context) { Object _values[] = new Object[9]; _values[0] = super.saveState(_context); _values[1] = this.binding; _values[2] = this.id; _values[3] = this.renderedOnUserRole; _values[4] = this.groupOn; _values[5] = this.style; _values[6] = this.rowspan; _values[7] = this.styleClass; _values[8] = this.colspan; return _values; } /** *Set the value of the colspan property.
Return the value of the colspan property.
Set the value of the rowspan property.
Return the value of the rowspan property.
Set the value of the style property.
Return the value of the style property.
Set the value of the styleClass property.
Return the value of the styleClass property.
Set the value of the groupOn property.
Return the value of the groupOn property.