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 BasePanelTag 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 java.lang.String getId() {
045                    return _id;
046            }
047    
048            public java.lang.String getLabel() {
049                    return _label;
050            }
051    
052            public boolean getLocalizeLabel() {
053                    return _localizeLabel;
054            }
055    
056            public void setCollapsed(boolean collapsed) {
057                    _collapsed = collapsed;
058    
059                    setScopedAttribute("collapsed", collapsed);
060            }
061    
062            public void setCollapsible(boolean collapsible) {
063                    _collapsible = collapsible;
064    
065                    setScopedAttribute("collapsible", collapsible);
066            }
067    
068            public void setId(java.lang.String id) {
069                    _id = id;
070    
071                    setScopedAttribute("id", id);
072            }
073    
074            public void setLabel(java.lang.String label) {
075                    _label = label;
076    
077                    setScopedAttribute("label", label);
078            }
079    
080            public void setLocalizeLabel(boolean localizeLabel) {
081                    _localizeLabel = localizeLabel;
082    
083                    setScopedAttribute("localizeLabel", localizeLabel);
084            }
085    
086            @Override
087            protected void cleanUp() {
088                    super.cleanUp();
089    
090                    _collapsed = false;
091                    _collapsible = false;
092                    _id = null;
093                    _label = null;
094                    _localizeLabel = true;
095            }
096    
097            @Override
098            protected String getEndPage() {
099                    return _END_PAGE;
100            }
101    
102            @Override
103            protected String getStartPage() {
104                    return _START_PAGE;
105            }
106    
107            @Override
108            protected void setAttributes(HttpServletRequest request) {
109                    setNamespacedAttribute(request, "collapsed", _collapsed);
110                    setNamespacedAttribute(request, "collapsible", _collapsible);
111                    setNamespacedAttribute(request, "id", _id);
112                    setNamespacedAttribute(request, "label", _label);
113                    setNamespacedAttribute(request, "localizeLabel", _localizeLabel);
114            }
115    
116            protected static final String _ATTRIBUTE_NAMESPACE = "aui:panel:";
117    
118            private static final String _END_PAGE =
119                    "/html/taglib/aui/panel/end.jsp";
120    
121            private static final String _START_PAGE =
122                    "/html/taglib/aui/panel/start.jsp";
123    
124            private boolean _collapsed = false;
125            private boolean _collapsible = false;
126            private java.lang.String _id = null;
127            private java.lang.String _label = null;
128            private boolean _localizeLabel = true;
129    
130    }