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 BaseNavTag 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 getAriaLabel() {
037                    return _ariaLabel;
038            }
039    
040            public java.lang.String getAriaRole() {
041                    return _ariaRole;
042            }
043    
044            public boolean getCollapsible() {
045                    return _collapsible;
046            }
047    
048            public java.lang.String getCssClass() {
049                    return _cssClass;
050            }
051    
052            public java.lang.String getIcon() {
053                    return _icon;
054            }
055    
056            public java.lang.String getId() {
057                    return _id;
058            }
059    
060            public com.liferay.portal.kernel.dao.search.SearchContainer<?> getSearchContainer() {
061                    return _searchContainer;
062            }
063    
064            public boolean getUseNamespace() {
065                    return _useNamespace;
066            }
067    
068            public void setAriaLabel(java.lang.String ariaLabel) {
069                    _ariaLabel = ariaLabel;
070    
071                    setScopedAttribute("ariaLabel", ariaLabel);
072            }
073    
074            public void setAriaRole(java.lang.String ariaRole) {
075                    _ariaRole = ariaRole;
076    
077                    setScopedAttribute("ariaRole", ariaRole);
078            }
079    
080            public void setCollapsible(boolean collapsible) {
081                    _collapsible = collapsible;
082    
083                    setScopedAttribute("collapsible", collapsible);
084            }
085    
086            public void setCssClass(java.lang.String cssClass) {
087                    _cssClass = cssClass;
088    
089                    setScopedAttribute("cssClass", cssClass);
090            }
091    
092            public void setIcon(java.lang.String icon) {
093                    _icon = icon;
094    
095                    setScopedAttribute("icon", icon);
096            }
097    
098            public void setId(java.lang.String id) {
099                    _id = id;
100    
101                    setScopedAttribute("id", id);
102            }
103    
104            public void setSearchContainer(com.liferay.portal.kernel.dao.search.SearchContainer<?> searchContainer) {
105                    _searchContainer = searchContainer;
106    
107                    setScopedAttribute("searchContainer", searchContainer);
108            }
109    
110            public void setUseNamespace(boolean useNamespace) {
111                    _useNamespace = useNamespace;
112    
113                    setScopedAttribute("useNamespace", useNamespace);
114            }
115    
116            @Override
117            protected void cleanUp() {
118                    super.cleanUp();
119    
120                    _ariaLabel = null;
121                    _ariaRole = null;
122                    _collapsible = false;
123                    _cssClass = null;
124                    _icon = null;
125                    _id = null;
126                    _searchContainer = null;
127                    _useNamespace = true;
128            }
129    
130            @Override
131            protected String getPage() {
132                    return _PAGE;
133            }
134    
135            @Override
136            protected void setAttributes(HttpServletRequest request) {
137                    setNamespacedAttribute(request, "ariaLabel", _ariaLabel);
138                    setNamespacedAttribute(request, "ariaRole", _ariaRole);
139                    setNamespacedAttribute(request, "collapsible", _collapsible);
140                    setNamespacedAttribute(request, "cssClass", _cssClass);
141                    setNamespacedAttribute(request, "icon", _icon);
142                    setNamespacedAttribute(request, "id", _id);
143                    setNamespacedAttribute(request, "searchContainer", _searchContainer);
144                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
145            }
146    
147            protected static final String _ATTRIBUTE_NAMESPACE = "aui:nav:";
148    
149            private static final String _PAGE =
150                    "/html/taglib/aui/nav/page.jsp";
151    
152            private java.lang.String _ariaLabel = null;
153            private java.lang.String _ariaRole = null;
154            private boolean _collapsible = false;
155            private java.lang.String _cssClass = null;
156            private java.lang.String _icon = null;
157            private java.lang.String _id = null;
158            private com.liferay.portal.kernel.dao.search.SearchContainer<?> _searchContainer = null;
159            private boolean _useNamespace = true;
160    
161    }