View Javadoc
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 HtmlAttributes implements MarkupLanguageAttributes {
23  
24    ACCEPT_CHARSET("accept-charset"),
25    ACCEPT("accept"),
26    ACCESSKEY("accesskey"),
27    ACTION("action"),
28    ALIGN("align"),
29    ALT("alt"),
30    AUTOCOMPLETE("autocomplete"),
31    AUTOFOCUS("autofocus"),
32    BORDER("border"),
33    CHARSET("charset"),
34    CELLPADDING("cellpadding"),
35    CELLSPACING("cellspacing"),
36    CHECKED("checked"),
37    CLASS("class"),
38    COLSPAN("colspan"),
39    CONTENT("content"),
40    DEFER("defer"),
41    DISABLED("disabled"),
42    ENCTYPE("enctype"),
43    FOR("for"),
44    FRAMEBORDER("frameborder"),
45    HEIGHT("height"),
46    HREF("href"),
47    HTTP_EQUIV("http-equiv"),
48    ID("id"),
49    LABEL("label"),
50    LANG("lang"),
51    MAX("max"),
52    MAXLENGTH("maxlength"),
53    MEDIA("media"),
54    METHOD("method"),
55    MULTIPLE("multiple"),
56    NAME("name"),
57    NONCE("nonce"),
58    MINLENGTH("minlength"),
59    /** @deprecated Since 2.0.0. This attribute work not with SCP */
60    @Deprecated
61    ONBLUR("onblur"),
62    /** @deprecated Since 2.0.0. This attribute work not with SCP */
63    @Deprecated
64    ONCHANGE("onchange"),
65    /** @deprecated Since 2.0.0. This attribute work not with SCP */
66    @Deprecated
67    ONCLICK("onclick"),
68    /** @deprecated Since 2.0.0. This attribute work not with SCP */
69    @Deprecated
70    ONDBLCLICK("ondblclick"),
71    /** @deprecated Since 2.0.0. This attribute work not with SCP */
72    @Deprecated
73    ONFOCUS("onfocus"),
74    /** @deprecated Since 2.0.0. This attribute work not with SCP */
75    @Deprecated
76    ONFOCUSIN("onfocusin"),
77    /** @deprecated Since 2.0.0. This attribute work not with SCP */
78    @Deprecated
79    ONKEYDOWN("onkeydown"),
80    /** @deprecated Since 2.0.0. This attribute work not with SCP */
81    @Deprecated
82    ONKEYPRESS("onkeypress"),
83    /** @deprecated Since 2.0.0. This attribute work not with SCP */
84    @Deprecated
85    ONKEYUP("onkeyup"),
86    /** @deprecated Since 2.0.0. This attribute work not with SCP */
87    @Deprecated
88    ONLOAD("onload"),
89    /** @deprecated Since 2.0.0. This attribute work not with SCP */
90    @Deprecated
91    ONMOUSEOVER("onmouseover"),
92    /** @deprecated Since 2.0.0. This attribute work not with SCP */
93    @Deprecated
94    ONMOUSEOUT("onmouseout"),
95    PATTERN("pattern"),
96    PLACEHOLDER("placeholder"),
97    READONLY("readonly"),
98    REL("rel"),
99    REQUIRED("required"),
100   ROLE("role"),
101   ROWS("rows"),
102   ROWSPAN("rowspan"),
103   SCROLL("scroll"),
104   SELECTED("selected"),
105   SIZE("size"),
106   SRC("src"),
107   /** @deprecated Since 2.0.0. This attribute work not with SCP */
108   @Deprecated
109   STYLE("style"),
110   SUMMARY("summary"),
111   TABINDEX("tabindex"),
112   TARGET("target"),
113   TITLE("title"),
114   TYPE("type"),
115   VALIGN("valign"),
116   VALUE("value"),
117   WIDTH("width"),
118   XMLNS("xmlns"),
119 
120   // Non standard attributes ///////////////////////////////////////////////////////////
121 
122   /**
123    * The index of the tab inside the tab group.
124    */
125   TABGROUPINDEX("tabgroupindex"),
126   /**
127    * The mode of the tab switch: client, reloadTab, reloadPage.
128    */
129   SWITCHTYPE("switchtype");
130 
131 
132   private final String value;
133 
134   HtmlAttributes(final String value) {
135     this.value = value;
136   }
137 
138   @Override
139   public String getValue() {
140     return value;
141   }
142 
143 }
144