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: HtmlPanelGridTag.java,v 1.2 2006/09/29 12:32:09 drmlipp Exp $
21: *
22: * $Log: HtmlPanelGridTag.java,v $
23: * Revision 1.2 2006/09/29 12:32:09 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.1 2006/09/14 22:06:30 mlipp
27: * Implemented extended panel grid.
28: *
29: */
30: package de.danet.an.util.jsf.taglib;
31:
32: import javax.faces.component.UIComponent;
33:
34: /**
35: * This class provides the tag for HtmlPanelGrid
36: *
37: * @author Michael Lipp
38: *
39: */
40: public class HtmlPanelGridTag extends
41: org.apache.myfaces.taglib.html.ext.HtmlPanelGridTag {
42:
43: private String cellAlign;
44: private String cellVAlign;
45:
46: public String getComponentType() {
47: return HtmlPanelGrid.COMPONENT_TYPE;
48: }
49:
50: public String getRendererType() {
51: return "de.danet.bts.HtmlPanelGrid";
52: }
53:
54: protected void setProperties(UIComponent component) {
55: super .setProperties(component);
56: setStringProperty(component, "cellAlign", cellAlign);
57: setStringProperty(component, "cellVAlign", cellVAlign);
58: }
59:
60: /**
61: * @param cellAlign The cellAlign to set.
62: */
63: public void setCellAlign(String cellAlign) {
64: this .cellAlign = cellAlign;
65: }
66:
67: /**
68: * @param cellVAlign The cellVAlign to set.
69: */
70: public void setCellVAlign(String cellVAlign) {
71: this.cellVAlign = cellVAlign;
72: }
73:
74: }
|