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 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 java.lang.String getName() {
069                    return _name;
070            }
071    
072            public boolean getRequired() {
073                    return _required;
074            }
075    
076            public void setCssClass(java.lang.String cssClass) {
077                    _cssClass = cssClass;
078    
079                    setScopedAttribute("cssClass", cssClass);
080            }
081    
082            public void setData(java.lang.Object data) {
083                    _data = data;
084    
085                    setScopedAttribute("data", data);
086            }
087    
088            public void setFirst(boolean first) {
089                    _first = first;
090    
091                    setScopedAttribute("first", first);
092            }
093    
094            public void setHelpMessage(java.lang.String helpMessage) {
095                    _helpMessage = helpMessage;
096    
097                    setScopedAttribute("helpMessage", helpMessage);
098            }
099    
100            public void setInlineField(boolean inlineField) {
101                    _inlineField = inlineField;
102    
103                    setScopedAttribute("inlineField", inlineField);
104            }
105    
106            public void setInlineLabel(java.lang.String inlineLabel) {
107                    _inlineLabel = inlineLabel;
108    
109                    setScopedAttribute("inlineLabel", inlineLabel);
110            }
111    
112            public void setLabel(java.lang.String label) {
113                    _label = label;
114    
115                    setScopedAttribute("label", label);
116            }
117    
118            public void setLast(boolean last) {
119                    _last = last;
120    
121                    setScopedAttribute("last", last);
122            }
123    
124            public void setName(java.lang.String name) {
125                    _name = name;
126    
127                    setScopedAttribute("name", name);
128            }
129    
130            public void setRequired(boolean required) {
131                    _required = required;
132    
133                    setScopedAttribute("required", required);
134            }
135    
136            @Override
137            protected void cleanUp() {
138                    _cssClass = null;
139                    _data = null;
140                    _first = false;
141                    _helpMessage = null;
142                    _inlineField = false;
143                    _inlineLabel = null;
144                    _label = null;
145                    _last = false;
146                    _name = null;
147                    _required = false;
148            }
149    
150            @Override
151            protected String getEndPage() {
152                    return _END_PAGE;
153            }
154    
155            @Override
156            protected String getStartPage() {
157                    return _START_PAGE;
158            }
159    
160            @Override
161            protected void setAttributes(HttpServletRequest request) {
162                    setNamespacedAttribute(request, "cssClass", _cssClass);
163                    setNamespacedAttribute(request, "data", _data);
164                    setNamespacedAttribute(request, "first", _first);
165                    setNamespacedAttribute(request, "helpMessage", _helpMessage);
166                    setNamespacedAttribute(request, "inlineField", _inlineField);
167                    setNamespacedAttribute(request, "inlineLabel", _inlineLabel);
168                    setNamespacedAttribute(request, "label", _label);
169                    setNamespacedAttribute(request, "last", _last);
170                    setNamespacedAttribute(request, "name", _name);
171                    setNamespacedAttribute(request, "required", _required);
172            }
173    
174            protected static final String _ATTRIBUTE_NAMESPACE = "aui:field-wrapper:";
175    
176            private static final String _END_PAGE =
177                    "/html/taglib/aui/field_wrapper/end.jsp";
178    
179            private static final String _START_PAGE =
180                    "/html/taglib/aui/field_wrapper/start.jsp";
181    
182            private java.lang.String _cssClass = null;
183            private java.lang.Object _data = null;
184            private boolean _first = false;
185            private java.lang.String _helpMessage = null;
186            private boolean _inlineField = false;
187            private java.lang.String _inlineLabel = null;
188            private java.lang.String _label = null;
189            private boolean _last = false;
190            private java.lang.String _name = null;
191            private boolean _required = false;
192    
193    }