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.internal.taglib.component;
21  
22  import org.apache.myfaces.tobago.apt.annotation.Behavior;
23  import org.apache.myfaces.tobago.apt.annotation.BodyContentDescription;
24  import org.apache.myfaces.tobago.apt.annotation.Facet;
25  import org.apache.myfaces.tobago.apt.annotation.Markup;
26  import org.apache.myfaces.tobago.apt.annotation.Tag;
27  import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
28  import org.apache.myfaces.tobago.component.ClientBehaviors;
29  import org.apache.myfaces.tobago.component.Facets;
30  import org.apache.myfaces.tobago.component.RendererTypes;
31  import org.apache.myfaces.tobago.internal.taglib.declaration.HasAccessKey;
32  import org.apache.myfaces.tobago.internal.taglib.declaration.HasAutocomplete;
33  import org.apache.myfaces.tobago.internal.taglib.declaration.HasConverter;
34  import org.apache.myfaces.tobago.internal.taglib.declaration.HasConverterMessage;
35  import org.apache.myfaces.tobago.internal.taglib.declaration.HasIdBindingAndRendered;
36  import org.apache.myfaces.tobago.internal.taglib.declaration.HasLabel;
37  import org.apache.myfaces.tobago.internal.taglib.declaration.HasLabelLayout;
38  import org.apache.myfaces.tobago.internal.taglib.declaration.HasPlaceholder;
39  import org.apache.myfaces.tobago.internal.taglib.declaration.HasRequiredMessage;
40  import org.apache.myfaces.tobago.internal.taglib.declaration.HasTabIndex;
41  import org.apache.myfaces.tobago.internal.taglib.declaration.HasTip;
42  import org.apache.myfaces.tobago.internal.taglib.declaration.HasValidator;
43  import org.apache.myfaces.tobago.internal.taglib.declaration.HasValidatorMessage;
44  import org.apache.myfaces.tobago.internal.taglib.declaration.HasValue;
45  import org.apache.myfaces.tobago.internal.taglib.declaration.HasValueChangeListener;
46  import org.apache.myfaces.tobago.internal.taglib.declaration.IsDisabled;
47  import org.apache.myfaces.tobago.internal.taglib.declaration.IsFocus;
48  import org.apache.myfaces.tobago.internal.taglib.declaration.IsPassword;
49  import org.apache.myfaces.tobago.internal.taglib.declaration.IsReadonly;
50  import org.apache.myfaces.tobago.internal.taglib.declaration.IsRequired;
51  import org.apache.myfaces.tobago.internal.taglib.declaration.IsVisual;
52  
53  import javax.faces.component.UIInput;
54  
55  /**
56   * Renders a text input field.
57   */
58  @Tag(name = "in")
59  @BodyContentDescription(anyTagOf = "facestag")
60  @UIComponentTag(
61      uiComponent = "org.apache.myfaces.tobago.component.UIIn",
62      uiComponentBaseClass = "org.apache.myfaces.tobago.internal.component.AbstractUIIn",
63      uiComponentFacesClass = "javax.faces.component.UIInput",
64      componentFamily = UIInput.COMPONENT_FAMILY,
65      rendererType = RendererTypes.IN,
66      allowedChildComponenents = {
67          "org.apache.myfaces.tobago.Suggest"
68      },
69      facets = {
70          @Facet(name = Facets.BEFORE,
71              description =
72                  "This facet can contain a part for input groups."),
73          @Facet(name = Facets.AFTER,
74              description =
75                  "This facet can contain a part for input groups.")
76      },
77      behaviors = {
78          @Behavior(
79              name = ClientBehaviors.CHANGE,
80              isDefault = true),
81          @Behavior(
82              name = ClientBehaviors.CLICK),
83          @Behavior(
84              name = ClientBehaviors.DBLCLICK),
85          @Behavior(
86              name = ClientBehaviors.FOCUS),
87          @Behavior(
88              name = ClientBehaviors.BLUR)
89      },
90      markups = {
91          @Markup(name = org.apache.myfaces.tobago.context.Markup.STRING_LOCAL_MENU,
92              description = "If a suggest menu is available, it will be rendered on the component, "
93                  + "not in the '.tobago-page-menuStore'."
94          )
95      })
96  public interface InTagDeclaration
97      extends HasIdBindingAndRendered, HasConverter, IsReadonly, IsDisabled, IsRequired, HasTip, IsPassword,
98      HasAccessKey, HasValidator, HasValue, HasValueChangeListener, HasTabIndex, IsFocus, IsVisual,
99      HasValidatorMessage, HasConverterMessage, HasRequiredMessage, HasLabel, HasLabelLayout,
100     HasAutocomplete, HasPlaceholder {
101 
102 }