1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif;
17
18
19
20
21
22
23 public class UifConstants {
24 public static final String CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME = "methodToCall";
25 public static final String DEFAULT_MODEL_NAME = "KualiForm";
26 public static final String COMPONENT_MODEL_NAME = "Component";
27 public static final String DEFAULT_VIEW_NAME = "default";
28 public static final String COMPONENT_ID_PREFIX = "u";
29
30
31 public static final String SPRING_VIEW_ID = "/krad/WEB-INF/ftl/uifRender";
32 public static final String SPRING_REDIRECT_ID = "/krad/WEB-INF/ftl/redirect";
33 public static final String REDIRECT_PREFIX = "redirect:";
34
35 public static final String EL_PLACEHOLDER_PREFIX = "@{";
36 public static final String EL_PLACEHOLDER_SUFFIX = "}";
37 public static final String NO_BIND_ADJUST_PREFIX = "#form.";
38 public static final String DEFAULT_PATH_BIND_ADJUST_PREFIX = "#dp.";
39 public static final String FIELD_PATH_BIND_ADJUST_PREFIX = "#fp.";
40 public static final String LINE_PATH_BIND_ADJUST_PREFIX = "#lp.";
41 public static final String NODE_PATH_BIND_ADJUST_PREFIX = "#np.";
42
43 public static final String DATA_ATTRIBUTE_CONTROL_FOR = "controlFor";
44 public static final String REQUEST_FORM = "requestForm";
45
46 public static enum Position {
47 BOTTOM, LEFT, RIGHT, TOP
48 }
49
50 public static enum Order {
51 FIRST
52 }
53
54 public static enum NavigationType {
55 VERTICAL_MENU, HORIZONTAL_TABS
56 }
57
58 public static enum Orientation {
59 HORIZONTAL, VERTICAL
60 }
61
62 public static enum ViewType {
63 DEFAULT, DOCUMENT, INQUIRY, LOOKUP, MAINTENANCE, INCIDENT;
64 }
65
66 public static enum ControlType {
67 CHECKBOX, CHECKBOXGROUP, FILE, GROUP, HIDDEN, RADIOGROUP, SELECT,
68 TEXTAREA, TEXT, USER
69 }
70
71 public static enum WorkflowAction {
72 SAVE, ROUTE, BLANKETAPPROVE, APPROVE, DISAPPROVE, CANCEL, FYI, ACKNOWLEDGE, COMPLETE
73 }
74
75
76
77
78 public enum AjaxReturnTypes {
79 UPADATEPAGE("update-page"), UPDATECOMPONENT("update-component"), REDIRECT("redirect"), SHOWINCIDENT("update-view"), UPDATECOLLECTION("update-collection");
80
81 private String key;
82
83 AjaxReturnTypes(String key) {
84 this.key = key;
85 }
86
87 public String getKey() {
88 return key;
89 }
90
91 public void setKey(String key) {
92 this.key = key;
93 }
94 }
95
96 public static class MethodToCallNames {
97 public static final String NAVIGATE = "navigate";
98 public static final String START = "start";
99 public static final String SAVE = "save";
100 public static final String SEARCH = "search";
101 public static final String CLOSE = "close";
102 public static final String ADD_LINE = "addLine";
103 public static final String DELETE_LINE = "deleteLine";
104 public static final String REFRESH = "refresh";
105 public static final String CANCEL = "cancel";
106 public static final String TOGGLE_INACTIVE = "toggleInactiveRecordDisplay";
107 }
108
109 public static class ActionEvents {
110 public static final String ADD_LINE = "addLine";
111 public static final String ADD_BLANK_LINE = "addBlankLine";
112 }
113
114 public static class LayoutComponentOptions {
115 public static final String COLUMN_SPAN = "colSpan";
116 public static final String ROW_SPAN = "rowSpan";
117 }
118
119 public static class IdSuffixes {
120 public static final String ADD_LINE = "_add";
121 public static final String CONTROL = "_control";
122 public static final String ATTRIBUTE = "_attribute";
123 public static final String COMPARE = "_comp";
124 public static final String CONSTRAINT = "_constraint";
125 public static final String DIRECT_INQUIRY = "_directinquiry";
126 public static final String ERRORS = "_errors";
127 public static final String INSTRUCTIONAL = "_instructional";
128 public static final String LINE = "_line";
129 public static final String LABEL = "_label";
130 public static final String FIELDSET = "_fieldset";
131 public static final String SUB = "_sub";
132 public static final String SUGGEST = "_suggest";
133 public static final String QUICK_FINDER = "_quickfinder";
134 }
135
136 public static class ViewPhases {
137 public static final String INITIALIZE = "INITIALIZE";
138 public static final String APPLY_MODEL = "APPLY_MODEL";
139 public static final String FINALIZE = "FINALIZE";
140 }
141
142 public static class ViewStatus {
143 public static final String CREATED = "C";
144 public static final String INITIALIZED = "I";
145 public static final String FINAL = "F";
146 }
147
148 public static class ContextVariableNames {
149 public static final String COLLECTION_GROUP = "collectionGroup";
150 public static final String CONFIG_PROPERTIES = "ConfigProperties";
151 public static final String COMPONENT = "component";
152 public static final String CONSTANTS = "Constants";
153 public static final String DOCUMENT_ENTRY = "DocumentEntry";
154 public static final String INDEX = "index";
155 public static final String IS_ADD_LINE = "isAddLine";
156 public static final String LINE = "line";
157 public static final String READONLY_LINE = "readOnlyLine";
158 public static final String MANAGER = "manager";
159 public static final String NODE = "node";
160 public static final String NODE_PATH = "nodePath";
161 public static final String PARENT = "parent";
162 public static final String UIF_CONSTANTS = "UifConstants";
163 public static final String VIEW = "view";
164 public static final String VIEW_HELPER = "ViewHelper";
165 public static final String PARENT_LINE = "parentLine";
166 }
167
168 public static class TableToolsKeys {
169 public static final String AASORTING = "aaSorting";
170 public static final String BAUTO_TYPE = "bAutoType";
171 public static final String SDOM = "sDom";
172 public static final String LANGUAGE = "oLanguage";
173 public static final String EMPTY_TABLE = "sEmptyTable";
174 public static final String AO_COLUMNS = "aoColumns";
175 public static final String SORT_SKIP_ROWS = "aiSortingSkipRows";
176 public static final String SORT_DATA_TYPE = "sSortDataType";
177 public static final String SORTABLE = "bSortable";
178 public static final String VISIBLE = "bVisible";
179 public static final String SORT_TYPE = "sType";
180 public static final String TABLE_SORT = "bSort";
181 public static final String SAJAX_SOURCE = "sAjaxSource";
182 }
183
184 public static class TableToolsValues {
185 public static final String DOM_TEXT = "dom-text";
186 public static final String DOM_SELECT = "dom-select";
187 public static final String DOM_CHECK = "dom-checkbox";
188 public static final String DOM_RADIO = "dom-radio";
189 public static final String NUMERIC = "numeric";
190 public static final String STRING = "string";
191 public static final String DATE = "kuali_date";
192 public static final String PERCENT = "kuali_percent";
193 public static final String CURRENCY = "kuali_currency";
194 public static final String TIMESTAMP = "kuali_timestamp";
195 public static final String FALSE = "false";
196
197 public static final int ADD_ROW_DEFAULT_INDEX = 0;
198 }
199
200 public static class ReordererOptionKeys {
201 public static final String SELECTORS = "selectors";
202 public static final String MOVABLES = "movables";
203 }
204
205 public static class TitleAppendTypes {
206 public static final String DASH = "dash";
207 public static final String PARENTHESIS = "parenthesis";
208 public static final String REPLACE = "replace";
209 public static final String NONE = "none";
210 }
211
212 public static class UrlParams {
213 public static final String ACTION_EVENT = "actionEvent";
214 public static final String SHOW_HISTORY = "showHistory";
215 public static final String SHOW_HOME = "showHome";
216 public static final String FORM_KEY = "formKey";
217 public static final String PAGE_ID = "pageId";
218 public static final String HISTORY = "history";
219 public static final String LAST_FORM_KEY = "lastFormKey";
220 }
221
222 public static class Messages {
223 public static final String VALIDATION_MSG_KEY_PREFIX = "validation.";
224 public static final String STATE_PREFIX = "validation.statePrefix";
225 }
226
227 public static class MessageKeys {
228 public static final String QUERY_DATA_NOT_FOUND = "query.dataNotFound";
229 }
230
231 public static class ClientSideVariables {
232 public static final String KRAD_IMAGE_LOCATION = "kradImageLocation";
233 public static final String KRAD_URL = "kradUrl";
234 }
235
236 public static class RefreshCallerTypes {
237 public static final String LOOKUP = "LOOKUP";
238 public static final String MULTI_VALUE_LOOKUP = "MULTI_VALUE_LOOKUP";
239 public static final String QUESTION = "QUESTION";
240 }
241
242 public static final class DataAttributes {
243 public static final String SERVER_MESSAGES = "server-messages";
244 public static final String VALIDATION_MESSAGES = "validationMessages";
245 public static final String SUMMARIZE = "summarize";
246 public static final String DISPLAY_MESSAGES = "displayMessages";
247 public static final String COLLAPSE_FIELD_MESSAGES = "collapseFieldMessages";
248 public static final String DISPLAY_LABEL = "displayLabel";
249 public static final String HAS_OWN_MESSAGES = "hasOwnMessages";
250 public static final String PAGE_LEVEL = "pageLevel";
251 public static final String FORCE_SHOW = "forceShow";
252 public static final String SECTIONS = "sections";
253 public static final String ORDER = "order";
254 public static final String SERVER_ERRORS = "serverErrors";
255 public static final String SERVER_WARNINGS = "serverWarnings";
256 public static final String SERVER_INFO = "serverInfo";
257 public static final String VIGNORE = "vignore";
258 }
259
260 public static final class CaseConstraintOperators {
261 public static final String HAS_VALUE = "has_value";
262 public static final String EQUALS = "equals";
263 public static final String GREATER_THAN_EQUAL = "greater_than_equal";
264 public static final String LESS_THAN_EQUAL = "less_than_equal";
265 public static final String NOT_EQUAL = "not_equal";
266 public static final String NOT_EQUALS = "not_equals";
267 public static final String GREATER_THAN = "greater_than";
268 public static final String LESS_THAN = "less_than";
269 }
270
271 }