View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.uif;
17  
18  /**
19   * General constants used within the User Interface Framework.
20   *
21   * @author Kuali Rice Team (rice.collab@kuali.org)
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      public static final String SUFFIX_SEPARATOR = "_";
30  
31      public static final String DEFAULT_THEMES_DIRECTORY = "/themes";
32      public static final String DEFAULT_IMAGES_DIRECTORY = "images";
33      public static final String DEFAULT_SCRIPTS_DIRECTORY = "scripts";
34      public static final String DEFAULT_STYLESHEETS_DIRECTORY = "stylesheets";
35      public static final String THEME_DERIVED_PROPERTY_FILE = "theme-derived.properties";
36      public static final String THEME_CSS_FILES = "themeCssFiles";
37      public static final String THEME_JS_FILES = "themeJsFiles";
38      public static final String THEME_DEV_JS_FILES = "devJsIncludes";
39      public static final String THEME_LESS_FILES = "themeLessFiles";
40  
41      public static final String SPRING_VIEW_ID = "/krad/WEB-INF/ftl/uifRender";
42      public static final String SPRING_REDIRECT_ID = "/krad/WEB-INF/ftl/redirect";
43      public static final String REDIRECT_PREFIX = "redirect:";
44  
45      public static final String EL_PLACEHOLDER_PREFIX = "@{";
46      public static final String EL_PLACEHOLDER_SUFFIX = "}";
47      public static final String NO_BIND_ADJUST_PREFIX = "#form.";
48      public static final String SEQUENCE_PREFIX = "#sequence";
49      public static final String DEFAULT_PATH_BIND_ADJUST_PREFIX = "#dp.";
50      public static final String FIELD_PATH_BIND_ADJUST_PREFIX = "#fp.";
51      public static final String LINE_PATH_BIND_ADJUST_PREFIX = "#lp.";
52      public static final String NODE_PATH_BIND_ADJUST_PREFIX = "#np.";
53      public static final String STRING_TEMPLATE_PARAMETER_PLACEHOLDER = "@";
54  
55      public static final String SPACE = " ";
56  
57      public static final String REQUEST_FORM = "requestForm";
58  
59      public static final String BLOCKUI_NAVOPTS = "navigation";
60      public static final String BLOCKUI_REFRESHOPTS = "refresh";
61  
62      public static final String VALIDATE_VIEWS_ONBUILD = "validate.views.onbuild";
63  
64      public static final String MESSAGE_VIEW_ID = "Uif-MessageView";
65      public static final String SESSION_TIMEOUT_VIEW_ID = "Uif-SessionTimeoutView";
66      public static final String LOGGED_OUT_VIEW_ID = "Uif-LoggedOutView";
67      public static final String GROUP_VALIDATION_DEFAULTS_MAP_ID = "Uif-GroupValidationMessages-DataDefaults";
68      public static final String FIELD_VALIDATION_DEFAULTS_MAP_ID = "Uif-FieldValidationMessages-DataDefaults";
69      public static final String ACTION_DEFAULTS_MAP_ID = "Uif-Action-DataDefaults";
70      public static final String REQUIRED_INDICATOR_ID = "Uif-RequiredIndicator";
71      public static final String REQUIRED_NEXT_STATE_INDICATOR_ID = "Uif-RequiredIndicator-ForNextState";
72      public static final String REFERER = "Referer";
73      public static final String NO_RETURN = "";
74  
75      public static final String EXPORT_FILE_NAME = "export.xml";
76      public static final String KUALI_FORM_ATTR = "KualiForm";
77  
78      public static final String ICON_ONLY_PLACEMENT = "ICON_ONLY";
79      public static final String PROPERTY_EDITOR_REGISTRY = "rice.krad.uif.propertyEditorRegistry";
80  
81      public static enum ReadOnlyListTypes {
82          DELIMITED, BREAK, OL, UL
83      }
84  
85      public static enum Position {
86          BOTTOM, LEFT, RIGHT, TOP
87      }
88  
89      public static enum Order {
90          FIRST, LINE_FIRST, NEXT_INPUT, SELF
91      }
92  
93      public static enum NavigationType {
94          VERTICAL_MENU, HORIZONTAL_TABS
95      }
96  
97      public static enum Orientation {
98          HORIZONTAL, VERTICAL
99      }
100 
101     public static enum ViewType {
102         DEFAULT, DOCUMENT, INQUIRY, LOOKUP, MAINTENANCE, INCIDENT, TRANSACTIONAL;
103     }
104 
105     public static enum ControlType {
106         CHECKBOX, CHECKBOXGROUP, FILE, GROUP, HIDDEN, RADIOGROUP, SELECT,
107         TEXTAREA, TEXT, USER
108     }
109 
110     public static enum WorkflowAction {
111         SAVE, ROUTE, BLANKETAPPROVE, APPROVE, DISAPPROVE, CANCEL, FYI, ACKNOWLEDGE, COMPLETE, SENDADHOCREQUESTS, RECALL
112     }
113 
114     public static enum SuperUserWorkflowAction {
115         TAKEACTION, APPROVE, DISAPPROVE
116     }
117 
118     /**
119      * Enum of return types. Used to return the type of response being sent by the server to the client.
120      */
121     public enum AjaxReturnTypes {
122         UPDATEPAGE("update-page"), UPDATECOMPONENT("update-component"), REDIRECT("redirect"),
123         UPDATEVIEW("update-view"), UPDATENONE("update-none"), DISPLAYLIGHTBOX("display-lightbox"),
124         UPDATEDIALOG("update-dialog");
125 
126         private String key;
127 
128         AjaxReturnTypes(String key) {
129             this.key = key;
130         }
131 
132         public String getKey() {
133             return key;
134         }
135 
136         public void setKey(String key) {
137             this.key = key;
138         }
139     }
140 
141     public static enum WindowTargets {
142         _blank, _self, _parent, _top
143     }
144 
145     public static enum DialogDismissOption {
146         IMMEDIATE, PRESUBMIT, REQUEST
147     }
148 
149     public enum WizardAction {
150         NONE(0), BACK(-1), CONTINUE(1);
151 
152         private int step;
153 
154         WizardAction(int step) {
155             this.step = step;
156         }
157 
158         public int getStep() {
159             return step;
160         }
161 
162         public void setStep(int step) {
163             this.step = step;
164         }
165     }
166 
167     public static class ControllerMappings {
168         public static final String EXPORT = "export";
169     }
170 
171     public static class MethodToCallNames {
172         public static final String NAVIGATE = "navigate";
173         public static final String START = "start";
174         public static final String SAVE = "save";
175         public static final String SEARCH = "search";
176         public static final String CLOSE = "close";
177         public static final String CLOSE_EDIT_LINE_DIALOG = "closeEditLineDialog";
178         public static final String ADD_LINE = "addLine";
179         public static final String DELETE_LINE = "deleteLine";
180         public static final String REFRESH = "refresh";
181         public static final String CANCEL = "cancel";
182         public static final String RETRIEVE_EDIT_LINE_DIALOG = "retrieveEditLineDialog";
183         public static final String SESSION_TIMEOUT = "sessionTimeout";
184         public static final String TABLE_JSON = "tableJsonRetrieval";
185         public static final String TABLE_DATA = "tableDataRetrieval";
186         public static final String TABLE_XML = "tableXmlRetrieval";
187         public static final String INQUIRY_XML = "inquiryXmlRetrieval";
188         public static final String TABLE_CSV = "tableCsvRetrieval";
189         public static final String TABLE_XLS = "tableXlsRetrieval";
190         public static final String DISPLAY_SUPER_USER_DOCUMENT = "displaySuperUserDocument";
191     }
192 
193     public static class ActionEvents {
194         public static final String ADD_LINE = "addLine";
195         public static final String ADD_BLANK_LINE = "addBlankLine";
196         public static final String EDIT_LINE = "editLine";
197     }
198 
199     public static class LayoutComponentOptions {
200         public static final String COLUMN_SPAN = "colSpan";
201         public static final String ROW_SPAN = "rowSpan";
202     }
203 
204     public static class RowSelection {
205         public static final String ALL = "all";
206         public static final String ODD = "odd";
207         public static final String EVEN = "even";
208     }
209 
210     public static class IdSuffixes {
211         public static final String ACTION = "_act";
212         public static final String ADD_LINE = "_add";
213         public static final String CONTROL = "_control";
214         public static final String ATTRIBUTE = "_attribute";
215         public static final String COLUMN = "_c";
216         public static final String COLUMN_SORTS = "_columnSorts";
217         public static final String COMPARE = "_comp";
218         public static final String CONSTRAINT = "_constraint";
219         public static final String DELETE_LINE = "_del";
220         public static final String DETAIL_LINK = "_detLink";
221         public static final String DETAIL_GROUP = "_detGroup";
222         public static final String DIALOG_GROUP = "_dialogGroup";
223         public static final String EDIT_DETAIL_BUTTON = "_editDetButton";
224         public static final String EDIT_DETAIL_GROUP = "_editDetGroup";
225         public static final String DIRECT_INQUIRY = "_directinquiry";
226         public static final String DISCLOSURE_CONTENT = "_disclosureContent";
227         public static final String ERRORS = "_errors";
228         public static final String INSTRUCTIONAL = "_instructional";
229         public static final String LINE = "_line";
230         public static final String LABEL = "_label";
231         public static final String FIELDSET = "_fieldset";
232         public static final String SUB = "_sub";
233         public static final String SUGGEST = "_suggest";
234         public static final String QUICK_FINDER = "_quickfinder";
235         public static final String SPAN = "_span";
236         public static final String TAB = "_tab";
237         public static final String HEADER_WRAPPER = "_headerWrapper";
238         public static final String HEADER_UPPER_GROUP = "_headerUpperGroup";
239         public static final String HEADER_RIGHT_GROUP = "_headerRightGroup";
240         public static final String HEADER_LOWER_GROUP = "_headerLowerGroup";
241         public static final String HELP_WRAPPER = "_helpWrapper";
242         public static final String HELP = "_help";
243     }
244 
245     public static class ViewPhases {
246         public static final String INITIALIZE = "INITIALIZE";
247         public static final String APPLY_MODEL = "APPLY_MODEL";
248         public static final String FINALIZE = "FINALIZE";
249         public static final String RENDER = "RENDER";
250         public static final String PRE_PROCESS = "PRE_PROCESS";
251     }
252 
253     public static class ViewStatus {
254         public static final String CACHED = "X";
255         public static final String CREATED = "C";
256         public static final String INITIALIZED = "I";
257         public static final String MODEL_APPLIED = "M";
258         public static final String FINAL = "F";
259         public static final String RENDERED = "R";
260     }
261 
262     public static class PostMetadata {
263         public static final String INPUT_FIELD_ATTRIBUTE_QUERY = "attributeQuery";
264         public static final String INPUT_FIELD_SUGGEST = "suggest";
265         public static final String INPUT_FIELD_SUGGEST_QUERY = "suggestQuery";
266         public static final String INPUT_FIELD_IS_UPPERCASE = "isUppercase";
267         public static final String LABEL = "label";
268         public static final String PATH = "path";
269         public static final String SIMPLE_CONSTRAINT = "simpleConstraint";
270         public static final String VALID_CHARACTER_CONSTRAINT = "validCharacterConstraint";
271         public static final String CASE_CONSTRAINT = "caseConstraint";
272         public static final String MUST_OCCUR_CONSTRAINTS = "mustOccurConstraints";
273         public static final String PREREQ_CONSTSTRAINTS = "prerequisiteConstraints";
274         public static final String BINDING_PATH = "bindingPath";
275         public static final String BINDING_INFO = "bindingInfo";
276         public static final String ADD_LINE_BINDING_INFO = "addLineBindingInfo";
277         public static final String ADD_LINE_PLACEMENT = "addLinePlacement";
278         public static final String BASE_ID = "BASE_ID";
279         public static final String COLL_DISPLAY_START = "displayStart";
280         public static final String COLL_DISPLAY_LENGTH = "displayLength";
281         public static final String COLL_LABEL = "collectionLabel";
282         public static final String COLL_LOOKUP_FIELD_CONVERSIONS = "collectionLookup.fieldConversions";
283         public static final String COLL_OBJECT_CLASS = "collectionObjectClass";
284         public static final String DUPLICATE_LINE_PROPERTY_NAMES = "duplicateLinePropertyNames";
285         public static final String DUPLICATE_LINE_LABEL_STRING = "duplicateLineLabelString";
286         public static final String RESET_DATA_ON_REFRESH = "resetDataOnRefresh";
287         public static final String STATE_MAPPING = "stateMapping";
288         public static final String STATE_OBJECT_BINDING_PATH = "stateObjectBindingPath";
289         public static final String SUGGEST = "suggest";
290         public static final String QUICKFINDER_FOCUS_ID = "quickfinderFocusId";
291         public static final String QUICKFINDER_JUMP_TO_ID = "quickfinderJumpToId";
292         public static final String QUICKFINDER_CALLBACK_METHOD_TO_CALL = "quickfinderCallbackMethodToCall";
293         public static final String QUICKFINDER_CALLBACK_METHOD = "quickfinderCallbackMethod";
294         public static final String QUICKFINDER_CALLBACK_CONTEXT = "quickfinderCallbackContext";
295         public static final String QUICKFINDER_CALLBACK_CONTEXT_PROPERTY_LINE_INDEX = "lineIndex";
296         public static final String FILTERABLE_LOOKUP_CRITERIA = "filterableLookupCriteria";
297     }
298 
299     public static class LookupCriteriaPostMetadata {
300         public static final String COMPONENT_ID = "componentId";
301         public static final String DISABLE_WILDCARDS_AND_OPERATORS = "disableWildcardsAndOperators";
302         public static final String HIDDEN = "hidden";
303         public static final String REQUIRED = "required";
304         public static final String SECURE_VALUE = "secureValue";
305         public static final String VALID_CHARACTERS_CONSTRAINT = "validCharactersConstraint";
306     }
307 
308     public static class ContextVariableNames {
309         public static final String COLLECTION_GROUP = "collectionGroup";
310         public static final String CONFIG_PROPERTIES = "ConfigProperties";
311         public static final String COMPONENT = "component";
312         public static final String CONSTANTS = "Constants";
313         public static final String DOCUMENT_ENTRY = "DocumentEntry";
314         public static final String INDEX = "index";
315         public static final String IS_ADD_LINE = "isAddLine";
316         public static final String LINE = "line";
317         public static final String LINE_SUFFIX = "lineSuffix";
318         public static final String READONLY_LINE = "readOnlyLine";
319         public static final String MANAGER = "manager";
320         public static final String NODE = "node";
321         public static final String NODE_PATH = "nodePath";
322         public static final String PARENT = "parent";
323         public static final String THEME_IMAGES = "ThemeImages";
324         public static final String UIF_CONSTANTS = "UifConstants";
325         public static final String VIEW = "view";
326         public static final String VIEW_HELPER = "ViewHelper";
327         public static final String PARENT_LINE = "parentLine";
328         public static final String WIZARD = "wizard";
329         public static final String USER_SESSION = "userSession";
330     }
331 
332     public static class TableToolsKeys {
333         public static final String AASORTING = "aaSorting";
334         public static final String BAUTO_TYPE = "bAutoType";
335         public static final String BPROCESSING = "bProcessing";
336         public static final String BSERVER_SIDE = "bServerSide";
337         public static final String SDOM = "sDom";
338         public static final String CELL_CLASS = "sClass";
339         public static final String MDATA = "mDataProp";
340         public static final String LANGUAGE = "oLanguage";
341         public static final String EMPTY_TABLE = "sEmptyTable";
342         public static final String AO_COLUMNS = "aoColumns";
343         public static final String AO_COLUMN_DEFS = "aoColumnDefs";
344         public static final String SORT_SKIP_ROWS = "aiSortingSkipRows";
345         public static final String SORT_DATA_TYPE = "sSortDataType";
346         public static final String SORTABLE = "bSortable";
347         public static final String TARGETS = "aTargets";
348         public static final String VISIBLE = "bVisible";
349         public static final String SORT_TYPE = "sType";
350         public static final String TABLE_SORT = "bSort";
351         public static final String SAJAX_SOURCE = "sAjaxSource";
352         public static final String FOOTER_CALLBACK = "fnFooterCallback";
353         public static final String AA_DATA = "aaData";
354         public static final String DEFER_RENDER = "bDeferRender";
355         public static final String SDOWNLOAD_SOURCE = "sDownloadSource";
356         public static final String SERVER_PARAMS = "fnServerParams";
357     }
358 
359     public static class TableToolsValues {
360         public static final String DOM_TEXT = "dom-text";
361         public static final String DOM_SELECT = "dom-select";
362         public static final String DOM_CHECK = "dom-checkbox";
363         public static final String DOM_RADIO = "dom-radio";
364 
365         // sort types:
366 
367         public static final String NUMERIC = "numeric";
368         public static final String STRING = "string";
369         public static final String DATE = "kuali_date";
370         public static final String PERCENT = "kuali_percent";
371         public static final String CURRENCY = "kuali_currency";
372         public static final String TIMESTAMP = "kuali_timestamp";
373 
374         public static final String FALSE = "false";
375         public static final String TRUE = "true";
376 
377         public static final int ADD_ROW_DEFAULT_INDEX = 0;
378         public static final String JSON_TEMPLATE = "components/element/dataTablesJson.ftl";
379     }
380 
381     public static class TableLayoutValues {
382         public static final int ACTIONS_COLUMN_LEFT_INDEX = 1;
383         public static final int ACTIONS_COLUMN_RIGHT_INDEX = -1;
384     }
385 
386     public static class PageRequest {
387         public static final String PREV = "prev";
388         public static final String NEXT = "next";
389         public static final String FIRST = "first";
390         public static final String LAST = "last";
391         public static final String PAGE_NUMBER = "pageNumber";
392     }
393 
394     public static class TabOptionKeys {
395         public static final String ACTIVE = "active";
396     }
397 
398     public static class TitleAppendTypes {
399         public static final String DASH = "dash";
400         public static final String PARENTHESIS = "parenthesis";
401         public static final String REPLACE = "replace";
402         public static final String NONE = "none";
403     }
404 
405     public static class ComponentProperties {
406         public static final String HEADER_TEXT = "headerText";
407         public static final String DEFAULT_VALUE = "defaultValue";
408         public static final String DEFAULT_VALUES = "defaultValues";
409     }
410 
411     public static class UrlParams {
412         public static final String ACTION_EVENT = "actionEvent";
413         public static final String FORM_KEY = "formKey";
414         public static final String VIEW_ID = "viewId";
415         public static final String PAGE_ID = "pageId";
416         public static final String HISTORY = "history";
417         public static final String LAST_FORM_KEY = "lastFormKey";
418         public static final String LOGIN_USER = "__login_user";
419     }
420 
421     public static class Messages {
422         public static final String VALIDATION_MSG_KEY_PREFIX = "validation.";
423         public static final String STATE_PREFIX = "validation.statePrefix";
424         public static final String PROPERTY_NAME_PREFIX = "validation.propertyNamePrefix";
425     }
426 
427     public static class MessageKeys {
428         public static final String LOOKUP_RESULT_MESSAGES = "LookupResultMessages";
429         public static final String QUERY_DATA_NOT_FOUND = "query.dataNotFound";
430         public static final String OPTION_ALL = "option.all";
431     }
432 
433     public static class ClientSideVariables {
434         public static final String KRAD_IMAGE_LOCATION = "kradImageLocation";
435         public static final String KRAD_SCRIPT_CLEANUP = "scriptCleanup";
436         public static final String KRAD_URL = "kradUrl";
437         public static final String APPLICATION_URL = "applicationUrl";
438     }
439 
440     public static class RefreshCallerTypes {
441         public static final String LOOKUP = "LOOKUP";
442         public static final String MULTI_VALUE_LOOKUP = "MULTI_VALUE_LOOKUP";
443         public static final String QUESTION = "QUESTION";
444     }
445 
446     public static class RefreshStatus {
447         public static final String ERROR = "ERROR";
448     }
449 
450     public static final class HistoryFlow {
451         public static final String HISTORY_MANAGER = "historyManager";
452         public static final String FLOW = "flow";
453         public static final String START = "start";
454         public static final String RETURN_TO_START = "returnToStart";
455         public static final String SEPARATOR = "@@";
456     }
457 
458     public static final class RoleTypes {
459         public static final String ACTION = "Action";
460         public static final String CONTROL = "Control";
461         public static final String DATA_SCRIPT = "dataScript";
462         public static final String INPUT_FIELD = "InputField";
463         public static final String GROUP = "Group";
464         public static final String GROUP_TOTAL = "groupTotal";
465         public static final String TOTAL = "total";
466         public static final String TOTALS_BLOCK = "totalsBlock";
467         public static final String PAGE = "Page";
468         public static final String PAGE_TOTAL = "pageTotal";
469         public static final String ROW_GROUPING = "RowGrouping";
470         public static final String VIEW = "View";
471     }
472 
473     public static final class DataAttributes {
474         public static final String TYPE = "type";
475         public static final String ROLE = "role";
476         public static final String REQ_INDICATOR = "req_indicator";
477         public static final String ONCLICK = "onClick";
478         public static final String SUBMIT_DATA = "submit_data";
479         public static final String HAS_MESSAGES = "has_messages";
480         public static final String SERVER_MESSAGES = "server_messages";
481         public static final String VALIDATION_MESSAGES = "validation_messages";
482         public static final String ACTION_DEFAULTS = "action_defaults";
483         public static final String GROUP_VALIDATION_DEFAULTS = "group_validation_defaults";
484         public static final String FIELD_VALIDATION_DEFAULTS = "field_validation_defaults";
485         public static final String MESSAGES_FOR = "messages_for";
486         public static final String PARENT = "parent";
487         public static final String SUMMARIZE = "summarize";
488         public static final String DISPLAY_MESSAGES = "displayMessages";
489         public static final String CLOSEABLE = "closeable";
490         public static final String COLLAPSE_FIELD_MESSAGES = "collapseFieldMessages";
491         public static final String DISPLAY_LABEL = "displayLabel";
492         public static final String SHOW_PAGE_SUMMARY_HEADER = "showPageSummaryHeader";
493         public static final String DISPLAY_HEADER_SUMMARY = "displayHeaderSummary";
494         public static final String IS_TABLE_COLLECTION = "isTableCollection";
495         public static final String HAS_OWN_MESSAGES = "hasOwnMessages";
496         public static final String PAGE_LEVEL = "pageLevel";
497         public static final String FORCE_SHOW = "forceShow";
498         public static final String SECTIONS = "sections";
499         public static final String ORDER = "order";
500         public static final String RETURN = "return";
501         public static final String SERVER_ERRORS = "serverErrors";
502         public static final String SERVER_WARNINGS = "serverWarnings";
503         public static final String SERVER_INFO = "serverInfo";
504         public static final String VIGNORE = "vignore";
505         public static final String TOTAL = "total";
506         public static final String SKIP_TOTAL = "skip_total";
507         public static final String LABEL = "label";
508         public static final String GROUP = "group";
509         public static final String LABEL_FOR = "label_for";
510         public static final String CONTROL_FOR = "control_for";
511         public static final String ADD_CONTROLS = "add_controls";
512         public static final String EDIT_CONTROLS = "edit_controls";
513         public static final String HEADER_FOR = "header_for";
514         public static final String STICKY = "sticky";
515         public static final String STICKY_FOOTER = "sticky_footer";
516         public static final String DETAILS_DEFAULT_OPEN = "details_default_open";
517         public static final String RENDER_DETAILS_EDIT = "render_details_edit";
518         public static final String TAB_FOR = "tabfor";
519         public static final String CHECKED = "checked";
520         public static final String ENTER_KEY = "enter_key";
521         public static final String DEFAULT_ENTER_KEY_ACTION = "default_enter_key_action";
522         public static final String DISMISS = "dismiss";
523         public static final String DISMISS_DIALOG_OPTION = "dismissdialogoption";
524         public static final String DISMISS_RESPONSE = "response";
525         public static final String DIALOG_RESPONSE_HANDLER = "response_handler";
526         public static final String DIALOG_SHOW_HANDLER = "show_handler";
527         public static final String DIALOG_HIDE_HANDLER = "hide_handler";
528         public static final String DIALOG_HIDDEN_HANDLER = "hidden_handler";
529         public static final String INLINE_EDIT = "inline_edit";
530         public static final String DETACHED = "detached";
531         public static final String OMIT_FROM_POST = "omit";
532         public static final String OMIT_GROUP_FROM_POST = "omit_group";
533     }
534 
535     public static final String JS_REGEX_SPECIAL_CHARS = new String("$[\\^.|?*+()");
536 
537     public static final class ActionDataAttributes {
538         public static final String AJAX_SUBMIT = "ajaxSubmit";
539         public static final String CONFIRM_DIALOG_ID = "confirmDialogId";
540         public static final String CONFIRM_PROMPT_TEXT = "confirm_prompttext";
541         public static final String SUCCESS_CALLBACK = "successCallback";
542         public static final String ERROR_CALLBACK = "errorCallback";
543         public static final String PRE_SUBMIT_CALL = "preSubmitCall";
544         public static final String LOADING_MESSAGE = "loadingMessage";
545         public static final String DISABLE_BLOCKING = "disableBlocking";
546         public static final String AJAX_RETURN_TYPE = "ajaxReturnType";
547         public static final String REFRESH_ID = "refreshId";
548         public static final String VALIDATE = "validate";
549         public static final String DIRTY_ON_ACTION = "dirtyOnAction";
550         public static final String CLEAR_DIRTY = "clearDirtyOnAction";
551         public static final String PERFORM_DIRTY_VALIDATION = "performDirtyValidation";
552         public static final String FOCUS_ID = "focusId";
553         public static final String JUMP_TO_ID = "jumpToId";
554         public static final String JUMP_TO_NAME = "jumpToName";
555         public static final String FIELDS_TO_SEND = "fieldsToSend";
556     }
557 
558     public static final class AriaAttributes {
559         public static final String VALUE_NOW = "valuenow";
560         public static final String VALUE_MAX = "valuemax";
561         public static final String VALUE_MIN = "valuemin";
562         public static final String VALUE_TEXT = "valuetext";
563     }
564 
565     public static final class AriaRoles {
566         public static final String PROGRESS_BAR = "progressbar";
567     }
568 
569     public static final class HtmlAttributeValues {
570         public static final String TARGET_BLANK = "_blank";
571     }
572 
573     public static final class CaseConstraintOperators {
574         public static final String HAS_VALUE = "has_value";
575         public static final String EQUALS = "equals";
576         public static final String GREATER_THAN_EQUAL = "greater_than_equal";
577         public static final String LESS_THAN_EQUAL = "less_than_equal";
578         public static final String NOT_EQUAL = "not_equal";
579         public static final String NOT_EQUALS = "not_equals";
580         public static final String GREATER_THAN = "greater_than";
581         public static final String LESS_THAN = "less_than";
582     }
583 
584     public static final class JsFunctions {
585         public static final String COLLECTION_LINE_CHANGED = "collectionLineChanged";
586         public static final String SHOW_LOOKUP_DIALOG = "showLookupDialog";
587         public static final String HANDLE_SERVER_DIALOG_RESPONSE = "handleServerDialogResponse";
588         public static final String INITIALIZE_VIEW_STATE = "initializeViewState";
589         public static final String INITIALIZE_SESSION_TIMERS = "initializeSessionTimers";
590         public static final String REDIRECT = "redirect";
591         public static final String SET_CONFIG_PARM = "setConfigParam";
592         public static final String SET_VALUE = "setValue";
593         public static final String SHOW_GROWL = "showGrowl";
594         public static final String SHOW_EDIT_LINE_DIALOG = "showEditLineDialog";
595         public static final String SHOW_DIALOG = "showDialog";
596         public static final String VALIDATE_ADD_LINE = "validateAddLine";
597         public static final String VALIDATE_LINE = "validateLine";
598         public static final String WRITE_CURRENT_PAGE_TO_SESSION = "writeCurrentPageToSession";
599     }
600 
601     public static final String EVENT_NAMESPACE = "uif";
602 
603     public static final String BOX_LAYOUT_HORIZONTAL_ITEM_CSS = "uif-boxLayoutHorizontalItem";
604     public static final String BOX_LAYOUT_VERTICAL_ITEM_CSS = "uif-boxLayoutVerticalItem";
605 
606     public static final class ConfigProperties {
607         public static final String KRAD_IMAGES_URL = "krad.externalizable.images.url";
608         public static final String KRAD_URL = "krad.url";
609     }
610 
611     public static final class FileExtensions {
612         public static final String CSS = ".css";
613         public static final String JS = ".js";
614         public static final String MIN = ".min";
615         public static final String LESS = ".less";
616     }
617 
618     public static final class WrapperTags {
619         public static final String DIV = "div";
620         public static final String SPAN = "span";
621         public static final String P = "p";
622         public static final String MAIN = "main";
623         public static final String SECTION = "section";
624         public static final String HEADER = "header";
625         public static final String FOOTER = "footer";
626         public static final String NAV = "nav";
627     }
628 
629     public static final class MultiFileUploadOptions {
630         public static final String URL = "url";
631         public static final String ACCEPT_FILE_TYPES = "acceptFileTypes";
632         public static final String MIN_SIZE = "minFileSize";
633         public static final String MAX_SIZE = "maxFileSize";
634     }
635 
636     public static final class KimLink {
637         public static final String PRINCIPAL_ID = "principalId";
638         public static final String PRINCIPAL_NAME = "principalName";
639         public static final String ROLE_ID = "id";
640         public static final String ROLE_NAME = "name";
641         public static final String ROLE_NAMESPACE_CODE = "namespaceCode";
642         public static final String GROUP_ID = "id";
643         public static final String GROUP_NAME = "name";
644         public static final String GROUP_NAMESPACE_CODE = "namespaceCode";
645         public static final String BLANK_LINK = " ";
646     }
647 }