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.Facet;
23  import org.apache.myfaces.tobago.apt.annotation.Tag;
24  import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
25  import org.apache.myfaces.tobago.component.Facets;
26  import org.apache.myfaces.tobago.component.RendererTypes;
27  import org.apache.myfaces.tobago.internal.taglib.declaration.HasAction;
28  import org.apache.myfaces.tobago.internal.taglib.declaration.HasActionListener;
29  import org.apache.myfaces.tobago.internal.taglib.declaration.HasIdBindingAndRendered;
30  import org.apache.myfaces.tobago.internal.taglib.declaration.HasImage;
31  import org.apache.myfaces.tobago.internal.taglib.declaration.HasLabelAndAccessKey;
32  import org.apache.myfaces.tobago.internal.taglib.declaration.HasLink;
33  import org.apache.myfaces.tobago.internal.taglib.declaration.HasRenderedPartially;
34  import org.apache.myfaces.tobago.internal.taglib.declaration.HasResource;
35  import org.apache.myfaces.tobago.internal.taglib.declaration.HasTarget;
36  import org.apache.myfaces.tobago.internal.taglib.declaration.HasTip;
37  import org.apache.myfaces.tobago.internal.taglib.declaration.IsDisabledBySecurity;
38  import org.apache.myfaces.tobago.internal.taglib.declaration.IsImmediateCommand;
39  import org.apache.myfaces.tobago.internal.taglib.declaration.IsOmit;
40  import org.apache.myfaces.tobago.internal.taglib.declaration.IsTransition;
41  import org.apache.myfaces.tobago.internal.taglib.declaration.IsVisual;
42  
43  import javax.faces.component.UICommand;
44  
45  /**
46   * Renders a command button within a toolbar.
47   */
48  @Tag(name = "toolBarCommand")
49  @UIComponentTag(
50      uiComponent = "org.apache.myfaces.tobago.component.UIToolBarCommand",
51      uiComponentBaseClass = "org.apache.myfaces.tobago.internal.component.AbstractUIToolBarCommand",
52      uiComponentFacesClass = "javax.faces.component.UICommand",
53      componentFamily = UICommand.COMPONENT_FAMILY,
54      rendererType = RendererTypes.BUTTON,
55      allowedChildComponenents = "NONE",
56      facets = {
57          @Facet(name = Facets.CONFIRMATION, description = "Contains a UIOutput instance with the confirmation message.",
58              allowedChildComponenents = "org.apache.myfaces.tobago.Out"),
59          @Facet(name = Facets.POPUP, description = "Contains a UIPopup instance.",
60              allowedChildComponenents = "org.apache.myfaces.tobago.Popup"),
61          @Facet(name = Facets.DROP_DOWN_MENU, description = "Contains a UIMenu instance to render a drop down menu.",
62              allowedChildComponenents = "org.apache.myfaces.tobago.Menu")
63      })
64  public interface ToolBarCommandTagDeclaration
65      extends HasAction, HasActionListener, IsImmediateCommand,
66      HasLink, HasResource, IsTransition, HasTarget, HasRenderedPartially, IsOmit, HasIdBindingAndRendered,
67      HasLabelAndAccessKey, HasImage, IsDisabledBySecurity, HasTip, IsVisual {
68  }