001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.taglib.aui.base;
016    
017    import javax.servlet.http.HttpServletRequest;
018    import javax.servlet.jsp.JspException;
019    
020    /**
021     * @author Eduardo Lundgren
022     * @author Bruno Basto
023     * @author Nathan Cavanaugh
024     * @author Julio Camarero
025     * @generated
026     */
027    public class BaseSelectTag extends com.liferay.taglib.util.IncludeTag {
028    
029            @Override
030            public int doStartTag() throws JspException {
031                    setAttributeNamespace(_ATTRIBUTE_NAMESPACE);
032    
033                    return super.doStartTag();
034            }
035    
036            public java.lang.Object getBean() {
037                    return _bean;
038            }
039    
040            public boolean getChangesContext() {
041                    return _changesContext;
042            }
043    
044            public java.lang.String getCssClass() {
045                    return _cssClass;
046            }
047    
048            public java.util.Map<java.lang.String, java.lang.Object> getData() {
049                    return _data;
050            }
051    
052            public boolean getDisabled() {
053                    return _disabled;
054            }
055    
056            public boolean getFirst() {
057                    return _first;
058            }
059    
060            public java.lang.String getHelpMessage() {
061                    return _helpMessage;
062            }
063    
064            public java.lang.String getId() {
065                    return _id;
066            }
067    
068            public boolean getIgnoreRequestValue() {
069                    return _ignoreRequestValue;
070            }
071    
072            public boolean getInlineField() {
073                    return _inlineField;
074            }
075    
076            public java.lang.String getInlineLabel() {
077                    return _inlineLabel;
078            }
079    
080            public java.lang.String getLabel() {
081                    return _label;
082            }
083    
084            public boolean getLast() {
085                    return _last;
086            }
087    
088            public java.lang.String getListType() {
089                    return _listType;
090            }
091    
092            public java.lang.String getListTypeFieldName() {
093                    return _listTypeFieldName;
094            }
095    
096            public boolean getLocalizeLabel() {
097                    return _localizeLabel;
098            }
099    
100            public boolean getMultiple() {
101                    return _multiple;
102            }
103    
104            public java.lang.String getName() {
105                    return _name;
106            }
107    
108            public java.lang.String getOnChange() {
109                    return _onChange;
110            }
111    
112            public java.lang.String getOnClick() {
113                    return _onClick;
114            }
115    
116            public java.lang.String getPrefix() {
117                    return _prefix;
118            }
119    
120            public boolean getRequired() {
121                    return _required;
122            }
123    
124            public boolean getShowEmptyOption() {
125                    return _showEmptyOption;
126            }
127    
128            public boolean getShowRequiredLabel() {
129                    return _showRequiredLabel;
130            }
131    
132            public java.lang.String getSuffix() {
133                    return _suffix;
134            }
135    
136            public java.lang.String getTitle() {
137                    return _title;
138            }
139    
140            public boolean getUseNamespace() {
141                    return _useNamespace;
142            }
143    
144            public java.lang.String getWrapperCssClass() {
145                    return _wrapperCssClass;
146            }
147    
148            public void setBean(java.lang.Object bean) {
149                    _bean = bean;
150    
151                    setScopedAttribute("bean", bean);
152            }
153    
154            public void setChangesContext(boolean changesContext) {
155                    _changesContext = changesContext;
156    
157                    setScopedAttribute("changesContext", changesContext);
158            }
159    
160            public void setCssClass(java.lang.String cssClass) {
161                    _cssClass = cssClass;
162    
163                    setScopedAttribute("cssClass", cssClass);
164            }
165    
166            public void setData(java.util.Map<java.lang.String, java.lang.Object> data) {
167                    _data = data;
168    
169                    setScopedAttribute("data", data);
170            }
171    
172            public void setDisabled(boolean disabled) {
173                    _disabled = disabled;
174    
175                    setScopedAttribute("disabled", disabled);
176            }
177    
178            public void setFirst(boolean first) {
179                    _first = first;
180    
181                    setScopedAttribute("first", first);
182            }
183    
184            public void setHelpMessage(java.lang.String helpMessage) {
185                    _helpMessage = helpMessage;
186    
187                    setScopedAttribute("helpMessage", helpMessage);
188            }
189    
190            public void setId(java.lang.String id) {
191                    _id = id;
192    
193                    setScopedAttribute("id", id);
194            }
195    
196            public void setIgnoreRequestValue(boolean ignoreRequestValue) {
197                    _ignoreRequestValue = ignoreRequestValue;
198    
199                    setScopedAttribute("ignoreRequestValue", ignoreRequestValue);
200            }
201    
202            public void setInlineField(boolean inlineField) {
203                    _inlineField = inlineField;
204    
205                    setScopedAttribute("inlineField", inlineField);
206            }
207    
208            public void setInlineLabel(java.lang.String inlineLabel) {
209                    _inlineLabel = inlineLabel;
210    
211                    setScopedAttribute("inlineLabel", inlineLabel);
212            }
213    
214            public void setLabel(java.lang.String label) {
215                    _label = label;
216    
217                    setScopedAttribute("label", label);
218            }
219    
220            public void setLast(boolean last) {
221                    _last = last;
222    
223                    setScopedAttribute("last", last);
224            }
225    
226            public void setListType(java.lang.String listType) {
227                    _listType = listType;
228    
229                    setScopedAttribute("listType", listType);
230            }
231    
232            public void setListTypeFieldName(java.lang.String listTypeFieldName) {
233                    _listTypeFieldName = listTypeFieldName;
234    
235                    setScopedAttribute("listTypeFieldName", listTypeFieldName);
236            }
237    
238            public void setLocalizeLabel(boolean localizeLabel) {
239                    _localizeLabel = localizeLabel;
240    
241                    setScopedAttribute("localizeLabel", localizeLabel);
242            }
243    
244            public void setMultiple(boolean multiple) {
245                    _multiple = multiple;
246    
247                    setScopedAttribute("multiple", multiple);
248            }
249    
250            public void setName(java.lang.String name) {
251                    _name = name;
252    
253                    setScopedAttribute("name", name);
254            }
255    
256            public void setOnChange(java.lang.String onChange) {
257                    _onChange = onChange;
258    
259                    setScopedAttribute("onChange", onChange);
260            }
261    
262            public void setOnClick(java.lang.String onClick) {
263                    _onClick = onClick;
264    
265                    setScopedAttribute("onClick", onClick);
266            }
267    
268            public void setPrefix(java.lang.String prefix) {
269                    _prefix = prefix;
270    
271                    setScopedAttribute("prefix", prefix);
272            }
273    
274            public void setRequired(boolean required) {
275                    _required = required;
276    
277                    setScopedAttribute("required", required);
278            }
279    
280            public void setShowEmptyOption(boolean showEmptyOption) {
281                    _showEmptyOption = showEmptyOption;
282    
283                    setScopedAttribute("showEmptyOption", showEmptyOption);
284            }
285    
286            public void setShowRequiredLabel(boolean showRequiredLabel) {
287                    _showRequiredLabel = showRequiredLabel;
288    
289                    setScopedAttribute("showRequiredLabel", showRequiredLabel);
290            }
291    
292            public void setSuffix(java.lang.String suffix) {
293                    _suffix = suffix;
294    
295                    setScopedAttribute("suffix", suffix);
296            }
297    
298            public void setTitle(java.lang.String title) {
299                    _title = title;
300    
301                    setScopedAttribute("title", title);
302            }
303    
304            public void setUseNamespace(boolean useNamespace) {
305                    _useNamespace = useNamespace;
306    
307                    setScopedAttribute("useNamespace", useNamespace);
308            }
309    
310            public void setWrapperCssClass(java.lang.String wrapperCssClass) {
311                    _wrapperCssClass = wrapperCssClass;
312    
313                    setScopedAttribute("wrapperCssClass", wrapperCssClass);
314            }
315    
316            @Override
317            protected void cleanUp() {
318                    super.cleanUp();
319    
320                    _bean = null;
321                    _changesContext = false;
322                    _cssClass = null;
323                    _data = null;
324                    _disabled = false;
325                    _first = false;
326                    _helpMessage = null;
327                    _id = null;
328                    _ignoreRequestValue = false;
329                    _inlineField = false;
330                    _inlineLabel = null;
331                    _label = null;
332                    _last = false;
333                    _listType = null;
334                    _listTypeFieldName = null;
335                    _localizeLabel = true;
336                    _multiple = false;
337                    _name = null;
338                    _onChange = null;
339                    _onClick = null;
340                    _prefix = null;
341                    _required = false;
342                    _showEmptyOption = false;
343                    _showRequiredLabel = true;
344                    _suffix = null;
345                    _title = null;
346                    _useNamespace = true;
347                    _wrapperCssClass = null;
348            }
349    
350            @Override
351            protected String getEndPage() {
352                    return _END_PAGE;
353            }
354    
355            @Override
356            protected String getStartPage() {
357                    return _START_PAGE;
358            }
359    
360            @Override
361            protected void setAttributes(HttpServletRequest request) {
362                    setNamespacedAttribute(request, "bean", _bean);
363                    setNamespacedAttribute(request, "changesContext", _changesContext);
364                    setNamespacedAttribute(request, "cssClass", _cssClass);
365                    setNamespacedAttribute(request, "data", _data);
366                    setNamespacedAttribute(request, "disabled", _disabled);
367                    setNamespacedAttribute(request, "first", _first);
368                    setNamespacedAttribute(request, "helpMessage", _helpMessage);
369                    setNamespacedAttribute(request, "id", _id);
370                    setNamespacedAttribute(request, "ignoreRequestValue", _ignoreRequestValue);
371                    setNamespacedAttribute(request, "inlineField", _inlineField);
372                    setNamespacedAttribute(request, "inlineLabel", _inlineLabel);
373                    setNamespacedAttribute(request, "label", _label);
374                    setNamespacedAttribute(request, "last", _last);
375                    setNamespacedAttribute(request, "listType", _listType);
376                    setNamespacedAttribute(request, "listTypeFieldName", _listTypeFieldName);
377                    setNamespacedAttribute(request, "localizeLabel", _localizeLabel);
378                    setNamespacedAttribute(request, "multiple", _multiple);
379                    setNamespacedAttribute(request, "name", _name);
380                    setNamespacedAttribute(request, "onChange", _onChange);
381                    setNamespacedAttribute(request, "onClick", _onClick);
382                    setNamespacedAttribute(request, "prefix", _prefix);
383                    setNamespacedAttribute(request, "required", _required);
384                    setNamespacedAttribute(request, "showEmptyOption", _showEmptyOption);
385                    setNamespacedAttribute(request, "showRequiredLabel", _showRequiredLabel);
386                    setNamespacedAttribute(request, "suffix", _suffix);
387                    setNamespacedAttribute(request, "title", _title);
388                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
389                    setNamespacedAttribute(request, "wrapperCssClass", _wrapperCssClass);
390            }
391    
392            protected static final String _ATTRIBUTE_NAMESPACE = "aui:select:";
393    
394            private static final String _END_PAGE =
395                    "/html/taglib/aui/select/end.jsp";
396    
397            private static final String _START_PAGE =
398                    "/html/taglib/aui/select/start.jsp";
399    
400            private java.lang.Object _bean = null;
401            private boolean _changesContext = false;
402            private java.lang.String _cssClass = null;
403            private java.util.Map<java.lang.String, java.lang.Object> _data = null;
404            private boolean _disabled = false;
405            private boolean _first = false;
406            private java.lang.String _helpMessage = null;
407            private java.lang.String _id = null;
408            private boolean _ignoreRequestValue = false;
409            private boolean _inlineField = false;
410            private java.lang.String _inlineLabel = null;
411            private java.lang.String _label = null;
412            private boolean _last = false;
413            private java.lang.String _listType = null;
414            private java.lang.String _listTypeFieldName = null;
415            private boolean _localizeLabel = true;
416            private boolean _multiple = false;
417            private java.lang.String _name = null;
418            private java.lang.String _onChange = null;
419            private java.lang.String _onClick = null;
420            private java.lang.String _prefix = null;
421            private boolean _required = false;
422            private boolean _showEmptyOption = false;
423            private boolean _showRequiredLabel = true;
424            private java.lang.String _suffix = null;
425            private java.lang.String _title = null;
426            private boolean _useNamespace = true;
427            private java.lang.String _wrapperCssClass = null;
428    
429    }