01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2005 Danet GmbH (www.danet.de), BU BTS.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: HtmlColumnTag.java,v 1.6 2007/02/26 22:12:28 mlipp Exp $
21: *
22: * $Log: HtmlColumnTag.java,v $
23: * Revision 1.6 2007/02/26 22:12:28 mlipp
24: * Updated to MyFaces core 1.1.5/Tomahawk 1.1.3.
25: *
26: * Revision 1.5 2006/09/29 12:32:09 drmlipp
27: * Consistently using WfMOpen as projct name now.
28: *
29: * Revision 1.4 2006/08/30 21:02:46 mlipp
30: * Updated MyFaces to 1.1.5-SNAPSHOT.
31: *
32: * Revision 1.3 2005/10/25 11:42:43 drmlipp
33: * Fixed release().
34: *
35: * Revision 1.2 2005/10/25 11:35:55 drmlipp
36: * Implementation of tag library continued.
37: *
38: * Revision 1.1 2005/10/24 15:29:50 drmlipp
39: * Started column with colspan support.
40: *
41: */
42: package de.danet.an.util.jsf.taglib;
43:
44: import javax.faces.component.UIComponent;
45:
46: /**
47: * Tag implementation for creating a <code>HtmlExtendedColumn</code>.
48: * @author lipp
49: */
50: public class HtmlColumnTag extends
51: org.apache.myfaces.custom.column.HtmlColumnTag {
52:
53: private String rowspan;
54: private String colspan;
55:
56: public String getComponentType() {
57: return HtmlExtendedColumn.COMPONENT_TYPE;
58: }
59:
60: /* (non-Javadoc)
61: * @see org.apache.myfaces.custom.column.HtmlColumnTag#release()
62: */
63: public void release() {
64: super .release();
65: rowspan = null;
66: }
67:
68: /* (non-Javadoc)
69: * @see HtmlColumnTag#setProperties
70: */
71: protected void setProperties(UIComponent component) {
72: super .setProperties(component);
73: setStringProperty(component, "rowspan", rowspan);
74: setStringProperty(component, "colspan", colspan);
75: }
76:
77: /**
78: * @param rowspan The rowspan to set.
79: */
80: public void setRowspan(String rowspan) {
81: this .rowspan = rowspan;
82: }
83:
84: /**
85: * @param colspan The colspan to set.
86: */
87: public void setColspan(String colspan) {
88: this.colspan = colspan;
89: }
90: }
|