001    /**
002     * Copyright (c) 2000-2012 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 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 void setCollapsed(boolean collapsed) {
053                    _collapsed = collapsed;
054    
055                    setScopedAttribute("collapsed", collapsed);
056            }
057    
058            public void setCollapsible(boolean collapsible) {
059                    _collapsible = collapsible;
060    
061                    setScopedAttribute("collapsible", collapsible);
062            }
063    
064            public void setId(java.lang.String id) {
065                    _id = id;
066    
067                    setScopedAttribute("id", id);
068            }
069    
070            public void setLabel(java.lang.String label) {
071                    _label = label;
072    
073                    setScopedAttribute("label", label);
074            }
075    
076            @Override
077            protected void cleanUp() {
078                    _collapsed = false;
079                    _collapsible = false;
080                    _id = null;
081                    _label = null;
082            }
083    
084            @Override
085            protected String getEndPage() {
086                    return _END_PAGE;
087            }
088    
089            @Override
090            protected String getStartPage() {
091                    return _START_PAGE;
092            }
093    
094            @Override
095            protected void setAttributes(HttpServletRequest request) {
096                    setNamespacedAttribute(request, "collapsed", _collapsed);
097                    setNamespacedAttribute(request, "collapsible", _collapsible);
098                    setNamespacedAttribute(request, "id", _id);
099                    setNamespacedAttribute(request, "label", _label);
100            }
101    
102            protected static final String _ATTRIBUTE_NAMESPACE = "aui:panel:";
103    
104            private static final String _END_PAGE =
105                    "/html/taglib/aui/panel/end.jsp";
106    
107            private static final String _START_PAGE =
108                    "/html/taglib/aui/panel/start.jsp";
109    
110            private boolean _collapsed = false;
111            private boolean _collapsible = false;
112            private java.lang.String _id = null;
113            private java.lang.String _label = null;
114    
115    }