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.apt.annotation;
21  
22  import java.lang.annotation.Retention;
23  import java.lang.annotation.RetentionPolicy;
24  import java.lang.annotation.Target;
25  import java.lang.annotation.ElementType;
26  
27  @Retention(value = RetentionPolicy.SOURCE)
28  @Target(value = ElementType.TYPE)
29  
30  public @interface UIComponentTag {
31  
32    String uiComponent();
33  
34    /**
35     * @deprecated since 4.4.0. Will set automatically.
36     */
37    @Deprecated
38    String uiComponentBaseClass() default "";
39  
40    String uiComponentFacesClass() default "javax.faces.component.UIComponentBase";
41  
42    /**
43     * @deprecated since 4.4.0. Will set automatically.
44     */
45    @Deprecated
46    String componentType() default "";
47  
48    String componentFamily() default "";
49  
50    String[] rendererType() default {};
51  
52    String faceletHandler() default "org.apache.myfaces.tobago.facelets.TobagoComponentHandler";
53  
54    String displayName() default "";
55  
56    String[] interfaces() default {};
57  
58    Facet[] facets() default {};
59  
60    Behavior[] behaviors() default {};
61  
62    Markup[] markups() default {};
63  
64    boolean generate() default true;
65  
66    boolean isComponentAlreadyDefined() default false;
67  
68    /**
69     * Array of supported component-types that explicitly enumerates the
70     * set of allowed component children for this component. Other possible values are: ALL...
71     */
72    String[] allowedChildComponenents() default {"ALL"};
73  
74    /**
75     * Specifies the category of a component palette.
76     */
77    Category category() default Category.GENERAL;
78  
79    /**
80     * Specifies whether this component should be available on a component palette.
81     */
82    boolean isHidden() default false;
83  
84  
85  }