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: HtmlDataTableTag.java,v 1.3 2006/09/29 12:32:09 drmlipp Exp $
21: *
22: * $Log: HtmlDataTableTag.java,v $
23: * Revision 1.3 2006/09/29 12:32:09 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.2 2005/10/26 15:31:36 drmlipp
27: * Extended table implementation continued.
28: *
29: * Revision 1.1 2005/10/24 15:29:50 drmlipp
30: * Started column with colspan support.
31: *
32: */
33: package de.danet.an.util.jsf.taglib;
34:
35: import javax.faces.component.UIComponent;
36:
37: /**
38: * Tag implementation for creating a <code>HtmlExtendedDataTable</code>.
39: * @author lipp
40: */
41: public class HtmlDataTableTag extends
42: org.apache.myfaces.taglib.html.ext.HtmlDataTableTag {
43:
44: private String repetitions;
45: private String repetitionCounter;
46:
47: public String getComponentType() {
48: return HtmlExtendedDataTable.COMPONENT_TYPE;
49: }
50:
51: public String getRendererType() {
52: return "de.danet.bts.HtmlDataTable";
53: }
54:
55: /* (non-Javadoc)
56: * @see org.apache.myfaces.custom.column.HtmlColumnTag#release()
57: */
58: public void release() {
59: super .release();
60: repetitions = null;
61: repetitionCounter = null;
62: }
63:
64: /* (non-Javadoc)
65: * @see HtmlColumnTag#setProperties
66: */
67: protected void setProperties(UIComponent component) {
68: super .setProperties(component);
69: setStringProperty(component, "repetitions", repetitions);
70: setStringProperty(component, "repetitionCounter",
71: repetitionCounter);
72: }
73:
74: /**
75: * @param repetitionCounter The repetitionCounter to set.
76: */
77: public void setRepetitionCounter(String repetitionCounter) {
78: this .repetitionCounter = repetitionCounter;
79: }
80:
81: /**
82: * @param repetitions The repetitions to set.
83: */
84: public void setRepetitions(String repetitions) {
85: this.repetitions = repetitions;
86: }
87:
88: }
|