1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.decoration;
18
19 import java.util.Properties;
20
21 import org.apache.jetspeed.util.Path;
22
23 /***
24 * Default implementation of <code>org.apache.jetspeed.decoration.LayoutDecoration</code>
25 *
26 * @author <href a="mailto:weaver@apache.org">Scott T. Weaver</a>
27 *
28 * @see org.apache.jetspeed.decoration.LayoutDecoration
29 *
30 */
31 public class LayoutDecorationImpl extends BaseDecoration implements LayoutDecoration
32 {
33 public LayoutDecorationImpl(Properties config, ResourceValidator validator, Path basePath, Path baseClientPath, PathResolverCache cache)
34 {
35 super(config, validator, basePath, baseClientPath, cache);
36 }
37
38 public void setDecorationFactory(DecorationFactory decorationFactory)
39 {
40
41 }
42
43 public String getHeader()
44 {
45 String headerTemplate = config.getProperty("header", "header.vm");
46 return getResource(headerTemplate);
47 }
48
49 public String getFooter()
50 {
51 String footerTemplate = config.getProperty("footer", "footer.vm");
52 return getResource(footerTemplate);
53 }
54
55 }