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