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.component;
21  
22  import org.apache.myfaces.tobago.internal.util.StringUtils;
23  
24  /**
25   * Constants for the component type.
26   * @since 4.4.0
27   */
28  public enum Tags {
29  
30    badge,
31    bar,
32    box,
33    button,
34    buttons,
35    calendar,
36    column,
37    columnNode,
38    columnSelector,
39    date,
40    event,
41    figure,
42    file,
43    flexLayout,
44    flowLayout,
45    footer,
46    form,
47    gridLayout,
48    header,
49    hidden,
50    in,
51    image,
52    link,
53    links,
54    label,
55    messages,
56    meta,
57    metaLink,
58    object,
59    operation,
60    out,
61    page,
62    panel,
63    popup,
64    progress,
65    reload,
66    row,
67    range,
68    script,
69    section,
70    segmentLayout,
71    selectBooleanCheckbox,
72    selectBooleanToggle,
73    selectItem,
74    selectItems,
75    selectManyCheckbox,
76    selectManyListbox,
77    selectManyShuttle,
78    selectOneChoice,
79    selectOneRadio,
80    selectOneListbox,
81    selectReference,
82    separator,
83    sheet,
84    sheetPageCommand,
85    splitLayout,
86    stars,
87    style,
88    suggest,
89    textarea,
90    tab,
91    tabGroup,
92    toolBar,
93    tree,
94    treeIcon,
95    treeIndent,
96    treeLabel,
97    treeListbox,
98    treeNode,
99    treeSelect;
100 
101   public static final String BADGE = "badge";
102   public static final String BAR = "bar";
103   public static final String BOX = "box";
104   public static final String BUTTON = "button";
105   public static final String BUTTONS = "buttons";
106   public static final String CALENDAR = "calendar";
107   public static final String COLUMN = "column";
108   public static final String COLUMN_NODE = "columnNode";
109   public static final String COLUMN_SELECTOR = "columnSelector";
110   public static final String EVENT = "event";
111   public static final String DATE = "date";
112   public static final String FIGURE = "figure";
113   public static final String FILE = "file";
114   public static final String FLEX_LAYOUT = "flexLayout";
115   public static final String FLOW_LAYOUT = "flowLayout";
116   public static final String FOOTER = "footer";
117   public static final String FORM = "form";
118   public static final String GRID_LAYOUT = "gridLayout";
119   public static final String HEADER = "header";
120   public static final String HIDDEN = "hidden";
121   public static final String IN = "in";
122   public static final String IMAGE = "image";
123   public static final String LINK = "link";
124   public static final String LINKS = "links";
125   public static final String LABEL = "label";
126   public static final String MESSAGES = "messages";
127   public static final String META = "meta";
128   public static final String META_LINK = "metaLink";
129   public static final String OBJECT = "object";
130   public static final String OPERATION = "operation";
131   public static final String OUT = "out";
132   public static final String PAGE = "page";
133   public static final String PANEL = "panel";
134   public static final String POPUP = "popup";
135   public static final String PROGRESS = "progress";
136   public static final String RELOAD = "reload";
137   public static final String ROW = "row";
138   public static final String RANGE = "range";
139   public static final String SCRIPT = "script";
140   public static final String SECTION = "section";
141   public static final String SEGMENT_LAYOUT = "segmentLayout";
142   public static final String SELECT_BOOLEAN_CHECKBOX = "selectBooleanCheckbox";
143   public static final String SELECT_BOOLEAN_TOGGLE = "selectBooleanToggle";
144   public static final String SELECT_ITEM = "selectItem";
145   public static final String SELECT_ITEMS = "selectItems";
146   public static final String SELECT_MANY_CHECKBOX = "selectManyCheckbox";
147   public static final String SELECT_MANY_LISTBOX = "selectManyListbox";
148   public static final String SELECT_MANY_SHUTTLE = "selectManyShuttle";
149   public static final String SELECT_ONE_CHOICE = "selectOneChoice";
150   public static final String SELECT_ONE_RADIO = "selectOneRadio";
151   public static final String SELECT_ONE_LISTBOX = "selectOneListbox";
152   public static final String SELECT_REFERENCE = "selectReference";
153   public static final String SEPARATOR = "separator";
154   public static final String SHEET = "sheet";
155   public static final String SHEET_PAGE_COMMAND = "sheetPageCommand";
156   public static final String SPLIT_LAYOUT = "splitLayout";
157   public static final String STARS = "stars";
158   public static final String STYLE = "style";
159   public static final String SUGGEST = "suggest";
160   public static final String TEXTAREA = "textarea";
161   public static final String TAB = "tab";
162   public static final String TAB_GROUP = "tabGroup";
163   public static final String TOOL_BAR = "toolBar";
164   public static final String TREE = "tree";
165   public static final String TREE_ICON = "treeIcon";
166   public static final String TREE_INDENT = "treeIndent";
167   public static final String TREE_LABEL = "treeLabel";
168   public static final String TREE_LISTBOX = "treeListbox";
169   public static final String TREE_NODE = "treeNode";
170   public static final String TREE_SELECT = "treeSelect";
171 
172   public String componentType() {
173     return "org.apache.myfaces.tobago." + StringUtils.firstToUpperCase(name());
174   }
175 }