001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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 getMultiple() {
097                    return _multiple;
098            }
099    
100            public java.lang.String getName() {
101                    return _name;
102            }
103    
104            public java.lang.String getOnChange() {
105                    return _onChange;
106            }
107    
108            public java.lang.String getOnClick() {
109                    return _onClick;
110            }
111    
112            public java.lang.String getPrefix() {
113                    return _prefix;
114            }
115    
116            public boolean getRequired() {
117                    return _required;
118            }
119    
120            public boolean getShowEmptyOption() {
121                    return _showEmptyOption;
122            }
123    
124            public boolean getShowRequiredLabel() {
125                    return _showRequiredLabel;
126            }
127    
128            public java.lang.String getSuffix() {
129                    return _suffix;
130            }
131    
132            public java.lang.String getTitle() {
133                    return _title;
134            }
135    
136            public boolean getUseNamespace() {
137                    return _useNamespace;
138            }
139    
140            public void setBean(java.lang.Object bean) {
141                    _bean = bean;
142    
143                    setScopedAttribute("bean", bean);
144            }
145    
146            public void setChangesContext(boolean changesContext) {
147                    _changesContext = changesContext;
148    
149                    setScopedAttribute("changesContext", changesContext);
150            }
151    
152            public void setCssClass(java.lang.String cssClass) {
153                    _cssClass = cssClass;
154    
155                    setScopedAttribute("cssClass", cssClass);
156            }
157    
158            public void setData(java.util.Map<java.lang.String, java.lang.Object> data) {
159                    _data = data;
160    
161                    setScopedAttribute("data", data);
162            }
163    
164            public void setDisabled(boolean disabled) {
165                    _disabled = disabled;
166    
167                    setScopedAttribute("disabled", disabled);
168            }
169    
170            public void setFirst(boolean first) {
171                    _first = first;
172    
173                    setScopedAttribute("first", first);
174            }
175    
176            public void setHelpMessage(java.lang.String helpMessage) {
177                    _helpMessage = helpMessage;
178    
179                    setScopedAttribute("helpMessage", helpMessage);
180            }
181    
182            public void setId(java.lang.String id) {
183                    _id = id;
184    
185                    setScopedAttribute("id", id);
186            }
187    
188            public void setIgnoreRequestValue(boolean ignoreRequestValue) {
189                    _ignoreRequestValue = ignoreRequestValue;
190    
191                    setScopedAttribute("ignoreRequestValue", ignoreRequestValue);
192            }
193    
194            public void setInlineField(boolean inlineField) {
195                    _inlineField = inlineField;
196    
197                    setScopedAttribute("inlineField", inlineField);
198            }
199    
200            public void setInlineLabel(java.lang.String inlineLabel) {
201                    _inlineLabel = inlineLabel;
202    
203                    setScopedAttribute("inlineLabel", inlineLabel);
204            }
205    
206            public void setLabel(java.lang.String label) {
207                    _label = label;
208    
209                    setScopedAttribute("label", label);
210            }
211    
212            public void setLast(boolean last) {
213                    _last = last;
214    
215                    setScopedAttribute("last", last);
216            }
217    
218            public void setListType(java.lang.String listType) {
219                    _listType = listType;
220    
221                    setScopedAttribute("listType", listType);
222            }
223    
224            public void setListTypeFieldName(java.lang.String listTypeFieldName) {
225                    _listTypeFieldName = listTypeFieldName;
226    
227                    setScopedAttribute("listTypeFieldName", listTypeFieldName);
228            }
229    
230            public void setMultiple(boolean multiple) {
231                    _multiple = multiple;
232    
233                    setScopedAttribute("multiple", multiple);
234            }
235    
236            public void setName(java.lang.String name) {
237                    _name = name;
238    
239                    setScopedAttribute("name", name);
240            }
241    
242            public void setOnChange(java.lang.String onChange) {
243                    _onChange = onChange;
244    
245                    setScopedAttribute("onChange", onChange);
246            }
247    
248            public void setOnClick(java.lang.String onClick) {
249                    _onClick = onClick;
250    
251                    setScopedAttribute("onClick", onClick);
252            }
253    
254            public void setPrefix(java.lang.String prefix) {
255                    _prefix = prefix;
256    
257                    setScopedAttribute("prefix", prefix);
258            }
259    
260            public void setRequired(boolean required) {
261                    _required = required;
262    
263                    setScopedAttribute("required", required);
264            }
265    
266            public void setShowEmptyOption(boolean showEmptyOption) {
267                    _showEmptyOption = showEmptyOption;
268    
269                    setScopedAttribute("showEmptyOption", showEmptyOption);
270            }
271    
272            public void setShowRequiredLabel(boolean showRequiredLabel) {
273                    _showRequiredLabel = showRequiredLabel;
274    
275                    setScopedAttribute("showRequiredLabel", showRequiredLabel);
276            }
277    
278            public void setSuffix(java.lang.String suffix) {
279                    _suffix = suffix;
280    
281                    setScopedAttribute("suffix", suffix);
282            }
283    
284            public void setTitle(java.lang.String title) {
285                    _title = title;
286    
287                    setScopedAttribute("title", title);
288            }
289    
290            public void setUseNamespace(boolean useNamespace) {
291                    _useNamespace = useNamespace;
292    
293                    setScopedAttribute("useNamespace", useNamespace);
294            }
295    
296            @Override
297            protected void cleanUp() {
298                    _bean = null;
299                    _changesContext = false;
300                    _cssClass = null;
301                    _data = null;
302                    _disabled = false;
303                    _first = false;
304                    _helpMessage = null;
305                    _id = null;
306                    _ignoreRequestValue = false;
307                    _inlineField = false;
308                    _inlineLabel = null;
309                    _label = null;
310                    _last = false;
311                    _listType = null;
312                    _listTypeFieldName = null;
313                    _multiple = false;
314                    _name = null;
315                    _onChange = null;
316                    _onClick = null;
317                    _prefix = null;
318                    _required = false;
319                    _showEmptyOption = false;
320                    _showRequiredLabel = true;
321                    _suffix = null;
322                    _title = null;
323                    _useNamespace = true;
324            }
325    
326            @Override
327            protected String getEndPage() {
328                    return _END_PAGE;
329            }
330    
331            @Override
332            protected String getStartPage() {
333                    return _START_PAGE;
334            }
335    
336            @Override
337            protected void setAttributes(HttpServletRequest request) {
338                    setNamespacedAttribute(request, "bean", _bean);
339                    setNamespacedAttribute(request, "changesContext", _changesContext);
340                    setNamespacedAttribute(request, "cssClass", _cssClass);
341                    setNamespacedAttribute(request, "data", _data);
342                    setNamespacedAttribute(request, "disabled", _disabled);
343                    setNamespacedAttribute(request, "first", _first);
344                    setNamespacedAttribute(request, "helpMessage", _helpMessage);
345                    setNamespacedAttribute(request, "id", _id);
346                    setNamespacedAttribute(request, "ignoreRequestValue", _ignoreRequestValue);
347                    setNamespacedAttribute(request, "inlineField", _inlineField);
348                    setNamespacedAttribute(request, "inlineLabel", _inlineLabel);
349                    setNamespacedAttribute(request, "label", _label);
350                    setNamespacedAttribute(request, "last", _last);
351                    setNamespacedAttribute(request, "listType", _listType);
352                    setNamespacedAttribute(request, "listTypeFieldName", _listTypeFieldName);
353                    setNamespacedAttribute(request, "multiple", _multiple);
354                    setNamespacedAttribute(request, "name", _name);
355                    setNamespacedAttribute(request, "onChange", _onChange);
356                    setNamespacedAttribute(request, "onClick", _onClick);
357                    setNamespacedAttribute(request, "prefix", _prefix);
358                    setNamespacedAttribute(request, "required", _required);
359                    setNamespacedAttribute(request, "showEmptyOption", _showEmptyOption);
360                    setNamespacedAttribute(request, "showRequiredLabel", _showRequiredLabel);
361                    setNamespacedAttribute(request, "suffix", _suffix);
362                    setNamespacedAttribute(request, "title", _title);
363                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
364            }
365    
366            protected static final String _ATTRIBUTE_NAMESPACE = "aui:select:";
367    
368            private static final String _END_PAGE =
369                    "/html/taglib/aui/select/end.jsp";
370    
371            private static final String _START_PAGE =
372                    "/html/taglib/aui/select/start.jsp";
373    
374            private java.lang.Object _bean = null;
375            private boolean _changesContext = false;
376            private java.lang.String _cssClass = null;
377            private java.util.Map<java.lang.String, java.lang.Object> _data = null;
378            private boolean _disabled = false;
379            private boolean _first = false;
380            private java.lang.String _helpMessage = null;
381            private java.lang.String _id = null;
382            private boolean _ignoreRequestValue = false;
383            private boolean _inlineField = false;
384            private java.lang.String _inlineLabel = null;
385            private java.lang.String _label = null;
386            private boolean _last = false;
387            private java.lang.String _listType = null;
388            private java.lang.String _listTypeFieldName = null;
389            private boolean _multiple = false;
390            private java.lang.String _name = null;
391            private java.lang.String _onChange = null;
392            private java.lang.String _onClick = null;
393            private java.lang.String _prefix = null;
394            private boolean _required = false;
395            private boolean _showEmptyOption = false;
396            private boolean _showRequiredLabel = true;
397            private java.lang.String _suffix = null;
398            private java.lang.String _title = null;
399            private boolean _useNamespace = true;
400    
401    }