01: /*
02: * (C) Copyright 2000 - 2006 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19: package com.nabhinc.portal.model;
20:
21: import javax.servlet.ServletContext;
22:
23: import com.nabhinc.portal.core.PortalUtil;
24:
25: /**
26: *
27: *
28: * @author Padmanabh Dabke
29: * (c) 2006 Nabh Information Systems, Inc. All Rights Reserved.
30: */
31: public class DisplayInfo {
32: public String theme = "default";
33:
34: public String normalTemplate = "/templates/normal.jsp";
35:
36: public String maximizedTemplate = "/templates/maximized.jsp";
37:
38: public String detachedTemplate = "/templates/detached.jsp";
39:
40: public String desktopWindowTemplate = "/templates/desktop_window.jsp";
41:
42: public String desktopNoteTemplate = "/templates/desktop_note.jsp";
43:
44: public String desktopTemplate = "/templates/desktop.jsp";
45:
46: public DisplayInfo(ServletContext context, String appPath,
47: String theme) {
48: if (theme == null)
49: theme = "default";
50: this .theme = theme;
51: this .normalTemplate = PortalUtil.getTemplatePath(context,
52: appPath, theme, "normal.jsp");
53: this .maximizedTemplate = PortalUtil.getTemplatePath(context,
54: appPath, theme, "maximized.jsp");
55: this .detachedTemplate = PortalUtil.getTemplatePath(context,
56: appPath, theme, "detached.jsp");
57: this .desktopTemplate = PortalUtil.getTemplatePath(context,
58: appPath, theme, "desktop.jsp");
59: this .desktopNoteTemplate = PortalUtil.getTemplatePath(context,
60: appPath, theme, "desktop_note.jsp");
61: this .desktopWindowTemplate = PortalUtil.getTemplatePath(
62: context, appPath, theme, "desktop_window.jsp");
63: }
64: }
|