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 DEFAULT_VIEW_NAME = "default";
27 public static final String SPRING_VIEW_ID = "ApplicationView";
28 public static final String SPRING_REDIRECT_ID = "redirectURL";
29
30 public static enum Position {
31 BOTTOM, LEFT, RIGHT, TOP
32 }
33
34 public static enum Order {
35 FIRST
36 }
37
38 public static enum NavigationType {
39 VERTICAL_MENU, HORIZONTAL_TABS
40 }
41
42 public static enum Orientation {
43 HORIZONTAL, VERTICAL
44 }
45
46 public static enum MessageType {
47 NORMAL, CUTLINE, INSTRUCTIONAL, CONSTRAINT, REQUIRED, HELP_SUMMARY, HELP_DESCRIPTION
48 }
49
50 public static enum ViewType {
51 DEFAULT, DOCUMENT, INQUIRY, LOOKUP, MAINTENANCE, INCIDENT;
52 }
53
54 public static enum ControlType {
55 CHECKBOX, CHECKBOXGROUP, FILE, GROUP, HIDDEN, RADIOGROUP, SELECT,
56 TEXTAREA, TEXT, USER
57 }
58
59 public static enum WorkflowAction {
60 SAVE, ROUTE, BLANKETAPPROVE, APPROVE, DISAPPROVE, CANCEL, FYI, ACKNOWLEDGE
61 }
62
63 public static class MethodToCallNames {
64 public static final String NAVIGATE = "navigate";
65 public static final String START = "start";
66 public static final String SAVE = "save";
67 public static final String SEARCH = "search";
68 public static final String CLOSE = "close";
69 public static final String ADD_LINE = "addLine";
70 public static final String DELETE_LINE = "deleteLine";
71 public static final String REFRESH = "refresh";
72 public static final String CANCEL = "cancel";
73 public static final String UPDATE_COMP = "updateComponent";
74 public static final String TOGGLE_INACTIVE = "toggleInactiveRecordDisplay";
75 }
76
77 public static class ActionEvents {
78 public static final String ADD_LINE = "addLine";
79 }
80
81 public static class LayoutComponentOptions {
82 public static final String COLUMN_SPAN = "colSpan";
83 public static final String ROW_SPAN = "rowSpan";
84 }
85
86 public static class IdSuffixes {
87 public static final String ADD_LINE = "_add";
88 public static final String ATTRIBUTE = "_attribute";
89 public static final String COMPARE = "_comp";
90 public static final String CONSTRAINT = "_constraint";
91 public static final String DIRECT_INQUIRY = "_directinquiry";
92 public static final String DIV = "_div";
93 public static final String ERRORS = "_errors";
94 public static final String INSTRUCTIONAL = "_instructional";
95 public static final String LINE = "_line";
96 public static final String LABEL = "_label";
97 public static final String SUB = "_sub";
98 public static final String SUGGEST = "_suggest";
99 public static final String QUICK_FINDER = "_quickfinder";
100 }
101
102 public static class ViewPhases {
103 public static final String INITIALIZE = "INITIALIZE";
104 public static final String APPLY_MODEL = "APPLY_MODEL";
105 public static final String FINALIZE = "FINALIZE";
106 }
107
108 public static class ViewStatus {
109 public static final String CREATED = "C";
110 public static final String INITIALIZED = "I";
111 public static final String FINAL = "F";
112 }
113
114 public static final String EL_PLACEHOLDER_PREFIX = "@{";
115 public static final String EL_PLACEHOLDER_SUFFIX = "}";
116 public static final String NO_BIND_ADJUST_PREFIX = "#form.";
117 public static final String DEFAULT_PATH_BIND_ADJUST_PREFIX = "#dp.";
118 public static final String FIELD_PATH_BIND_ADJUST_PREFIX = "#fp.";
119
120 public static class ContextVariableNames {
121 public static final String COLLECTION_GROUP = "collectionGroup";
122 public static final String CONFIG_PROPERTIES = "ConfigProperties";
123 public static final String COMPONENT = "component";
124 public static final String CONSTANTS = "Constants";
125 public static final String DOCUMENT_ENTRY = "DocumentEntry";
126 public static final String INDEX = "index";
127 public static final String IS_ADD_LINE = "isAddLine";
128 public static final String LINE = "line";
129 public static final String READONLY_LINE = "readOnlyLine";
130 public static final String MANAGER = "manager";
131 public static final String NODE = "node";
132 public static final String PARENT = "parent";
133 public static final String VIEW = "view";
134 public static final String VIEW_HELPER = "ViewHelper";
135 }
136
137 public static class TableToolsKeys {
138 public static final String AASORTING = "aaSorting";
139 public static final String BAUTO_TYPE = "bAutoType";
140 public static final String SDOM = "sDom";
141 public static final String LANGUAGE = "oLanguage";
142 public static final String EMPTY_TABLE = "sEmptyTable";
143 public static final String AO_COLUMNS = "aoColumns";
144 public static final String SORT_SKIP_ROWS = "aiSortingSkipRows";
145 public static final String SORT_DATA_TYPE = "sSortDataType";
146 public static final String SORTABLE = "bSortable";
147 public static final String VISIBLE = "bVisible";
148 public static final String SORT_TYPE = "sType";
149 public static final String TABLE_SORT = "bSort";
150 }
151
152 public static class TableToolsValues {
153 public static final String DOM_TEXT = "dom-text";
154 public static final String DOM_SELECT = "dom-select";
155 public static final String DOM_CHECK = "dom-checkbox";
156 public static final String DOM_RADIO = "dom-radio";
157 public static final String NUMERIC = "numeric";
158 public static final String STRING = "string";
159 public static final String DATE = "kuali_date";
160 public static final String PERCENT = "kuali_percent";
161 public static final String CURRENCY = "kuali_currency";
162 public static final String TIMESTAMP = "kuali_timestamp";
163 public static final String FALSE = "false";
164
165 public static final int ADD_ROW_DEFAULT_INDEX = 0;
166 }
167
168 public static class ReordererOptionKeys {
169 public static final String SELECTORS = "selectors";
170 public static final String MOVABLES = "movables";
171 }
172
173 public static class TitleAppendTypes {
174 public static final String DASH = "dash";
175 public static final String PARENTHESIS = "parenthesis";
176 public static final String REPLACE = "replace";
177 public static final String NONE = "none";
178 }
179
180 public static class UrlParams {
181 public static final String ACTION_EVENT = "actionEvent";
182 public static final String SHOW_HISTORY = "showHistory";
183 public static final String SHOW_HOME = "showHome";
184 public static final String FORM_KEY = "formKey";
185 public static final String PAGE_ID = "pageId";
186 public static final String HISTORY = "history";
187 }
188
189 public static class Messages {
190 public static final String VALIDATION_MSG_KEY_PREFIX = "validation.";
191 }
192
193 public static class MessageKeys {
194 public static final String QUERY_DATA_NOT_FOUND = "query.dataNotFound";
195 }
196
197 public static class ClientSideVariables {
198 public static final String KRAD_IMAGE_LOCATION = "kradImageLocation";
199 }
200
201 public static class RefreshCallerTypes {
202 public static final String LOOKUP = "LOOKUP";
203 public static final String MULTI_VALUE_LOOKUP = "MULTI_VALUE_LOOKUP";
204 public static final String QUESTION = "QUESTION";
205 }
206 }