001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 getName() {
053                    return _name;
054            }
055    
056            public java.lang.String getOnSubmit() {
057                    return _onSubmit;
058            }
059    
060            public boolean getUseNamespace() {
061                    return _useNamespace;
062            }
063    
064            public void setAction(java.lang.String action) {
065                    _action = action;
066    
067                    setScopedAttribute("action", action);
068            }
069    
070            public void setCssClass(java.lang.String cssClass) {
071                    _cssClass = cssClass;
072    
073                    setScopedAttribute("cssClass", cssClass);
074            }
075    
076            public void setEscapeXml(boolean escapeXml) {
077                    _escapeXml = escapeXml;
078    
079                    setScopedAttribute("escapeXml", escapeXml);
080            }
081    
082            public void setInlineLabels(boolean inlineLabels) {
083                    _inlineLabels = inlineLabels;
084    
085                    setScopedAttribute("inlineLabels", inlineLabels);
086            }
087    
088            public void setName(java.lang.String name) {
089                    _name = name;
090    
091                    setScopedAttribute("name", name);
092            }
093    
094            public void setOnSubmit(java.lang.String onSubmit) {
095                    _onSubmit = onSubmit;
096    
097                    setScopedAttribute("onSubmit", onSubmit);
098            }
099    
100            public void setUseNamespace(boolean useNamespace) {
101                    _useNamespace = useNamespace;
102    
103                    setScopedAttribute("useNamespace", useNamespace);
104            }
105    
106            @Override
107            protected void cleanUp() {
108                    _action = null;
109                    _cssClass = null;
110                    _escapeXml = true;
111                    _inlineLabels = false;
112                    _name = "fm";
113                    _onSubmit = null;
114                    _useNamespace = true;
115            }
116    
117            @Override
118            protected String getEndPage() {
119                    return _END_PAGE;
120            }
121    
122            @Override
123            protected String getStartPage() {
124                    return _START_PAGE;
125            }
126    
127            @Override
128            protected void setAttributes(HttpServletRequest request) {
129                    setNamespacedAttribute(request, "action", _action);
130                    setNamespacedAttribute(request, "cssClass", _cssClass);
131                    setNamespacedAttribute(request, "escapeXml", _escapeXml);
132                    setNamespacedAttribute(request, "inlineLabels", _inlineLabels);
133                    setNamespacedAttribute(request, "name", _name);
134                    setNamespacedAttribute(request, "onSubmit", _onSubmit);
135                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
136            }
137    
138            protected static final String _ATTRIBUTE_NAMESPACE = "aui:form:";
139    
140            private static final String _END_PAGE =
141                    "/html/taglib/aui/form/end.jsp";
142    
143            private static final String _START_PAGE =
144                    "/html/taglib/aui/form/start.jsp";
145    
146            private java.lang.String _action = null;
147            private java.lang.String _cssClass = null;
148            private boolean _escapeXml = true;
149            private boolean _inlineLabels = false;
150            private java.lang.String _name = "fm";
151            private java.lang.String _onSubmit = null;
152            private boolean _useNamespace = true;
153    
154    }