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;
19:
20: import de.finix.contelligent.content.ColorContent;
21: import de.finix.contelligent.content.ContelligentColorContent;
22: import de.finix.contelligent.content.Content;
23: import de.finix.contelligent.content.ContentProvider;
24: import de.finix.contelligent.logging.LoggingService;
25: import de.finix.contelligent.render.ColorRenderer;
26: import de.finix.contelligent.render.Renderable;
27: import de.finix.contelligent.render.Renderer;
28:
29: public class CColor extends Folder implements ContentProvider,
30: Renderable {
31: final static org.apache.log4j.Logger log = LoggingService
32: .getLogger(CColor.class);
33:
34: private Renderer renderer;
35:
36: private ColorContent content;
37:
38: public void postCreate() throws Exception {
39: content = new ContelligentColorContent(this );
40: renderer = new ColorRenderer(content);
41: }
42:
43: public Renderer getRenderer() {
44: return renderer;
45: }
46:
47: public Content getContent() {
48: return content;
49: }
50: }
|