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 BaseComponentTag 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 boolean getDefineVar() {
037                    return _defineVar;
038            }
039    
040            public java.lang.String getExcludeAttributes() {
041                    return _excludeAttributes;
042            }
043    
044            public java.lang.String getJavaScriptAttributes() {
045                    return _javaScriptAttributes;
046            }
047    
048            public java.lang.String getModule() {
049                    return _module;
050            }
051    
052            public java.lang.String getName() {
053                    return _name;
054            }
055    
056            public java.util.Map<java.lang.String, java.lang.Object> getOptions() {
057                    return _options;
058            }
059    
060            public java.lang.String getScriptPosition() {
061                    return _scriptPosition;
062            }
063    
064            public javax.servlet.jsp.JspContext getTagPageContext() {
065                    return _tagPageContext;
066            }
067    
068            public java.io.Serializable getUseJavaScript() {
069                    return _useJavaScript;
070            }
071    
072            public java.lang.String getVar() {
073                    return _var;
074            }
075    
076            public void setDefineVar(boolean defineVar) {
077                    _defineVar = defineVar;
078    
079                    setScopedAttribute("defineVar", defineVar);
080            }
081    
082            public void setExcludeAttributes(java.lang.String excludeAttributes) {
083                    _excludeAttributes = excludeAttributes;
084    
085                    setScopedAttribute("excludeAttributes", excludeAttributes);
086            }
087    
088            public void setJavaScriptAttributes(java.lang.String javaScriptAttributes) {
089                    _javaScriptAttributes = javaScriptAttributes;
090    
091                    setScopedAttribute("javaScriptAttributes", javaScriptAttributes);
092            }
093    
094            public void setModule(java.lang.String module) {
095                    _module = module;
096    
097                    setScopedAttribute("module", module);
098            }
099    
100            public void setName(java.lang.String name) {
101                    _name = name;
102    
103                    setScopedAttribute("name", name);
104            }
105    
106            public void setOptions(java.util.Map<java.lang.String, java.lang.Object> options) {
107                    _options = options;
108    
109                    setScopedAttribute("options", options);
110            }
111    
112            public void setScriptPosition(java.lang.String scriptPosition) {
113                    _scriptPosition = scriptPosition;
114    
115                    setScopedAttribute("scriptPosition", scriptPosition);
116            }
117    
118            public void setTagPageContext(javax.servlet.jsp.JspContext tagPageContext) {
119                    _tagPageContext = tagPageContext;
120    
121                    setScopedAttribute("tagPageContext", tagPageContext);
122            }
123    
124            public void setUseJavaScript(java.io.Serializable useJavaScript) {
125                    _useJavaScript = useJavaScript;
126    
127                    setScopedAttribute("useJavaScript", useJavaScript);
128            }
129    
130            public void setVar(java.lang.String var) {
131                    _var = var;
132    
133                    setScopedAttribute("var", var);
134            }
135    
136            @Override
137            protected void cleanUp() {
138                    _defineVar = true;
139                    _excludeAttributes = null;
140                    _javaScriptAttributes = null;
141                    _module = null;
142                    _name = null;
143                    _options = null;
144                    _scriptPosition = null;
145                    _tagPageContext = null;
146                    _useJavaScript = true;
147                    _var = null;
148            }
149    
150            @Override
151            protected String getPage() {
152                    return _PAGE;
153            }
154    
155            @Override
156            protected void setAttributes(HttpServletRequest request) {
157                    setNamespacedAttribute(request, "defineVar", _defineVar);
158                    setNamespacedAttribute(request, "excludeAttributes", _excludeAttributes);
159                    setNamespacedAttribute(request, "javaScriptAttributes", _javaScriptAttributes);
160                    setNamespacedAttribute(request, "module", _module);
161                    setNamespacedAttribute(request, "name", _name);
162                    setNamespacedAttribute(request, "options", _options);
163                    setNamespacedAttribute(request, "scriptPosition", _scriptPosition);
164                    setNamespacedAttribute(request, "tagPageContext", _tagPageContext);
165                    setNamespacedAttribute(request, "useJavaScript", _useJavaScript);
166                    setNamespacedAttribute(request, "var", _var);
167            }
168    
169            protected static final String _ATTRIBUTE_NAMESPACE = "aui:component:";
170    
171            private static final String _PAGE =
172                    "/html/taglib/aui/component/page.jsp";
173    
174            private boolean _defineVar = true;
175            private java.lang.String _excludeAttributes = null;
176            private java.lang.String _javaScriptAttributes = null;
177            private java.lang.String _module = null;
178            private java.lang.String _name = null;
179            private java.util.Map<java.lang.String, java.lang.Object> _options = null;
180            private java.lang.String _scriptPosition = null;
181            private javax.servlet.jsp.JspContext _tagPageContext = null;
182            private java.io.Serializable _useJavaScript = true;
183            private java.lang.String _var = null;
184    
185    }