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                    _cssClass = null;
149                    _data = null;
150                    _first = false;
151                    _helpMessage = null;
152                    _inlineField = false;
153                    _inlineLabel = null;
154                    _label = null;
155                    _last = false;
156                    _localizeLabel = true;
157                    _name = null;
158                    _required = false;
159            }
160    
161            @Override
162            protected String getEndPage() {
163                    return _END_PAGE;
164            }
165    
166            @Override
167            protected String getStartPage() {
168                    return _START_PAGE;
169            }
170    
171            @Override
172            protected void setAttributes(HttpServletRequest request) {
173                    setNamespacedAttribute(request, "cssClass", _cssClass);
174                    setNamespacedAttribute(request, "data", _data);
175                    setNamespacedAttribute(request, "first", _first);
176                    setNamespacedAttribute(request, "helpMessage", _helpMessage);
177                    setNamespacedAttribute(request, "inlineField", _inlineField);
178                    setNamespacedAttribute(request, "inlineLabel", _inlineLabel);
179                    setNamespacedAttribute(request, "label", _label);
180                    setNamespacedAttribute(request, "last", _last);
181                    setNamespacedAttribute(request, "localizeLabel", _localizeLabel);
182                    setNamespacedAttribute(request, "name", _name);
183                    setNamespacedAttribute(request, "required", _required);
184            }
185    
186            protected static final String _ATTRIBUTE_NAMESPACE = "aui:field-wrapper:";
187    
188            private static final String _END_PAGE =
189                    "/html/taglib/aui/field_wrapper/end.jsp";
190    
191            private static final String _START_PAGE =
192                    "/html/taglib/aui/field_wrapper/start.jsp";
193    
194            private java.lang.String _cssClass = null;
195            private java.lang.Object _data = null;
196            private boolean _first = false;
197            private java.lang.String _helpMessage = null;
198            private boolean _inlineField = false;
199            private java.lang.String _inlineLabel = null;
200            private java.lang.String _label = null;
201            private boolean _last = false;
202            private boolean _localizeLabel = true;
203            private java.lang.String _name = null;
204            private boolean _required = false;
205    
206    }