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