001    /**
002     * Copyright (c) 2000-2014 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    super.cleanUp();
109    
110                    _ariaLabel = null;
111                    _ariaRole = null;
112                    _collapsible = false;
113                    _cssClass = null;
114                    _icon = null;
115                    _id = null;
116                    _useNamespace = true;
117            }
118    
119            @Override
120            protected String getEndPage() {
121                    return _END_PAGE;
122            }
123    
124            @Override
125            protected String getStartPage() {
126                    return _START_PAGE;
127            }
128    
129            @Override
130            protected void setAttributes(HttpServletRequest request) {
131                    setNamespacedAttribute(request, "ariaLabel", _ariaLabel);
132                    setNamespacedAttribute(request, "ariaRole", _ariaRole);
133                    setNamespacedAttribute(request, "collapsible", _collapsible);
134                    setNamespacedAttribute(request, "cssClass", _cssClass);
135                    setNamespacedAttribute(request, "icon", _icon);
136                    setNamespacedAttribute(request, "id", _id);
137                    setNamespacedAttribute(request, "useNamespace", _useNamespace);
138            }
139    
140            protected static final String _ATTRIBUTE_NAMESPACE = "aui:nav:";
141    
142            private static final String _END_PAGE =
143                    "/html/taglib/aui/nav/end.jsp";
144    
145            private static final String _START_PAGE =
146                    "/html/taglib/aui/nav/start.jsp";
147    
148            private java.lang.String _ariaLabel = null;
149            private java.lang.String _ariaRole = null;
150            private boolean _collapsible = false;
151            private java.lang.String _cssClass = null;
152            private java.lang.String _icon = null;
153            private java.lang.String _id = null;
154            private boolean _useNamespace = true;
155    
156    }