001/** 002 * Copyright 2005-2014 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 */ 016package org.kuali.rice.krad.uif; 017 018 019/** 020 * General constants used within the User Interface Framework. 021 * 022 * @author Kuali Rice Team (rice.collab@kuali.org) 023 */ 024public class UifConstants { 025 public static final String CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME = "methodToCall"; 026 public static final String DEFAULT_MODEL_NAME = "KualiForm"; 027 public static final String COMPONENT_MODEL_NAME = "Component"; 028 public static final String DEFAULT_VIEW_NAME = "default"; 029 public static final String COMPONENT_ID_PREFIX = "u"; 030 public static final String SUFFIX_SEPARATOR = "_"; 031 032 public static final String DEFAULT_THEMES_DIRECTORY = "/themes"; 033 public static final String DEFAULT_IMAGES_DIRECTORY = "images"; 034 public static final String DEFAULT_SCRIPTS_DIRECTORY = "scripts"; 035 public static final String DEFAULT_STYLESHEETS_DIRECTORY = "stylesheets"; 036 public static final String THEME_DERIVED_PROPERTY_FILE = "theme-derived.properties"; 037 public static final String THEME_CSS_FILES = "themeCssFiles"; 038 public static final String THEME_JS_FILES = "themeJsFiles"; 039 public static final String THEME_DEV_JS_FILES = "devJsIncludes"; 040 public static final String THEME_LESS_FILES = "themeLessFiles"; 041 042 public static final String SPRING_VIEW_ID = "/krad/WEB-INF/ftl/uifRender"; 043 public static final String SPRING_REDIRECT_ID = "/krad/WEB-INF/ftl/redirect"; 044 public static final String REDIRECT_PREFIX = "redirect:"; 045 046 public static final String EL_PLACEHOLDER_PREFIX = "@{"; 047 public static final String EL_PLACEHOLDER_SUFFIX = "}"; 048 public static final String NO_BIND_ADJUST_PREFIX = "#form."; 049 public static final String DEFAULT_PATH_BIND_ADJUST_PREFIX = "#dp."; 050 public static final String FIELD_PATH_BIND_ADJUST_PREFIX = "#fp."; 051 public static final String LINE_PATH_BIND_ADJUST_PREFIX = "#lp."; 052 public static final String NODE_PATH_BIND_ADJUST_PREFIX = "#np."; 053 public static final String STRING_TEMPLATE_PARAMETER_PLACEHOLDER = "@"; 054 055 public static final String SPACE = " "; 056 057 public static final String REQUEST_FORM = "requestForm"; 058 059 public static final String BLOCKUI_NAVOPTS = "navigation"; 060 public static final String BLOCKUI_REFRESHOPTS = "refresh"; 061 062 public static final String VALIDATE_VIEWS_ONBUILD = "validate.views.onbuild"; 063 064 public static final String MESSAGE_VIEW_ID = "Uif-MessageView"; 065 public static final String SESSION_TIMEOUT_VIEW_ID = "Uif-SessionTimeoutView"; 066 public static final String LOGGED_OUT_VIEW_ID = "Uif-LoggedOutView"; 067 public static final String GROUP_VALIDATION_DEFAULTS_MAP_ID = "Uif-GroupValidationMessages-DataDefaults"; 068 public static final String FIELD_VALIDATION_DEFAULTS_MAP_ID = "Uif-FieldValidationMessages-DataDefaults"; 069 public static final String ACTION_DEFAULTS_MAP_ID = "Uif-Action-DataDefaults"; 070 public static final String REQUIRED_INDICATOR_ID = "Uif-RequiredIndicator"; 071 public static final String REQUIRED_NEXT_STATE_INDICATOR_ID = "Uif-RequiredIndicator-ForNextState"; 072 public static final String REFERER = "Referer"; 073 public static final String NO_RETURN = "NO_RETURN"; 074 075 public static final String EXPORT_FILE_NAME = "export.xml"; 076 public static final String KUALI_FORM_ATTR = "KualiForm"; 077 078 public static final String ICON_ONLY_PLACEMENT = "ICON_ONLY"; 079 public static final String PROPERTY_EDITOR_REGISTRY = "rice.krad.uif.propertyEditorRegistry"; 080 081 public static enum ReadOnlyListTypes { 082 DELIMITED, BREAK, OL, UL 083 } 084 085 public static enum Position { 086 BOTTOM, LEFT, RIGHT, TOP 087 } 088 089 public static enum Order { 090 FIRST, LINE_FIRST, NEXT_INPUT, SELF 091 } 092 093 public static enum NavigationType { 094 VERTICAL_MENU, HORIZONTAL_TABS 095 } 096 097 public static enum Orientation { 098 HORIZONTAL, VERTICAL 099 } 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 /** 115 * Enum of return types. Used to return the type of response being sent by the server to the client. 116 */ 117 public enum AjaxReturnTypes { 118 UPDATEPAGE("update-page"), UPDATECOMPONENT("update-component"), REDIRECT("redirect"), 119 UPDATEVIEW("update-view"), UPDATENONE("update-none"), DISPLAYLIGHTBOX("display-lightbox"), 120 UPDATEDIALOG("update-dialog"); 121 122 private String key; 123 124 AjaxReturnTypes(String key) { 125 this.key = key; 126 } 127 128 public String getKey() { 129 return key; 130 } 131 132 public void setKey(String key) { 133 this.key = key; 134 } 135 } 136 137 public static enum WindowTargets { 138 _blank, _self, _parent, _top 139 } 140 141 public static enum DialogDismissOption { 142 IMMEDIATE, PRESUBMIT, REQUEST 143 } 144 145 public enum WizardAction { 146 NONE(0), BACK(-1), CONTINUE(1); 147 148 private int step; 149 150 WizardAction(int step) { 151 this.step = step; 152 } 153 154 public int getStep() { 155 return step; 156 } 157 158 public void setStep(int step) { 159 this.step = step; 160 } 161 } 162 163 public static class ControllerMappings { 164 public static final String EXPORT = "export"; 165 } 166 167 public static class MethodToCallNames { 168 public static final String NAVIGATE = "navigate"; 169 public static final String START = "start"; 170 public static final String SAVE = "save"; 171 public static final String SEARCH = "search"; 172 public static final String CLOSE = "close"; 173 public static final String ADD_LINE = "addLine"; 174 public static final String DELETE_LINE = "deleteLine"; 175 public static final String REFRESH = "refresh"; 176 public static final String CANCEL = "cancel"; 177 public static final String SESSION_TIMEOUT = "sessionTimeout"; 178 public static final String TABLE_JSON = "tableJsonRetrieval"; 179 public static final String TABLE_DATA = "tableDataRetrieval"; 180 public static final String TABLE_XML = "tableXmlRetrieval"; 181 public static final String INQUIRY_XML = "inquiryXmlRetrieval"; 182 public static final String TABLE_CSV = "tableCsvRetrieval"; 183 public static final String TABLE_XLS = "tableXlsRetrieval"; 184 public static final String DISPLAY_SUPER_USER_DOCUMENT = "displaySuperUserDocument"; 185 } 186 187 public static class ActionEvents { 188 public static final String ADD_LINE = "addLine"; 189 public static final String ADD_BLANK_LINE = "addBlankLine"; 190 } 191 192 public static class LayoutComponentOptions { 193 public static final String COLUMN_SPAN = "colSpan"; 194 public static final String ROW_SPAN = "rowSpan"; 195 } 196 197 public static class RowSelection { 198 public static final String ALL = "all"; 199 public static final String ODD = "odd"; 200 public static final String EVEN = "even"; 201 } 202 203 public static class IdSuffixes { 204 public static final String ACTION = "_act"; 205 public static final String ADD_LINE = "_add"; 206 public static final String CONTROL = "_control"; 207 public static final String ATTRIBUTE = "_attribute"; 208 public static final String COLUMN = "_c"; 209 public static final String COLUMN_SORTS = "_columnSorts"; 210 public static final String COMPARE = "_comp"; 211 public static final String CONSTRAINT = "_constraint"; 212 public static final String DETAIL_LINK = "_detLink"; 213 public static final String DETAIL_GROUP = "_detGroup"; 214 public static final String DIRECT_INQUIRY = "_directinquiry"; 215 public static final String DISCLOSURE_CONTENT = "_disclosureContent"; 216 public static final String ERRORS = "_errors"; 217 public static final String INSTRUCTIONAL = "_instructional"; 218 public static final String LINE = "_line"; 219 public static final String LABEL = "_label"; 220 public static final String FIELDSET = "_fieldset"; 221 public static final String SUB = "_sub"; 222 public static final String SUGGEST = "_suggest"; 223 public static final String QUICK_FINDER = "_quickfinder"; 224 public static final String SPAN = "_span"; 225 public static final String TAB = "_tab"; 226 } 227 228 public static class ViewPhases { 229 public static final String INITIALIZE = "INITIALIZE"; 230 public static final String APPLY_MODEL = "APPLY_MODEL"; 231 public static final String FINALIZE = "FINALIZE"; 232 public static final String RENDER = "RENDER"; 233 public static final String PRE_PROCESS = "PRE_PROCESS"; 234 } 235 236 public static class ViewStatus { 237 public static final String CACHED = "X"; 238 public static final String CREATED = "C"; 239 public static final String INITIALIZED = "I"; 240 public static final String MODEL_APPLIED = "M"; 241 public static final String FINAL = "F"; 242 public static final String RENDERED = "R"; 243 } 244 245 public static class PostMetadata { 246 public static final String INPUT_FIELD_ATTRIBUTE_QUERY = "attributeQuery"; 247 public static final String INPUT_FIELD_SUGGEST = "suggest"; 248 public static final String INPUT_FIELD_SUGGEST_QUERY = "suggestQuery"; 249 public static final String INPUT_FIELD_IS_UPPERCASE = "isUppercase"; 250 public static final String LABEL = "label"; 251 public static final String PATH = "path"; 252 public static final String SIMPLE_CONSTRAINT = "simpleConstraint"; 253 public static final String VALID_CHARACTER_CONSTRAINT = "validCharacterConstraint"; 254 public static final String CASE_CONSTRAINT = "caseConstraint"; 255 public static final String MUST_OCCUR_CONSTRAINTS = "mustOccurConstraints"; 256 public static final String PREREQ_CONSTSTRAINTS = "prerequisiteConstraints"; 257 public static final String BINDING_PATH = "bindingPath"; 258 public static final String BINDING_INFO = "bindingInfo"; 259 public static final String ADD_LINE_BINDING_INFO = "addLineBindingInfo"; 260 public static final String ADD_LINE_PLACEMENT = "addLinePlacement"; 261 public static final String BASE_ID = "BASE_ID"; 262 public static final String COLL_DISPLAY_START = "displayStart"; 263 public static final String COLL_DISPLAY_LENGTH = "displayLength"; 264 public static final String COLL_LABEL = "collectionLabel"; 265 public static final String COLL_LOOKUP_FIELD_CONVERSIONS = "collectionLookup.fieldConversions"; 266 public static final String COLL_OBJECT_CLASS = "collectionObjectClass"; 267 public static final String DUPLICATE_LINE_PROPERTY_NAMES = "duplicateLinePropertyNames"; 268 public static final String DUPLICATE_LINE_LABEL_STRING = "duplicateLineLabelString"; 269 public static final String RESET_DATA_ON_REFRESH = "resetDataOnRefresh"; 270 public static final String STATE_MAPPING = "stateMapping"; 271 public static final String STATE_OBJECT_BINDING_PATH = "stateObjectBindingPath"; 272 public static final String SUGGEST = "suggest"; 273 public static final String QUICKFINDER_FOCUS_ID = "quickfinderFocusId"; 274 public static final String QUICKFINDER_JUMP_TO_ID = "quickfinderJumpToId"; 275 public static final String QUICKFINDER_CALLBACK_METHOD_TO_CALL = "quickfinderCallbackMethodToCall"; 276 public static final String QUICKFINDER_CALLBACK_METHOD = "quickfinderCallbackMethod"; 277 public static final String QUICKFINDER_CALLBACK_CONTEXT = "quickfinderCallbackContext"; 278 public static final String QUICKFINDER_CALLBACK_CONTEXT_PROPERTY_LINE_INDEX = "lineIndex"; 279 public static final String FILTERABLE_LOOKUP_CRITERIA = "filterableLookupCriteria"; 280 } 281 282 public static class LookupCriteriaPostMetadata { 283 public static final String COMPONENT_ID = "componentId"; 284 public static final String DISABLE_WILDCARDS_AND_OPERATORS = "disableWildcardsAndOperators"; 285 public static final String HIDDEN = "hidden"; 286 public static final String REQUIRED = "required"; 287 public static final String SECURE_VALUE = "secureValue"; 288 public static final String VALID_CHARACTERS_CONSTRAINT = "validCharactersConstraint"; 289 } 290 291 public static class ContextVariableNames { 292 public static final String COLLECTION_GROUP = "collectionGroup"; 293 public static final String CONFIG_PROPERTIES = "ConfigProperties"; 294 public static final String COMPONENT = "component"; 295 public static final String CONSTANTS = "Constants"; 296 public static final String DOCUMENT_ENTRY = "DocumentEntry"; 297 public static final String INDEX = "index"; 298 public static final String IS_ADD_LINE = "isAddLine"; 299 public static final String LINE = "line"; 300 public static final String LINE_SUFFIX = "lineSuffix"; 301 public static final String READONLY_LINE = "readOnlyLine"; 302 public static final String MANAGER = "manager"; 303 public static final String NODE = "node"; 304 public static final String NODE_PATH = "nodePath"; 305 public static final String PARENT = "parent"; 306 public static final String THEME_IMAGES = "ThemeImages"; 307 public static final String UIF_CONSTANTS = "UifConstants"; 308 public static final String VIEW = "view"; 309 public static final String VIEW_HELPER = "ViewHelper"; 310 public static final String PARENT_LINE = "parentLine"; 311 public static final String WIZARD = "wizard"; 312 public static final String USER_SESSION = "userSession"; 313 } 314 315 public static class TableToolsKeys { 316 public static final String AASORTING = "aaSorting"; 317 public static final String BAUTO_TYPE = "bAutoType"; 318 public static final String BPROCESSING = "bProcessing"; 319 public static final String BSERVER_SIDE = "bServerSide"; 320 public static final String SDOM = "sDom"; 321 public static final String CELL_CLASS = "sClass"; 322 public static final String MDATA = "mDataProp"; 323 public static final String LANGUAGE = "oLanguage"; 324 public static final String EMPTY_TABLE = "sEmptyTable"; 325 public static final String AO_COLUMNS = "aoColumns"; 326 public static final String AO_COLUMN_DEFS = "aoColumnDefs"; 327 public static final String SORT_SKIP_ROWS = "aiSortingSkipRows"; 328 public static final String SORT_DATA_TYPE = "sSortDataType"; 329 public static final String SORTABLE = "bSortable"; 330 public static final String TARGETS = "aTargets"; 331 public static final String VISIBLE = "bVisible"; 332 public static final String SORT_TYPE = "sType"; 333 public static final String TABLE_SORT = "bSort"; 334 public static final String SAJAX_SOURCE = "sAjaxSource"; 335 public static final String FOOTER_CALLBACK = "fnFooterCallback"; 336 public static final String AA_DATA = "aaData"; 337 public static final String DEFER_RENDER = "bDeferRender"; 338 public static final String SDOWNLOAD_SOURCE = "sDownloadSource"; 339 public static final String SERVER_PARAMS = "fnServerParams"; 340 } 341 342 public static class TableToolsValues { 343 public static final String DOM_TEXT = "dom-text"; 344 public static final String DOM_SELECT = "dom-select"; 345 public static final String DOM_CHECK = "dom-checkbox"; 346 public static final String DOM_RADIO = "dom-radio"; 347 348 // sort types: 349 350 public static final String NUMERIC = "numeric"; 351 public static final String STRING = "string"; 352 public static final String DATE = "kuali_date"; 353 public static final String PERCENT = "kuali_percent"; 354 public static final String CURRENCY = "kuali_currency"; 355 public static final String TIMESTAMP = "kuali_timestamp"; 356 357 public static final String FALSE = "false"; 358 public static final String TRUE = "true"; 359 360 public static final int ADD_ROW_DEFAULT_INDEX = 0; 361 public static final String JSON_TEMPLATE = "components/element/dataTablesJson.ftl"; 362 } 363 364 public static class TableLayoutValues { 365 public static final int ACTIONS_COLUMN_LEFT_INDEX = 1; 366 public static final int ACTIONS_COLUMN_RIGHT_INDEX = -1; 367 } 368 369 public static class PageRequest { 370 public static final String PREV = "prev"; 371 public static final String NEXT = "next"; 372 public static final String FIRST = "first"; 373 public static final String LAST = "last"; 374 public static final String PAGE_NUMBER = "pageNumber"; 375 } 376 377 public static class TabOptionKeys { 378 public static final String ACTIVE = "active"; 379 } 380 381 public static class TitleAppendTypes { 382 public static final String DASH = "dash"; 383 public static final String PARENTHESIS = "parenthesis"; 384 public static final String REPLACE = "replace"; 385 public static final String NONE = "none"; 386 } 387 388 public static class ComponentProperties { 389 public static final String HEADER_TEXT = "headerText"; 390 public static final String DEFAULT_VALUE = "defaultValue"; 391 public static final String DEFAULT_VALUES = "defaultValues"; 392 } 393 394 public static class UrlParams { 395 public static final String ACTION_EVENT = "actionEvent"; 396 public static final String FORM_KEY = "formKey"; 397 public static final String VIEW_ID = "viewId"; 398 public static final String PAGE_ID = "pageId"; 399 public static final String HISTORY = "history"; 400 public static final String LAST_FORM_KEY = "lastFormKey"; 401 public static final String LOGIN_USER = "__login_user"; 402 } 403 404 public static class Messages { 405 public static final String VALIDATION_MSG_KEY_PREFIX = "validation."; 406 public static final String STATE_PREFIX = "validation.statePrefix"; 407 public static final String PROPERTY_NAME_PREFIX = "validation.propertyNamePrefix"; 408 } 409 410 public static class MessageKeys { 411 public static final String LOOKUP_RESULT_MESSAGES = "LookupResultMessages"; 412 public static final String QUERY_DATA_NOT_FOUND = "query.dataNotFound"; 413 public static final String OPTION_ALL = "option.all"; 414 } 415 416 public static class ClientSideVariables { 417 public static final String KRAD_IMAGE_LOCATION = "kradImageLocation"; 418 public static final String KRAD_SCRIPT_CLEANUP = "scriptCleanup"; 419 public static final String KRAD_URL = "kradUrl"; 420 public static final String APPLICATION_URL = "applicationUrl"; 421 } 422 423 public static class RefreshCallerTypes { 424 public static final String LOOKUP = "LOOKUP"; 425 public static final String MULTI_VALUE_LOOKUP = "MULTI_VALUE_LOOKUP"; 426 public static final String QUESTION = "QUESTION"; 427 } 428 429 public static class RefreshStatus { 430 public static final String ERROR = "ERROR"; 431 } 432 433 public static final class HistoryFlow { 434 public static final String HISTORY_MANAGER = "historyManager"; 435 public static final String FLOW = "flow"; 436 public static final String START = "start"; 437 public static final String RETURN_TO_START = "returnToStart"; 438 public static final String SEPARATOR = "@@"; 439 } 440 441 public static final class RoleTypes { 442 public static final String ACTION = "Action"; 443 public static final String CONTROL = "Control"; 444 public static final String DATA_SCRIPT = "dataScript"; 445 public static final String INPUT_FIELD = "InputField"; 446 public static final String GROUP = "Group"; 447 public static final String GROUP_TOTAL = "groupTotal"; 448 public static final String TOTAL = "total"; 449 public static final String TOTALS_BLOCK = "totalsBlock"; 450 public static final String PAGE = "Page"; 451 public static final String PAGE_TOTAL = "pageTotal"; 452 public static final String ROW_GROUPING = "RowGrouping"; 453 public static final String VIEW = "View"; 454 } 455 456 public static final class DataAttributes { 457 public static final String TYPE = "type"; 458 public static final String ROLE = "role"; 459 public static final String REQ_INDICATOR = "req_indicator"; 460 public static final String ONCLICK = "onClick"; 461 public static final String SUBMIT_DATA = "submit_data"; 462 public static final String HAS_MESSAGES = "has_messages"; 463 public static final String SERVER_MESSAGES = "server_messages"; 464 public static final String VALIDATION_MESSAGES = "validation_messages"; 465 public static final String ACTION_DEFAULTS = "action_defaults"; 466 public static final String GROUP_VALIDATION_DEFAULTS = "group_validation_defaults"; 467 public static final String FIELD_VALIDATION_DEFAULTS = "field_validation_defaults"; 468 public static final String MESSAGES_FOR = "messages_for"; 469 public static final String PARENT = "parent"; 470 public static final String SUMMARIZE = "summarize"; 471 public static final String DISPLAY_MESSAGES = "displayMessages"; 472 public static final String CLOSEABLE = "closeable"; 473 public static final String COLLAPSE_FIELD_MESSAGES = "collapseFieldMessages"; 474 public static final String DISPLAY_LABEL = "displayLabel"; 475 public static final String SHOW_PAGE_SUMMARY_HEADER = "showPageSummaryHeader"; 476 public static final String DISPLAY_HEADER_SUMMARY = "displayHeaderSummary"; 477 public static final String IS_TABLE_COLLECTION = "isTableCollection"; 478 public static final String HAS_OWN_MESSAGES = "hasOwnMessages"; 479 public static final String PAGE_LEVEL = "pageLevel"; 480 public static final String FORCE_SHOW = "forceShow"; 481 public static final String SECTIONS = "sections"; 482 public static final String ORDER = "order"; 483 public static final String RETURN = "return"; 484 public static final String SERVER_ERRORS = "serverErrors"; 485 public static final String SERVER_WARNINGS = "serverWarnings"; 486 public static final String SERVER_INFO = "serverInfo"; 487 public static final String VIGNORE = "vignore"; 488 public static final String TOTAL = "total"; 489 public static final String SKIP_TOTAL = "skip_total"; 490 public static final String LABEL = "label"; 491 public static final String GROUP = "group"; 492 public static final String LABEL_FOR = "label_for"; 493 public static final String CONTROL_FOR = "control_for"; 494 public static final String ADD_CONTROLS = "add_controls"; 495 public static final String HEADER_FOR = "header_for"; 496 public static final String STICKY = "sticky"; 497 public static final String STICKY_FOOTER = "sticky_footer"; 498 public static final String DETAILS_DEFAULT_OPEN = "details_default_open"; 499 public static final String TAB_FOR = "tabfor"; 500 public static final String CHECKED = "checked"; 501 public static final String ENTER_KEY = "enter_key"; 502 public static final String DEFAULT_ENTER_KEY_ACTION = "default_enter_key_action"; 503 public static final String DISMISS = "dismiss"; 504 public static final String DISMISS_DIALOG_OPTION = "dismissdialogoption"; 505 public static final String DISMISS_RESPONSE = "response"; 506 public static final String DIALOG_RESPONSE_HANDLER = "response_handler"; 507 public static final String DIALOG_SHOW_HANDLER = "show_handler"; 508 public static final String DIALOG_HIDE_HANDLER = "hide_handler"; 509 } 510 511 public static final String JS_REGEX_SPECIAL_CHARS = new String("$[\\^.|?*+()"); 512 513 public static final class ActionDataAttributes { 514 public static final String AJAX_SUBMIT = "ajaxSubmit"; 515 public static final String CONFIRM_DIALOG_ID = "confirmDialogId"; 516 public static final String CONFIRM_PROMPT_TEXT = "confirm_prompttext"; 517 public static final String SUCCESS_CALLBACK = "successCallback"; 518 public static final String ERROR_CALLBACK = "errorCallback"; 519 public static final String PRE_SUBMIT_CALL = "preSubmitCall"; 520 public static final String LOADING_MESSAGE = "loadingMessage"; 521 public static final String DISABLE_BLOCKING = "disableBlocking"; 522 public static final String AJAX_RETURN_TYPE = "ajaxReturnType"; 523 public static final String REFRESH_ID = "refreshId"; 524 public static final String VALIDATE = "validate"; 525 public static final String DIRTY_ON_ACTION = "dirtyOnAction"; 526 public static final String CLEAR_DIRTY = "clearDirtyOnAction"; 527 public static final String PERFORM_DIRTY_VALIDATION = "performDirtyValidation"; 528 public static final String FOCUS_ID = "focusId"; 529 public static final String JUMP_TO_ID = "jumpToId"; 530 public static final String JUMP_TO_NAME = "jumpToName"; 531 } 532 533 public static final class AriaAttributes { 534 public static final String VALUE_NOW= "valuenow"; 535 public static final String VALUE_MAX = "valuemax"; 536 public static final String VALUE_MIN = "valuemin"; 537 public static final String VALUE_TEXT = "valuetext"; 538 } 539 540 public static final class AriaRoles { 541 public static final String PROGRESS_BAR = "progressbar"; 542 } 543 544 public static final class HtmlAttributeValues { 545 public static final String TARGET_BLANK = "_blank"; 546 } 547 548 public static final class CaseConstraintOperators { 549 public static final String HAS_VALUE = "has_value"; 550 public static final String EQUALS = "equals"; 551 public static final String GREATER_THAN_EQUAL = "greater_than_equal"; 552 public static final String LESS_THAN_EQUAL = "less_than_equal"; 553 public static final String NOT_EQUAL = "not_equal"; 554 public static final String NOT_EQUALS = "not_equals"; 555 public static final String GREATER_THAN = "greater_than"; 556 public static final String LESS_THAN = "less_than"; 557 } 558 559 public static final class JsFunctions { 560 public static final String COLLECTION_LINE_CHANGED = "collectionLineChanged"; 561 public static final String CREATE_LIGHTBOX_POST = "createLightBoxPost"; 562 public static final String HANDLE_SERVER_DIALOG_RESPONSE = "handleServerDialogResponse"; 563 public static final String INITIALIZE_VIEW_STATE = "initializeViewState"; 564 public static final String INITIALIZE_SESSION_TIMERS = "initializeSessionTimers"; 565 public static final String REDIRECT = "redirect"; 566 public static final String SET_CONFIG_PARM = "setConfigParam"; 567 public static final String SET_VALUE = "setValue"; 568 public static final String SHOW_GROWL = "showGrowl"; 569 public static final String SHOW_DIALOG = "showDialog"; 570 public static final String VALIDATE_ADD_LINE = "validateAddLine"; 571 public static final String VALIDATE_LINE = "validateLine"; 572 public static final String WRITE_CURRENT_PAGE_TO_SESSION = "writeCurrentPageToSession"; 573 } 574 575 public static final String EVENT_NAMESPACE = "uif"; 576 577 public static final String BOX_LAYOUT_HORIZONTAL_ITEM_CSS = "uif-boxLayoutHorizontalItem"; 578 public static final String BOX_LAYOUT_VERTICAL_ITEM_CSS = "uif-boxLayoutVerticalItem"; 579 580 public static final class ConfigProperties { 581 public static final String KRAD_IMAGES_URL = "krad.externalizable.images.url"; 582 public static final String KRAD_URL = "krad.url"; 583 } 584 585 public static final class FileExtensions { 586 public static final String CSS = ".css"; 587 public static final String JS = ".js"; 588 public static final String MIN = ".min"; 589 public static final String LESS = ".less"; 590 } 591 592 public static final class WrapperTags { 593 public static final String DIV = "div"; 594 public static final String SPAN = "span"; 595 public static final String P = "p"; 596 public static final String MAIN = "main"; 597 public static final String SECTION = "section"; 598 public static final String HEADER = "header"; 599 public static final String FOOTER = "footer"; 600 public static final String NAV = "nav"; 601 } 602 603 public static final class MultiFileUploadOptions { 604 public static final String URL = "url"; 605 public static final String ACCEPT_FILE_TYPES = "acceptFileTypes"; 606 public static final String MIN_SIZE = "minFileSize"; 607 public static final String MAX_SIZE = "maxFileSize"; 608 } 609}