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 package org.apache.myfaces.shared_orchestra.renderkit;
20
21
22 /**
23 * Constant declarations for JSF tags
24 * @author Anton Koinov (latest modification by $Author: lu4242 $)
25 * @version $Revision: 699138 $ $Date: 2008-09-25 19:39:39 -0500 (Thu, 25 Sep 2008) $
26 */
27 public interface JSFAttr
28 {
29 //~ Static fields/initializers -----------------------------------------------------------------
30
31 // Common Attributes
32 String ID_ATTR = "id";
33 String VALUE_ATTR = "value";
34 String BINDING_ATTR = "binding";
35 String STYLE_ATTR = "style";
36 String STYLE_CLASS_ATTR = "styleClass";
37 String ESCAPE_ATTR = "escape";
38 String FORCE_ID_ATTR = "forceId";
39 String FORCE_ID_INDEX_ATTR = "forceIdIndex";
40 String ACCEPTCHARSET_ATTR = "acceptcharset";
41
42 // Common Output Attributes
43 String FOR_ATTR = "for";
44 String CONVERTER_ATTR = "converter";
45
46 // Ouput_Time Attributes
47 String TIME_STYLE_ATTR = "timeStyle";
48 String TIMEZONE_ATTR = "timezone";
49
50 // Common Input Attributes
51 String REQUIRED_ATTR = "required";
52 String VALIDATOR_ATTR = "validator";
53 String DISABLED_ATTR = "disabled";
54
55 // Input_Secret Attributes
56 String REDISPLAY_ATTR = "redisplay";
57
58 // Input_Checkbox Attributes
59 String LAYOUT_ATTR = "layout";
60
61 // Select_Menu Attributes
62 String SIZE_ATTR = "size";
63
64 // SelectMany Checkbox List/ Select One Radio Attributes
65 String BORDER_ATTR = "border";
66 String DISABLED_CLASS_ATTR = "disabledClass";
67 String ENABLED_CLASS_ATTR = "enabledClass";
68
69 // Common Command Attributes
70 /**@deprecated */
71 String COMMAND_CLASS_ATTR = "commandClass";
72 String LABEL_ATTR = "label";
73 String IMAGE_ATTR = "image";
74 String ACTION_ATTR = "action";
75 String IMMEDIATE_ATTR = "immediate";
76
77
78 // Command_Button Attributes
79 String TYPE_ATTR = "type";
80
81 // Common Panel Attributes
82 /**@deprecated */
83 String PANEL_CLASS_ATTR = "panelClass";
84 String FOOTER_CLASS_ATTR = "footerClass";
85 String HEADER_CLASS_ATTR = "headerClass";
86 String COLUMN_CLASSES_ATTR = "columnClasses";
87 String ROW_CLASSES_ATTR = "rowClasses";
88
89 // Panel_Grid Attributes
90 String COLUMNS_ATTR = "columns";
91 String COLSPAN_ATTR = "colspan"; // extension
92
93 // UIMessage and UIMessages attributes
94 String SHOW_SUMMARY_ATTR = "showSummary";
95 String SHOW_DETAIL_ATTR = "showDetail";
96 String GLOBAL_ONLY_ATTR = "globalOnly";
97
98 // HtmlOutputMessage attributes
99 String ERROR_CLASS_ATTR = "errorClass";
100 String ERROR_STYLE_ATTR = "errorStyle";
101 String FATAL_CLASS_ATTR = "fatalClass";
102 String FATAL_STYLE_ATTR = "fatalStyle";
103 String INFO_CLASS_ATTR = "infoClass";
104 String INFO_STYLE_ATTR = "infoStyle";
105 String WARN_CLASS_ATTR = "warnClass";
106 String WARN_STYLE_ATTR = "warnStyle";
107 String TITLE_ATTR = "title";
108 String TOOLTIP_ATTR = "tooltip";
109
110 // GraphicImage attributes
111 String URL_ATTR = "url";
112
113 // UISelectItem attributes
114 String ITEM_DISABLED_ATTR = "itemDisabled";
115 String ITEM_DESCRIPTION_ATTR = "itemDescription";
116 String ITEM_LABEL_ATTR = "itemLabel";
117 String ITEM_VALUE_ATTR = "itemValue";
118
119 // UIData attributes
120 String ROWS_ATTR = "rows";
121 String VAR_ATTR = "var";
122 String FIRST_ATTR = "first";
123
124 // dataTable (extended) attributes
125 String ROW_ID = "rowId";
126 String ROW_STYLECLASS_ATTR = "rowStyleClass";
127 String ROW_STYLE_ATTR = "rowStyle";
128
129 // Alternate locations (instead of using AddResource)
130 String JAVASCRIPT_LOCATION = "javascriptLocation";
131 String IMAGE_LOCATION = "imageLocation";
132 String STYLE_LOCATION = "styleLocation";
133
134
135
136 //~ Myfaces Extensions -------------------------------------------------------------------------------
137
138 // UISortData attributes
139 String COLUMN_ATTR = "column";
140 String ASCENDING_ATTR = "ascending";
141
142 // HtmlSelectManyCheckbox attributes
143 String LAYOUT_WIDTH_ATTR = "layoutWidth";
144
145 }