1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 20 package org.apache.myfaces.tobago.renderkit.html; 21 22 public enum CustomAttributes implements MarkupLanguageAttributes { 23 24 COLLAPSE_ACTION("collapse-action"), 25 COLLAPSE_TARGET("collapse-target"), 26 CONFIRMATION("confirmation"), 27 DELAY("delay"), 28 EVENT("event"), 29 /** 30 * <f:ajax> attribute 31 */ 32 EXECUTE("execute"), 33 EXPANDABLE("expandable"), 34 FOCUS_ID("focus-id"), 35 /** 36 * The index of the tab inside the tab group. 37 */ 38 INDEX("index"), 39 ITEMS("items"), 40 /** 41 * Lazy loading in sheet. 42 */ 43 LAZY("lazy"), 44 /** 45 * Is this request/response an update of lazy loaded data in sheet. 46 */ 47 LAZY_UPDATE("lazy-update"), 48 LOCALE("locale"), 49 LOCAL_MENU("local-menu"), 50 MAX_ITEMS("max-items"), 51 MIN_CHARS("min-chars"), 52 MULTI_FORMAT("multi-format"), 53 OMIT("omit"), 54 ORIENTATION("orientation"), 55 PARENT("parent"), 56 SELECTABLE("selectable"), 57 SELECTED("selected"), 58 /** 59 * <f:ajax> attribute 60 */ 61 RENDER("render"), 62 /** 63 * Number of rows to show/load for lazy loading in sheet. 64 */ 65 ROWS("rows"), 66 /** 67 * Number of all rows in sheet. 68 */ 69 ROW_COUNT("row-count"), 70 /** 71 * Index of a specific row in the sheet. 72 */ 73 ROW_INDEX("row-index"), 74 /** 75 * The mode of the tab switch: client, reloadTab, reloadPage. 76 */ 77 SWITCH_TYPE("switch-type"), 78 TOTAL_COUNT("total-count"), 79 DECOUPLED("decoupled"), 80 UPDATE("update"); 81 82 private final String value; 83 84 CustomAttributes(final String value) { 85 this.value = value; 86 } 87 88 @Override 89 public String getValue() { 90 return value; 91 } 92 93 }