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 BaseNavItemTag 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 getAnchorCssClass() {
037                    return _anchorCssClass;
038            }
039    
040            public java.lang.Object getAnchorData() {
041                    return _anchorData;
042            }
043    
044            public java.lang.String getAnchorId() {
045                    return _anchorId;
046            }
047    
048            public java.lang.String getCssClass() {
049                    return _cssClass;
050            }
051    
052            public java.lang.Object getData() {
053                    return _data;
054            }
055    
056            public boolean getDropdown() {
057                    return _dropdown;
058            }
059    
060            public java.lang.Object getHref() {
061                    return _href;
062            }
063    
064            public java.lang.String getIconClass() {
065                    return _iconClass;
066            }
067    
068            public java.lang.String getId() {
069                    return _id;
070            }
071    
072            public java.lang.String getLabel() {
073                    return _label;
074            }
075    
076            public boolean getSelected() {
077                    return _selected;
078            }
079    
080            public java.lang.String getTitle() {
081                    return _title;
082            }
083    
084            public boolean getWrapDropDownMenu() {
085                    return _wrapDropDownMenu;
086            }
087    
088            public void setAnchorCssClass(java.lang.String anchorCssClass) {
089                    _anchorCssClass = anchorCssClass;
090    
091                    setScopedAttribute("anchorCssClass", anchorCssClass);
092            }
093    
094            public void setAnchorData(java.lang.Object anchorData) {
095                    _anchorData = anchorData;
096    
097                    setScopedAttribute("anchorData", anchorData);
098            }
099    
100            public void setAnchorId(java.lang.String anchorId) {
101                    _anchorId = anchorId;
102    
103                    setScopedAttribute("anchorId", anchorId);
104            }
105    
106            public void setCssClass(java.lang.String cssClass) {
107                    _cssClass = cssClass;
108    
109                    setScopedAttribute("cssClass", cssClass);
110            }
111    
112            public void setData(java.lang.Object data) {
113                    _data = data;
114    
115                    setScopedAttribute("data", data);
116            }
117    
118            public void setDropdown(boolean dropdown) {
119                    _dropdown = dropdown;
120    
121                    setScopedAttribute("dropdown", dropdown);
122            }
123    
124            public void setHref(java.lang.Object href) {
125                    _href = href;
126    
127                    setScopedAttribute("href", href);
128            }
129    
130            public void setIconClass(java.lang.String iconClass) {
131                    _iconClass = iconClass;
132    
133                    setScopedAttribute("iconClass", iconClass);
134            }
135    
136            public void setId(java.lang.String id) {
137                    _id = id;
138    
139                    setScopedAttribute("id", id);
140            }
141    
142            public void setLabel(java.lang.String label) {
143                    _label = label;
144    
145                    setScopedAttribute("label", label);
146            }
147    
148            public void setSelected(boolean selected) {
149                    _selected = selected;
150    
151                    setScopedAttribute("selected", selected);
152            }
153    
154            public void setTitle(java.lang.String title) {
155                    _title = title;
156    
157                    setScopedAttribute("title", title);
158            }
159    
160            public void setWrapDropDownMenu(boolean wrapDropDownMenu) {
161                    _wrapDropDownMenu = wrapDropDownMenu;
162    
163                    setScopedAttribute("wrapDropDownMenu", wrapDropDownMenu);
164            }
165    
166            @Override
167            protected void cleanUp() {
168                    _anchorCssClass = null;
169                    _anchorData = null;
170                    _anchorId = null;
171                    _cssClass = null;
172                    _data = null;
173                    _dropdown = false;
174                    _href = "javascript:void(0);";
175                    _iconClass = null;
176                    _id = null;
177                    _label = null;
178                    _selected = false;
179                    _title = null;
180                    _wrapDropDownMenu = true;
181            }
182    
183            @Override
184            protected String getEndPage() {
185                    return _END_PAGE;
186            }
187    
188            @Override
189            protected String getStartPage() {
190                    return _START_PAGE;
191            }
192    
193            @Override
194            protected void setAttributes(HttpServletRequest request) {
195                    setNamespacedAttribute(request, "anchorCssClass", _anchorCssClass);
196                    setNamespacedAttribute(request, "anchorData", _anchorData);
197                    setNamespacedAttribute(request, "anchorId", _anchorId);
198                    setNamespacedAttribute(request, "cssClass", _cssClass);
199                    setNamespacedAttribute(request, "data", _data);
200                    setNamespacedAttribute(request, "dropdown", _dropdown);
201                    setNamespacedAttribute(request, "href", _href);
202                    setNamespacedAttribute(request, "iconClass", _iconClass);
203                    setNamespacedAttribute(request, "id", _id);
204                    setNamespacedAttribute(request, "label", _label);
205                    setNamespacedAttribute(request, "selected", _selected);
206                    setNamespacedAttribute(request, "title", _title);
207                    setNamespacedAttribute(request, "wrapDropDownMenu", _wrapDropDownMenu);
208            }
209    
210            protected static final String _ATTRIBUTE_NAMESPACE = "aui:nav-item:";
211    
212            private static final String _END_PAGE =
213                    "/html/taglib/aui/nav_item/end.jsp";
214    
215            private static final String _START_PAGE =
216                    "/html/taglib/aui/nav_item/start.jsp";
217    
218            private java.lang.String _anchorCssClass = null;
219            private java.lang.Object _anchorData = null;
220            private java.lang.String _anchorId = null;
221            private java.lang.String _cssClass = null;
222            private java.lang.Object _data = null;
223            private boolean _dropdown = false;
224            private java.lang.Object _href = "javascript:void(0);";
225            private java.lang.String _iconClass = null;
226            private java.lang.String _id = null;
227            private java.lang.String _label = null;
228            private boolean _selected = false;
229            private java.lang.String _title = null;
230            private boolean _wrapDropDownMenu = true;
231    
232    }