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 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 boolean getUseNamespace() {
061                    return _useNamespace;
062            }
063    
064            public void setAriaLabel(java.lang.String ariaLabel) {
065                    _ariaLabel = ariaLabel;
066    
067                    setScopedAttribute("ariaLabel", ariaLabel);
068            }
069    
070            public void setAriaRole(java.lang.String ariaRole) {
071                    _ariaRole = ariaRole;
072    
073                    setScopedAttribute("ariaRole", ariaRole);
074            }
075    
076            public void setCollapsible(boolean collapsible) {
077                    _collapsible = collapsible;
078    
079                    setScopedAttribute("collapsible", collapsible);
080            }
081    
082            public void setCssClass(java.lang.String cssClass) {
083                    _cssClass = cssClass;
084    
085                    setScopedAttribute("cssClass", cssClass);
086            }
087    
088            public void setIcon(java.lang.String icon) {
089                    _icon = icon;
090    
091                    setScopedAttribute("icon", icon);
092            }
093    
094            public void setId(java.lang.String id) {
095                    _id = id;
096    
097                    setScopedAttribute("id", id);
098            }
099    
100            public void setUseNamespace(boolean useNamespace) {
101                    _useNamespace = useNamespace;
102    
103                    setScopedAttribute("useNamespace", useNamespace);
104            }
105    
106            @Override
107            protected void cleanUp() {
108                    _ariaLabel = null;
109                    _ariaRole = null;
110                    _collapsible = false;
111                    _cssClass = null;
112                    _icon = null;
113                    _id = null;
114                    _useNamespace = true;
115            }
116    
117            @Override
118            protected String getEndPage() {
119                    return _END_PAGE;
120            }
121    
122            @Override
123            protected String getStartPage() {
124                    return _START_PAGE;
125            }
126    
127            @Override
128            protected void setAttributes(HttpServletRequest request) {
129                    setNamespacedAttribute(request, "ariaLabel", _ariaLabel);
130                    setNamespacedAttribute(request, "ariaRole", _ariaRole);
131                    setNamespacedAttribute(request, "collapsible", _collapsible);
132                    setNamespacedAttribute(request, "cssClass", _cssClass);
133                    setNamespacedAttribute(request, "icon", _icon);
134                    setNamespacedAttribute(request, "id", _id);
135                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
136            }
137    
138            protected static final String _ATTRIBUTE_NAMESPACE = "aui:nav:";
139    
140            private static final String _END_PAGE =
141                    "/html/taglib/aui/nav/end.jsp";
142    
143            private static final String _START_PAGE =
144                    "/html/taglib/aui/nav/start.jsp";
145    
146            private java.lang.String _ariaLabel = null;
147            private java.lang.String _ariaRole = null;
148            private boolean _collapsible = false;
149            private java.lang.String _cssClass = null;
150            private java.lang.String _icon = null;
151            private java.lang.String _id = null;
152            private boolean _useNamespace = true;
153    
154    }