001    /**
002     * Copyright (c) 2000-present 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 abstract class BaseFieldWrapperTag 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.String getCssClass() {
037                    return _cssClass;
038            }
039    
040            public java.lang.Object getData() {
041                    return _data;
042            }
043    
044            public boolean getFirst() {
045                    return _first;
046            }
047    
048            public java.lang.String getHelpMessage() {
049                    return _helpMessage;
050            }
051    
052            public boolean getInlineField() {
053                    return _inlineField;
054            }
055    
056            public java.lang.String getInlineLabel() {
057                    return _inlineLabel;
058            }
059    
060            public java.lang.String getLabel() {
061                    return _label;
062            }
063    
064            public boolean getLast() {
065                    return _last;
066            }
067    
068            public boolean getLocalizeLabel() {
069                    return _localizeLabel;
070            }
071    
072            public java.lang.String getName() {
073                    return _name;
074            }
075    
076            public boolean getRequired() {
077                    return _required;
078            }
079    
080            public void setCssClass(java.lang.String cssClass) {
081                    _cssClass = cssClass;
082    
083                    setScopedAttribute("cssClass", cssClass);
084            }
085    
086            public void setData(java.lang.Object data) {
087                    _data = data;
088    
089                    setScopedAttribute("data", data);
090            }
091    
092            public void setFirst(boolean first) {
093                    _first = first;
094    
095                    setScopedAttribute("first", first);
096            }
097    
098            public void setHelpMessage(java.lang.String helpMessage) {
099                    _helpMessage = helpMessage;
100    
101                    setScopedAttribute("helpMessage", helpMessage);
102            }
103    
104            public void setInlineField(boolean inlineField) {
105                    _inlineField = inlineField;
106    
107                    setScopedAttribute("inlineField", inlineField);
108            }
109    
110            public void setInlineLabel(java.lang.String inlineLabel) {
111                    _inlineLabel = inlineLabel;
112    
113                    setScopedAttribute("inlineLabel", inlineLabel);
114            }
115    
116            public void setLabel(java.lang.String label) {
117                    _label = label;
118    
119                    setScopedAttribute("label", label);
120            }
121    
122            public void setLast(boolean last) {
123                    _last = last;
124    
125                    setScopedAttribute("last", last);
126            }
127    
128            public void setLocalizeLabel(boolean localizeLabel) {
129                    _localizeLabel = localizeLabel;
130    
131                    setScopedAttribute("localizeLabel", localizeLabel);
132            }
133    
134            public void setName(java.lang.String name) {
135                    _name = name;
136    
137                    setScopedAttribute("name", name);
138            }
139    
140            public void setRequired(boolean required) {
141                    _required = required;
142    
143                    setScopedAttribute("required", required);
144            }
145    
146            @Override
147            protected void cleanUp() {
148                    super.cleanUp();
149    
150                    _cssClass = null;
151                    _data = null;
152                    _first = false;
153                    _helpMessage = null;
154                    _inlineField = false;
155                    _inlineLabel = null;
156                    _label = null;
157                    _last = false;
158                    _localizeLabel = true;
159                    _name = null;
160                    _required = false;
161            }
162    
163            @Override
164            protected String getEndPage() {
165                    return _END_PAGE;
166            }
167    
168            @Override
169            protected String getStartPage() {
170                    return _START_PAGE;
171            }
172    
173            @Override
174            protected void setAttributes(HttpServletRequest request) {
175                    setNamespacedAttribute(request, "cssClass", _cssClass);
176                    setNamespacedAttribute(request, "data", _data);
177                    setNamespacedAttribute(request, "first", _first);
178                    setNamespacedAttribute(request, "helpMessage", _helpMessage);
179                    setNamespacedAttribute(request, "inlineField", _inlineField);
180                    setNamespacedAttribute(request, "inlineLabel", _inlineLabel);
181                    setNamespacedAttribute(request, "label", _label);
182                    setNamespacedAttribute(request, "last", _last);
183                    setNamespacedAttribute(request, "localizeLabel", _localizeLabel);
184                    setNamespacedAttribute(request, "name", _name);
185                    setNamespacedAttribute(request, "required", _required);
186            }
187    
188            protected static final String _ATTRIBUTE_NAMESPACE = "aui:field-wrapper:";
189    
190            private static final String _END_PAGE =
191                    "/html/taglib/aui/field_wrapper/end.jsp";
192    
193            private static final String _START_PAGE =
194                    "/html/taglib/aui/field_wrapper/start.jsp";
195    
196            private java.lang.String _cssClass = null;
197            private java.lang.Object _data = null;
198            private boolean _first = false;
199            private java.lang.String _helpMessage = null;
200            private boolean _inlineField = false;
201            private java.lang.String _inlineLabel = null;
202            private java.lang.String _label = null;
203            private boolean _last = false;
204            private boolean _localizeLabel = true;
205            private java.lang.String _name = null;
206            private boolean _required = false;
207    
208    }