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    MIN("min"),
59    MINLENGTH("minlength"),
60    /** @deprecated Since 2.0.0. This attribute work not with SCP */
61    @Deprecated
62    ONBLUR("onblur"),
63    /** @deprecated Since 2.0.0. This attribute work not with SCP */
64    @Deprecated
65    ONCHANGE("onchange"),
66    /** @deprecated Since 2.0.0. This attribute work not with SCP */
67    @Deprecated
68    ONCLICK("onclick"),
69    /** @deprecated Since 2.0.0. This attribute work not with SCP */
70    @Deprecated
71    ONDBLCLICK("ondblclick"),
72    /** @deprecated Since 2.0.0. This attribute work not with SCP */
73    @Deprecated
74    ONFOCUS("onfocus"),
75    /** @deprecated Since 2.0.0. This attribute work not with SCP */
76    @Deprecated
77    ONFOCUSIN("onfocusin"),
78    /** @deprecated Since 2.0.0. This attribute work not with SCP */
79    @Deprecated
80    ONKEYDOWN("onkeydown"),
81    /** @deprecated Since 2.0.0. This attribute work not with SCP */
82    @Deprecated
83    ONKEYPRESS("onkeypress"),
84    /** @deprecated Since 2.0.0. This attribute work not with SCP */
85    @Deprecated
86    ONKEYUP("onkeyup"),
87    /** @deprecated Since 2.0.0. This attribute work not with SCP */
88    @Deprecated
89    ONLOAD("onload"),
90    /** @deprecated Since 2.0.0. This attribute work not with SCP */
91    @Deprecated
92    ONMOUSEOVER("onmouseover"),
93    /** @deprecated Since 2.0.0. This attribute work not with SCP */
94    @Deprecated
95    ONMOUSEOUT("onmouseout"),
96    PATTERN("pattern"),
97    PLACEHOLDER("placeholder"),
98    READONLY("readonly"),
99    REL("rel"),
100   REQUIRED("required"),
101   ROLE("role"),
102   ROWS("rows"),
103   ROWSPAN("rowspan"),
104   SCROLL("scroll"),
105   SELECTED("selected"),
106   SIZE("size"),
107   SRC("src"),
108   STEP("step"),
109   /** @deprecated Since 2.0.0. This attribute work not with SCP */
110   @Deprecated
111   STYLE("style"),
112   SUMMARY("summary"),
113   TABINDEX("tabindex"),
114   TARGET("target"),
115   TITLE("title"),
116   TYPE("type"),
117   VALIGN("valign"),
118   VALUE("value"),
119   WIDTH("width"),
120   XMLNS("xmlns"),
121 
122   // Non standard attributes ///////////////////////////////////////////////////////////
123 
124   /**
125    * The index of the tab inside the tab group.
126    */
127   TABGROUPINDEX("tabgroupindex"),
128   /**
129    * The mode of the tab switch: client, reloadTab, reloadPage.
130    */
131   SWITCHTYPE("switchtype");
132 
133 
134   private final String value;
135 
136   HtmlAttributes(final String value) {
137     this.value = value;
138   }
139 
140   @Override
141   public String getValue() {
142     return value;
143   }
144 
145 }
146