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 boolean getUseNamespace() {
065                    return _useNamespace;
066            }
067    
068            public void setAction(java.lang.String action) {
069                    _action = action;
070    
071                    setScopedAttribute("action", action);
072            }
073    
074            public void setCssClass(java.lang.String cssClass) {
075                    _cssClass = cssClass;
076    
077                    setScopedAttribute("cssClass", cssClass);
078            }
079    
080            public void setEscapeXml(boolean escapeXml) {
081                    _escapeXml = escapeXml;
082    
083                    setScopedAttribute("escapeXml", escapeXml);
084            }
085    
086            public void setInlineLabels(boolean inlineLabels) {
087                    _inlineLabels = inlineLabels;
088    
089                    setScopedAttribute("inlineLabels", inlineLabels);
090            }
091    
092            public void setMethod(java.lang.String method) {
093                    _method = method;
094    
095                    setScopedAttribute("method", method);
096            }
097    
098            public void setName(java.lang.String name) {
099                    _name = name;
100    
101                    setScopedAttribute("name", name);
102            }
103    
104            public void setOnSubmit(java.lang.String onSubmit) {
105                    _onSubmit = onSubmit;
106    
107                    setScopedAttribute("onSubmit", onSubmit);
108            }
109    
110            public void setUseNamespace(boolean useNamespace) {
111                    _useNamespace = useNamespace;
112    
113                    setScopedAttribute("useNamespace", useNamespace);
114            }
115    
116            @Override
117            protected void cleanUp() {
118                    _action = null;
119                    _cssClass = null;
120                    _escapeXml = true;
121                    _inlineLabels = false;
122                    _method = "post";
123                    _name = "fm";
124                    _onSubmit = null;
125                    _useNamespace = true;
126            }
127    
128            @Override
129            protected String getEndPage() {
130                    return _END_PAGE;
131            }
132    
133            @Override
134            protected String getStartPage() {
135                    return _START_PAGE;
136            }
137    
138            @Override
139            protected void setAttributes(HttpServletRequest request) {
140                    setNamespacedAttribute(request, "action", _action);
141                    setNamespacedAttribute(request, "cssClass", _cssClass);
142                    setNamespacedAttribute(request, "escapeXml", _escapeXml);
143                    setNamespacedAttribute(request, "inlineLabels", _inlineLabels);
144                    setNamespacedAttribute(request, "method", _method);
145                    setNamespacedAttribute(request, "name", _name);
146                    setNamespacedAttribute(request, "onSubmit", _onSubmit);
147                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
148            }
149    
150            protected static final String _ATTRIBUTE_NAMESPACE = "aui:form:";
151    
152            private static final String _END_PAGE =
153                    "/html/taglib/aui/form/end.jsp";
154    
155            private static final String _START_PAGE =
156                    "/html/taglib/aui/form/start.jsp";
157    
158            private java.lang.String _action = null;
159            private java.lang.String _cssClass = null;
160            private boolean _escapeXml = true;
161            private boolean _inlineLabels = false;
162            private java.lang.String _method = "post";
163            private java.lang.String _name = "fm";
164            private java.lang.String _onSubmit = null;
165            private boolean _useNamespace = true;
166    
167    }