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 javax.faces.component.html;
20  
21  import javax.faces.component.UIOutput;
22  import javax.faces.convert.Converter;
23  
24  import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
25  import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFExclude;
26  import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
27  
28  /**
29   * 
30   */
31  @JSFComponent
32  (name="h:body", clazz = "javax.faces.component.html.HtmlBody",
33   defaultRendererType="javax.faces.Body",template=true,
34   implementz = "javax.faces.component.behavior.ClientBehaviorHolder")
35  abstract class _HtmlBody extends UIOutput 
36      implements _EventProperties, _UniversalProperties, _StyleProperties
37  {
38  
39    static public final String COMPONENT_FAMILY = "javax.faces.Output";
40    static public final String COMPONENT_TYPE = "javax.faces.OutputBody";
41  
42    /**
43     * HTML: Script to be invoked when the page is loaded
44     * 
45     */
46    @JSFProperty(clientEvent="load")
47    public abstract String getOnload();
48    
49    /**
50     * HTML: Script to be invoked when the page is unloaded
51     * 
52     */
53    @JSFProperty(clientEvent="unload")
54    public abstract String getOnunload();
55    
56    /**
57     * 
58     * @since 2.1.0
59     * @return
60     */
61    @JSFProperty
62    public abstract String getXmlns();
63  
64    @JSFExclude
65    @JSFProperty(tagExcluded=true)
66    @Override
67    public Converter getConverter()
68    {
69      return super.getConverter();
70    }
71  
72    @JSFExclude  
73    @JSFProperty(tagExcluded=true)
74    @Override
75    public Object getValue()
76    {
77      return super.getValue();
78    }
79  
80    @JSFExclude
81    @JSFProperty(tagExcluded=true)
82    @Override
83    public String getId()
84    {
85      return super.getId();
86    }
87  
88    @JSFExclude
89    @JSFProperty(tagExcluded=true)
90    @Override
91    public boolean isRendered()
92    {
93      return super.isRendered();
94    }
95  }