001    /**
002     * Copyright (c) 2000-present 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 abstract class BaseFieldsetTag 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 getCollapsed() {
037                    return _collapsed;
038            }
039    
040            public boolean getCollapsible() {
041                    return _collapsible;
042            }
043    
044            public boolean getColumn() {
045                    return _column;
046            }
047    
048            public java.lang.String getCssClass() {
049                    return _cssClass;
050            }
051    
052            public java.lang.String getHelpMessage() {
053                    return _helpMessage;
054            }
055    
056            public java.lang.String getId() {
057                    return _id;
058            }
059    
060            public java.lang.String getLabel() {
061                    return _label;
062            }
063    
064            public boolean getLocalizeLabel() {
065                    return _localizeLabel;
066            }
067    
068            public java.lang.String getMarkupView() {
069                    return _markupView;
070            }
071    
072            public void setCollapsed(boolean collapsed) {
073                    _collapsed = collapsed;
074    
075                    setScopedAttribute("collapsed", collapsed);
076            }
077    
078            public void setCollapsible(boolean collapsible) {
079                    _collapsible = collapsible;
080    
081                    setScopedAttribute("collapsible", collapsible);
082            }
083    
084            public void setColumn(boolean column) {
085                    _column = column;
086    
087                    setScopedAttribute("column", column);
088            }
089    
090            public void setCssClass(java.lang.String cssClass) {
091                    _cssClass = cssClass;
092    
093                    setScopedAttribute("cssClass", cssClass);
094            }
095    
096            public void setHelpMessage(java.lang.String helpMessage) {
097                    _helpMessage = helpMessage;
098    
099                    setScopedAttribute("helpMessage", helpMessage);
100            }
101    
102            public void setId(java.lang.String id) {
103                    _id = id;
104    
105                    setScopedAttribute("id", id);
106            }
107    
108            public void setLabel(java.lang.String label) {
109                    _label = label;
110    
111                    setScopedAttribute("label", label);
112            }
113    
114            public void setLocalizeLabel(boolean localizeLabel) {
115                    _localizeLabel = localizeLabel;
116    
117                    setScopedAttribute("localizeLabel", localizeLabel);
118            }
119    
120            public void setMarkupView(java.lang.String markupView) {
121                    _markupView = markupView;
122    
123                    setScopedAttribute("markupView", markupView);
124            }
125    
126            @Override
127            protected void cleanUp() {
128                    super.cleanUp();
129    
130                    _collapsed = false;
131                    _collapsible = false;
132                    _column = false;
133                    _cssClass = null;
134                    _helpMessage = null;
135                    _id = null;
136                    _label = null;
137                    _localizeLabel = true;
138                    _markupView = null;
139            }
140    
141            @Override
142            protected String getEndPage() {
143                    return _END_PAGE;
144            }
145    
146            @Override
147            protected String getStartPage() {
148                    return _START_PAGE;
149            }
150    
151            @Override
152            protected void setAttributes(HttpServletRequest request) {
153                    setNamespacedAttribute(request, "collapsed", _collapsed);
154                    setNamespacedAttribute(request, "collapsible", _collapsible);
155                    setNamespacedAttribute(request, "column", _column);
156                    setNamespacedAttribute(request, "cssClass", _cssClass);
157                    setNamespacedAttribute(request, "helpMessage", _helpMessage);
158                    setNamespacedAttribute(request, "id", _id);
159                    setNamespacedAttribute(request, "label", _label);
160                    setNamespacedAttribute(request, "localizeLabel", _localizeLabel);
161                    setNamespacedAttribute(request, "markupView", _markupView);
162            }
163    
164            protected static final String _ATTRIBUTE_NAMESPACE = "aui:fieldset:";
165    
166            private static final String _END_PAGE =
167                    "/html/taglib/aui/fieldset/end.jsp";
168    
169            private static final String _START_PAGE =
170                    "/html/taglib/aui/fieldset/start.jsp";
171    
172            private boolean _collapsed = false;
173            private boolean _collapsible = false;
174            private boolean _column = false;
175            private java.lang.String _cssClass = null;
176            private java.lang.String _helpMessage = null;
177            private java.lang.String _id = null;
178            private java.lang.String _label = null;
179            private boolean _localizeLabel = true;
180            private java.lang.String _markupView = null;
181    
182    }