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