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