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