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: XmlDisplayWindowTag.java,v 1.1 2006/10/05 13:27:39 drmlipp Exp $
21: *
22: * $Log: XmlDisplayWindowTag.java,v $
23: * Revision 1.1 2006/10/05 13:27:39 drmlipp
24: * New tag for XML display.
25: *
26: */
27: package de.danet.an.util.jsf.taglib;
28:
29: import javax.faces.component.UIComponent;
30: import javax.faces.webapp.UIComponentTag;
31:
32: import org.apache.myfaces.shared_tomahawk.taglib.UIComponentTagUtils;
33:
34: /**
35: * This class provides a tag for the <code>XmlDisplayWindow</code>
36: * component.
37: *
38: * @author Michael Lipp
39: *
40: */
41: public class XmlDisplayWindowTag extends UIComponentTag {
42:
43: private String xmlData = null;
44:
45: /* (non-Javadoc)
46: * @see javax.faces.webapp.UIComponentTag#getComponentType()
47: */
48: public String getComponentType() {
49: return XmlDisplayWindow.COMPONENT_TYPE;
50: }
51:
52: /* (non-Javadoc)
53: * @see javax.faces.webapp.UIComponentTag#getRendererType()
54: */
55: public String getRendererType() {
56: return "de.danet.bts.jsf.taglib.XmlDisplayWindow";
57: }
58:
59: /* (non-Javadoc)
60: * @see HtmlColumnTag#setProperties
61: */
62: protected void setProperties(UIComponent component) {
63: super .setProperties(component);
64: UIComponentTagUtils.setStringProperty(getFacesContext(),
65: component, "xmlData", xmlData);
66: }
67:
68: /**
69: * @param stylesheet The stylesheet to set.
70: */
71: public void setXmlData(String stylesheet) {
72: this.xmlData = stylesheet;
73: }
74:
75: }
|