001 /** 002 * Copyright 2005-2012 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.krad.uif; 017 018 /** 019 * General constants used within the User Interface Framework 020 * 021 * @author Kuali Rice Team (rice.collab@kuali.org) 022 */ 023 public class UifConstants { 024 public static final String CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME = "methodToCall"; 025 public static final String DEFAULT_MODEL_NAME = "KualiForm"; 026 public static final String DEFAULT_VIEW_NAME = "default"; 027 public static final String SPRING_VIEW_ID = "ApplicationView"; 028 public static final String SPRING_REDIRECT_ID = "redirectURL"; 029 030 public static enum Position { 031 BOTTOM, LEFT, RIGHT, TOP 032 } 033 034 public static enum Order { 035 FIRST 036 } 037 038 public static enum NavigationType { 039 VERTICAL_MENU, HORIZONTAL_TABS 040 } 041 042 public static enum Orientation { 043 HORIZONTAL, VERTICAL 044 } 045 046 public static enum MessageType { 047 NORMAL, CUTLINE, INSTRUCTIONAL, CONSTRAINT, REQUIRED, HELP_SUMMARY, HELP_DESCRIPTION 048 } 049 050 public static enum ViewType { 051 DEFAULT, DOCUMENT, INQUIRY, LOOKUP, MAINTENANCE, INCIDENT; 052 } 053 054 public static enum ControlType { 055 CHECKBOX, CHECKBOXGROUP, FILE, GROUP, HIDDEN, RADIOGROUP, SELECT, 056 TEXTAREA, TEXT, USER 057 } 058 059 public static enum WorkflowAction { 060 SAVE, ROUTE, BLANKETAPPROVE, APPROVE, DISAPPROVE, CANCEL, FYI, ACKNOWLEDGE 061 } 062 063 public static class MethodToCallNames { 064 public static final String NAVIGATE = "navigate"; 065 public static final String START = "start"; 066 public static final String SAVE = "save"; 067 public static final String SEARCH = "search"; 068 public static final String CLOSE = "close"; 069 public static final String ADD_LINE = "addLine"; 070 public static final String DELETE_LINE = "deleteLine"; 071 public static final String REFRESH = "refresh"; 072 public static final String CANCEL = "cancel"; 073 public static final String UPDATE_COMP = "updateComponent"; 074 public static final String TOGGLE_INACTIVE = "toggleInactiveRecordDisplay"; 075 } 076 077 public static class ActionEvents { 078 public static final String ADD_LINE = "addLine"; 079 } 080 081 public static class LayoutComponentOptions { 082 public static final String COLUMN_SPAN = "colSpan"; 083 public static final String ROW_SPAN = "rowSpan"; 084 } 085 086 public static class IdSuffixes { 087 public static final String ADD_LINE = "_add"; 088 public static final String ATTRIBUTE = "_attribute"; 089 public static final String COMPARE = "_comp"; 090 public static final String CONSTRAINT = "_constraint"; 091 public static final String DIRECT_INQUIRY = "_directinquiry"; 092 public static final String DIV = "_div"; 093 public static final String ERRORS = "_errors"; 094 public static final String INSTRUCTIONAL = "_instructional"; 095 public static final String LINE = "_line"; 096 public static final String LABEL = "_label"; 097 public static final String SUB = "_sub"; 098 public static final String SUGGEST = "_suggest"; 099 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 public static final String LINE_PATH_BIND_ADJUST_PREFIX = "#lp."; 120 121 public static class ContextVariableNames { 122 public static final String COLLECTION_GROUP = "collectionGroup"; 123 public static final String CONFIG_PROPERTIES = "ConfigProperties"; 124 public static final String COMPONENT = "component"; 125 public static final String CONSTANTS = "Constants"; 126 public static final String DOCUMENT_ENTRY = "DocumentEntry"; 127 public static final String INDEX = "index"; 128 public static final String IS_ADD_LINE = "isAddLine"; 129 public static final String LINE = "line"; 130 public static final String READONLY_LINE = "readOnlyLine"; 131 public static final String MANAGER = "manager"; 132 public static final String NODE = "node"; 133 public static final String PARENT = "parent"; 134 public static final String VIEW = "view"; 135 public static final String VIEW_HELPER = "ViewHelper"; 136 } 137 138 public static class TableToolsKeys { 139 public static final String AASORTING = "aaSorting"; 140 public static final String BAUTO_TYPE = "bAutoType"; 141 public static final String SDOM = "sDom"; 142 public static final String LANGUAGE = "oLanguage"; 143 public static final String EMPTY_TABLE = "sEmptyTable"; 144 public static final String AO_COLUMNS = "aoColumns"; 145 public static final String SORT_SKIP_ROWS = "aiSortingSkipRows"; 146 public static final String SORT_DATA_TYPE = "sSortDataType"; 147 public static final String SORTABLE = "bSortable"; 148 public static final String VISIBLE = "bVisible"; 149 public static final String SORT_TYPE = "sType"; 150 public static final String TABLE_SORT = "bSort"; 151 } 152 153 public static class TableToolsValues { 154 public static final String DOM_TEXT = "dom-text"; 155 public static final String DOM_SELECT = "dom-select"; 156 public static final String DOM_CHECK = "dom-checkbox"; 157 public static final String DOM_RADIO = "dom-radio"; 158 public static final String NUMERIC = "numeric"; 159 public static final String STRING = "string"; 160 public static final String DATE = "kuali_date"; 161 public static final String PERCENT = "kuali_percent"; 162 public static final String CURRENCY = "kuali_currency"; 163 public static final String TIMESTAMP = "kuali_timestamp"; 164 public static final String FALSE = "false"; 165 166 public static final int ADD_ROW_DEFAULT_INDEX = 0; 167 } 168 169 public static class ReordererOptionKeys { 170 public static final String SELECTORS = "selectors"; 171 public static final String MOVABLES = "movables"; 172 } 173 174 public static class TitleAppendTypes { 175 public static final String DASH = "dash"; 176 public static final String PARENTHESIS = "parenthesis"; 177 public static final String REPLACE = "replace"; 178 public static final String NONE = "none"; 179 } 180 181 public static class UrlParams { 182 public static final String ACTION_EVENT = "actionEvent"; 183 public static final String SHOW_HISTORY = "showHistory"; 184 public static final String SHOW_HOME = "showHome"; 185 public static final String FORM_KEY = "formKey"; 186 public static final String PAGE_ID = "pageId"; 187 public static final String HISTORY = "history"; 188 } 189 190 public static class Messages { 191 public static final String VALIDATION_MSG_KEY_PREFIX = "validation."; 192 } 193 194 public static class MessageKeys { 195 public static final String QUERY_DATA_NOT_FOUND = "query.dataNotFound"; 196 } 197 198 public static class ClientSideVariables { 199 public static final String KRAD_IMAGE_LOCATION = "kradImageLocation"; 200 } 201 202 public static class RefreshCallerTypes { 203 public static final String LOOKUP = "LOOKUP"; 204 public static final String MULTI_VALUE_LOOKUP = "MULTI_VALUE_LOOKUP"; 205 public static final String QUESTION = "QUESTION"; 206 } 207 }