01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.components.config;
19:
20: import de.finix.contelligent.components.Folder;
21: import de.finix.contelligent.content.ContelligentTextContent;
22: import de.finix.contelligent.content.Content;
23: import de.finix.contelligent.content.ContentProvider;
24: import de.finix.contelligent.content.TextContent;
25: import de.finix.contelligent.render.DefaultRenderer;
26: import de.finix.contelligent.render.Renderable;
27: import de.finix.contelligent.render.Renderer;
28:
29: public class Configuration extends Folder implements ContentProvider,
30: Renderable {
31:
32: private String domain;
33:
34: private Renderer renderer;
35:
36: private TextContent content;
37:
38: public void postCreate() throws Exception {
39: content = new ContelligentTextContent(this ,
40: ContelligentTextContent.EVALUATE);
41: renderer = new DefaultRenderer(content);
42: }
43:
44: public boolean isDynamic() {
45: return false;
46: }
47:
48: public Renderer getRenderer() {
49: return renderer;
50: }
51:
52: public Content getContent() {
53: return content;
54: }
55:
56: public String getDomain() {
57: return domain;
58: }
59:
60: public void setDomain(String domain) {
61: this.domain = domain;
62: }
63:
64: }
|