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 BaseFormTag 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 getAction() {
037                    return _action;
038            }
039    
040            public java.lang.String getCssClass() {
041                    return _cssClass;
042            }
043    
044            public boolean getEscapeXml() {
045                    return _escapeXml;
046            }
047    
048            public boolean getInlineLabels() {
049                    return _inlineLabels;
050            }
051    
052            public java.lang.String getMethod() {
053                    return _method;
054            }
055    
056            public java.lang.String getName() {
057                    return _name;
058            }
059    
060            public java.lang.String getOnSubmit() {
061                    return _onSubmit;
062            }
063    
064            public java.lang.String getPortletNamespace() {
065                    return _portletNamespace;
066            }
067    
068            public boolean getUseNamespace() {
069                    return _useNamespace;
070            }
071    
072            public void setAction(java.lang.String action) {
073                    _action = action;
074    
075                    setScopedAttribute("action", action);
076            }
077    
078            public void setCssClass(java.lang.String cssClass) {
079                    _cssClass = cssClass;
080    
081                    setScopedAttribute("cssClass", cssClass);
082            }
083    
084            public void setEscapeXml(boolean escapeXml) {
085                    _escapeXml = escapeXml;
086    
087                    setScopedAttribute("escapeXml", escapeXml);
088            }
089    
090            public void setInlineLabels(boolean inlineLabels) {
091                    _inlineLabels = inlineLabels;
092    
093                    setScopedAttribute("inlineLabels", inlineLabels);
094            }
095    
096            public void setMethod(java.lang.String method) {
097                    _method = method;
098    
099                    setScopedAttribute("method", method);
100            }
101    
102            public void setName(java.lang.String name) {
103                    _name = name;
104    
105                    setScopedAttribute("name", name);
106            }
107    
108            public void setOnSubmit(java.lang.String onSubmit) {
109                    _onSubmit = onSubmit;
110    
111                    setScopedAttribute("onSubmit", onSubmit);
112            }
113    
114            public void setPortletNamespace(java.lang.String portletNamespace) {
115                    _portletNamespace = portletNamespace;
116    
117                    setScopedAttribute("portletNamespace", portletNamespace);
118            }
119    
120            public void setUseNamespace(boolean useNamespace) {
121                    _useNamespace = useNamespace;
122    
123                    setScopedAttribute("useNamespace", useNamespace);
124            }
125    
126            @Override
127            protected void cleanUp() {
128                    _action = null;
129                    _cssClass = null;
130                    _escapeXml = true;
131                    _inlineLabels = false;
132                    _method = "post";
133                    _name = "fm";
134                    _onSubmit = null;
135                    _portletNamespace = null;
136                    _useNamespace = true;
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, "action", _action);
152                    setNamespacedAttribute(request, "cssClass", _cssClass);
153                    setNamespacedAttribute(request, "escapeXml", _escapeXml);
154                    setNamespacedAttribute(request, "inlineLabels", _inlineLabels);
155                    setNamespacedAttribute(request, "method", _method);
156                    setNamespacedAttribute(request, "name", _name);
157                    setNamespacedAttribute(request, "onSubmit", _onSubmit);
158                    setNamespacedAttribute(request, "portletNamespace", _portletNamespace);
159                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
160            }
161    
162            protected static final String _ATTRIBUTE_NAMESPACE = "aui:form:";
163    
164            private static final String _END_PAGE =
165                    "/html/taglib/aui/form/end.jsp";
166    
167            private static final String _START_PAGE =
168                    "/html/taglib/aui/form/start.jsp";
169    
170            private java.lang.String _action = null;
171            private java.lang.String _cssClass = null;
172            private boolean _escapeXml = true;
173            private boolean _inlineLabels = false;
174            private java.lang.String _method = "post";
175            private java.lang.String _name = "fm";
176            private java.lang.String _onSubmit = null;
177            private java.lang.String _portletNamespace = null;
178            private boolean _useNamespace = true;
179    
180    }