KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > methodhead > shim > ShimGlobals


1 /*
2  * Copyright (C) 2006 Methodhead Software LLC. All rights reserved.
3  *
4  * This file is part of TransferCM.
5  *
6  * TransferCM is free software; you can redistribute it and/or modify it under the
7  * terms of the GNU General Public License as published by the Free Software
8  * Foundation; either version 2 of the License, or (at your option) any later
9  * version.
10  *
11  * TransferCM is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * TransferCM; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
18  * Fifth Floor, Boston, MA 02110-1301 USA
19  */

20
21 package com.methodhead.shim;
22
23 public class ShimGlobals {
24
25   // constructors /////////////////////////////////////////////////////////////
26

27   // constants ////////////////////////////////////////////////////////////////
28

29   /**
30    * Key used to store the panel map in the request.
31    */

32   public static final String JavaDoc PANELMAP_KEY = "com.methodhead.shim.PANELMAP_KEY";
33
34   /**
35    * Key used to store the system mode in the session.
36    */

37   public static final String JavaDoc MODE_KEY = "com.methodhead.shim.MODE_KEY";
38
39   /**
40    * Key used to store page in the request.
41    */

42   public static final String JavaDoc PAGE_KEY = "com.methodhead.shim.PAGE_KEY";
43
44   /**
45    * Key used to store the menu in the request
46    */

47   public static final String JavaDoc MENU_KEY = "com.methodhead.shim.MENU_KEY";
48
49   /**
50    * Key used to store page id in the request.
51    */

52   public static final String JavaDoc PAGEID_KEY = "com.methodhead.shim.PAGEID_KEY";
53
54   /**
55    * Key used to store page alias in the request.
56    */

57   public static final String JavaDoc PAGEALIAS_KEY =
58     "com.methodhead.shim.PAGEALIAS_KEY";
59
60   /**
61    * Request parameter indicating a page should be previewed.
62    */

63   public static final String JavaDoc PREVIEW_KEY = "preview";
64
65   /**
66    * The default module to create when none is specified in a panel tag.
67    */

68   public static final String JavaDoc DEFAULT_MODULE = "com.methodhead.shim.TextModule";
69
70   /**
71    * Edit mode.
72    */

73   public static final String JavaDoc MODE_EDIT = "EDIT";
74
75   /**
76    * Rich edit mode.
77    */

78   public static final String JavaDoc MODE_RICHEDIT = "RICHEDIT";
79
80   /**
81    * Request attribute storing the panel being edited.
82    */

83   public static final String JavaDoc EDITPANEL_KEY =
84     "com.methodhead.shim.EDITPANEL_KEY";
85
86   /**
87    * Application attribute storing the map of site maps.
88    */

89   public static final String JavaDoc SITEMAPMAP_KEY =
90     "com.methodhead.shim.SITEMAPMAP_KEY";
91
92   /**
93    * Session attribute storing the folding tree for the site map.
94    */

95   public static final String JavaDoc SITEMAPTREE_KEY =
96     "com.methodhead.shim.SITEMAPTREE_KEY";
97
98   /**
99    * Request attribute storing the current link.
100    */

101   public static final String JavaDoc CURRENTLINK_KEY =
102     "com.methodhead.shim.CURRENTLINK_KEY";
103
104   /**
105    * The alias of the page displayed when a page cannot be found.
106    */

107   public static final String JavaDoc PAGENOTFOUNDALIAS = "pagenotfound";
108
109   /**
110    * A property defining styles that may be inserted in the editor. Property
111    * should be a comma-separated list of style-name:css-class-name pairs (e.g.,
112    * Quotation:quote).
113    */

114   public static final String JavaDoc PROPERTY_STYLES = "com.methodhead.shim.Styles";
115
116   // classes //////////////////////////////////////////////////////////////////
117

118   // methods //////////////////////////////////////////////////////////////////
119

120   // properties ///////////////////////////////////////////////////////////////
121

122   // attributes ///////////////////////////////////////////////////////////////
123
}
124
Popular Tags