1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.myfaces.tobago.internal.taglib.component;
21
22 import org.apache.myfaces.tobago.apt.annotation.BodyContentDescription;
23 import org.apache.myfaces.tobago.apt.annotation.DynamicExpression;
24 import org.apache.myfaces.tobago.apt.annotation.Tag;
25 import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
26 import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
27 import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
28 import org.apache.myfaces.tobago.component.RendererTypes;
29 import org.apache.myfaces.tobago.internal.component.AbstractUITabGroup;
30 import org.apache.myfaces.tobago.internal.taglib.declaration.HasAction;
31 import org.apache.myfaces.tobago.internal.taglib.declaration.HasActionListener;
32 import org.apache.myfaces.tobago.internal.taglib.declaration.HasCurrentMarkup;
33 import org.apache.myfaces.tobago.internal.taglib.declaration.HasIdBindingAndRendered;
34 import org.apache.myfaces.tobago.internal.taglib.declaration.HasMarkup;
35 import org.apache.myfaces.tobago.internal.taglib.declaration.HasRenderedPartially;
36 import org.apache.myfaces.tobago.internal.taglib.declaration.IsGridLayoutComponent;
37 import org.apache.myfaces.tobago.internal.taglib.declaration.IsGridLayoutContainer;
38 import org.apache.myfaces.tobago.internal.taglib.declaration.IsImmediateCommand;
39
40 import javax.faces.component.UIPanel;
41
42
43
44
45 @Tag(name = "tabGroup")
46 @BodyContentDescription(anyTagOf = "(<tc:tab>* ")
47 @UIComponentTag(
48 uiComponent = "org.apache.myfaces.tobago.component.UITabGroup",
49 uiComponentBaseClass = "org.apache.myfaces.tobago.internal.component.AbstractUITabGroup",
50 uiComponentFacesClass = "javax.faces.component.UIPanel",
51 componentFamily = UIPanel.COMPONENT_FAMILY,
52 rendererType = RendererTypes.TAB_GROUP,
53 interfaces = "javax.faces.component.ActionSource2",
54 allowedChildComponenents = "org.apache.myfaces.tobago.Tab")
55
56 public interface TabGroupTagDeclaration
57 extends HasIdBindingAndRendered, IsImmediateCommand, HasAction, HasActionListener, HasMarkup, HasCurrentMarkup,
58 IsGridLayoutComponent, IsGridLayoutContainer, HasRenderedPartially {
59
60
61
62
63 @TagAttribute
64 @UIComponentTagAttribute(type = "boolean", defaultValue = "true")
65 void setShowNavigationBar(String showNavigationBar);
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 @TagAttribute
82 @UIComponentTagAttribute(type = "java.lang.String",
83 allowedValues = {AbstractUITabGroup.SWITCH_TYPE_CLIENT, AbstractUITabGroup.SWITCH_TYPE_RELOAD_PAGE,
84 AbstractUITabGroup.SWITCH_TYPE_RELOAD_TAB},
85 defaultValue = AbstractUITabGroup.SWITCH_TYPE_CLIENT)
86 void setSwitchType(String switchType);
87
88
89
90
91
92
93
94 @TagAttribute
95 @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "0")
96 void setSelectedIndex(String selectedIndex);
97
98
99
100
101 @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "0")
102 void setRenderedIndex(String renderedIndex);
103
104 @TagAttribute
105 @UIComponentTagAttribute(
106 type = {},
107 expression = DynamicExpression.METHOD_EXPRESSION_REQUIRED,
108 methodSignature = "org.apache.myfaces.tobago.event.TabChangeEvent")
109 void setTabChangeListener(String listener);
110 }