01: /******************************************************************************
02: * JBoss, a division of Red Hat *
03: * Copyright 2006, Red Hat Middleware, LLC, and individual *
04: * contributors as indicated by the @authors tag. See the *
05: * copyright.txt in the distribution for a full listing of *
06: * individual contributors. *
07: * *
08: * This is free software; you can redistribute it and/or modify it *
09: * under the terms of the GNU Lesser General Public License as *
10: * published by the Free Software Foundation; either version 2.1 of *
11: * the License, or (at your option) any later version. *
12: * *
13: * This software is distributed in the hope that it will be useful, *
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16: * Lesser General Public License for more details. *
17: * *
18: * You should have received a copy of the GNU Lesser General Public *
19: * License along with this software; if not, write to the Free *
20: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
21: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
22: ******************************************************************************/package org.jboss.portal.theme.metadata;
23:
24: import org.jboss.portal.common.util.MediaType;
25:
26: /**
27: * Meta data describing a render set. <p/> exmaple of a render set descriptor: <p/> <portal-renderSet> <renderSet
28: * name="divRenderer"> <ajax enabled="true"/> <set content-type="text/html"> <region-renderer>org.jboss.portal.theme.impl.render.div.DivRegionRenderer</region-renderer>
29: * <window-renderer>org.jboss.portal.theme.impl.render.div.DivWindowRenderer</window-renderer>
30: * <portlet-renderer>org.jboss.portal.theme.impl.render.div.DivPortletRenderer</portlet-renderer>
31: * <decoration-renderer>org.jboss.portal.theme.impl.render.div.DivDecorationRenderer</decoration-renderer> </set>
32: * </renderSet> <renderSet name="emptyRenderer"> <ajax enabled="true"/> <set content-type="text/html">
33: * <region-renderer>org.jboss.portal.theme.impl.render.empty.EmptyRegionRenderer</region-renderer>
34: * <window-renderer>org.jboss.portal.theme.impl.render.empty.EmptyWindowRenderer</window-renderer>
35: * <portlet-renderer>org.jboss.portal.theme.impl.render.empty.EmptyPortletRenderer</portlet-renderer>
36: * <decoration-renderer>org.jboss.portal.theme.impl.render.empty.EmptyDecorationRenderer</decoration-renderer> </set>
37: * </renderSet> </portal-renderSet> <p/> </p>
38: *
39: * @author <a href="mailto:mholzner@novell.com">Martin Holzner</a>
40: * @version $Revision: 8784 $
41: */
42: public class RendererSetMetaData {
43: private MediaType contentType;
44: private String regionRenderer;
45: private String windowRenderer;
46: private String decorationRenderer;
47: private String portletRenderer;
48: private boolean ajaxEnabled;
49:
50: public MediaType getContentType() {
51: return contentType;
52: }
53:
54: public void setContentType(MediaType contentType) {
55: this .contentType = contentType;
56: }
57:
58: public String getRegionRenderer() {
59: return regionRenderer;
60: }
61:
62: public void setRegionRenderer(String regionRenderer) {
63: this .regionRenderer = regionRenderer;
64: }
65:
66: public String getWindowRenderer() {
67: return windowRenderer;
68: }
69:
70: public void setWindowRenderer(String windowRenderer) {
71: this .windowRenderer = windowRenderer;
72: }
73:
74: public String getDecorationRenderer() {
75: return decorationRenderer;
76: }
77:
78: public void setDecorationRenderer(String decorationRenderer) {
79: this .decorationRenderer = decorationRenderer;
80: }
81:
82: public String getPortletRenderer() {
83: return portletRenderer;
84: }
85:
86: public void setPortletRenderer(String portletRenderer) {
87: this .portletRenderer = portletRenderer;
88: }
89:
90: public boolean isAjaxEnabled() {
91: return ajaxEnabled;
92: }
93:
94: public void setAjaxEnabled(boolean ajaxEnabled) {
95: this.ajaxEnabled = ajaxEnabled;
96: }
97: }
|