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  package org.apache.myfaces.view.facelets.tag.jsf.html;
20  
21  /**
22   * @author Jacob Hookom
23   * @version $Id: HtmlLibrary.java 1194861 2011-10-29 10:02:34Z struberg $
24   */
25  public final class HtmlLibrary extends AbstractHtmlLibrary
26  {
27  
28      public final static String NAMESPACE = "http://java.sun.com/jsf/html";
29  
30      public final static HtmlLibrary INSTANCE = new HtmlLibrary();
31  
32      public HtmlLibrary()
33      {
34          super(NAMESPACE);
35          
36          this.addHtmlComponent ("body", "javax.faces.OutputBody", "javax.faces.Body");
37          
38          this.addHtmlComponent ("button", "javax.faces.HtmlOutcomeTargetButton", "javax.faces.Button");
39          
40          this.addHtmlComponent("column", "javax.faces.HtmlColumn", null);
41  
42          this.addHtmlComponent("commandButton", "javax.faces.HtmlCommandButton", "javax.faces.Button");
43  
44          this.addHtmlComponent("commandLink", "javax.faces.HtmlCommandLink", "javax.faces.Link");
45  
46          this.addHtmlComponent("dataTable", "javax.faces.HtmlDataTable", "javax.faces.Table");
47  
48          this.addHtmlComponent("doctype", "javax.faces.OutputDoctype", "javax.faces.Doctype");
49          
50          this.addHtmlComponent("form", "javax.faces.HtmlForm", "javax.faces.Form");
51  
52          this.addHtmlComponent("graphicImage", "javax.faces.HtmlGraphicImage", "javax.faces.Image");
53          
54          this.addHtmlComponent ("head", "javax.faces.OutputHead", "javax.faces.Head");
55          
56          this.addHtmlComponent("inputHidden", "javax.faces.HtmlInputHidden", "javax.faces.Hidden");
57  
58          this.addHtmlComponent("inputSecret", "javax.faces.HtmlInputSecret", "javax.faces.Secret");
59  
60          this.addHtmlComponent("inputText", "javax.faces.HtmlInputText", "javax.faces.Text");
61  
62          this.addHtmlComponent("inputTextarea", "javax.faces.HtmlInputTextarea", "javax.faces.Textarea");
63          
64          this.addHtmlComponent ("link", "javax.faces.HtmlOutcomeTargetLink", "javax.faces.Link");
65          
66          this.addHtmlComponent("message", "javax.faces.HtmlMessage", "javax.faces.Message");
67  
68          this.addHtmlComponent("messages", "javax.faces.HtmlMessages", "javax.faces.Messages");
69  
70          this.addHtmlComponent("outputFormat", "javax.faces.HtmlOutputFormat", "javax.faces.Format");
71  
72          this.addHtmlComponent("outputLabel", "javax.faces.HtmlOutputLabel", "javax.faces.Label");
73  
74          this.addHtmlComponent("outputLink", "javax.faces.HtmlOutputLink", "javax.faces.Link");
75          
76          this.addComponent("outputScript", "javax.faces.Output", "javax.faces.resource.Script",
77                            HtmlOutputScriptHandler.class);
78          
79          this.addComponent("outputStylesheet", "javax.faces.Output", "javax.faces.resource.Stylesheet",
80                            HtmlOutputStylesheetHandler.class);
81          
82          this.addHtmlComponent("outputText", "javax.faces.HtmlOutputText", "javax.faces.Text");
83  
84          this.addHtmlComponent("panelGrid", "javax.faces.HtmlPanelGrid", "javax.faces.Grid");
85  
86          this.addHtmlComponent("panelGroup", "javax.faces.HtmlPanelGroup", "javax.faces.Group");
87  
88          this.addHtmlComponent("selectBooleanCheckbox", "javax.faces.HtmlSelectBooleanCheckbox", "javax.faces.Checkbox");
89  
90          this.addHtmlComponent("selectManyCheckbox", "javax.faces.HtmlSelectManyCheckbox", "javax.faces.Checkbox");
91  
92          this.addHtmlComponent("selectManyListbox", "javax.faces.HtmlSelectManyListbox", "javax.faces.Listbox");
93  
94          this.addHtmlComponent("selectManyMenu", "javax.faces.HtmlSelectManyMenu", "javax.faces.Menu");
95  
96          this.addHtmlComponent("selectOneListbox", "javax.faces.HtmlSelectOneListbox", "javax.faces.Listbox");
97  
98          this.addHtmlComponent("selectOneMenu", "javax.faces.HtmlSelectOneMenu", "javax.faces.Menu");
99  
100         this.addHtmlComponent("selectOneRadio", "javax.faces.HtmlSelectOneRadio", "javax.faces.Radio");
101     }
102 
103 }