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 getIconCssClass() {
073                    return _iconCssClass;
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 getState() {
089                    return _state;
090            }
091    
092            public java.lang.String getTitle() {
093                    return _title;
094            }
095    
096            public boolean getToggle() {
097                    return _toggle;
098            }
099    
100            public boolean getUseDialog() {
101                    return _useDialog;
102            }
103    
104            public boolean getWrapDropDownMenu() {
105                    return _wrapDropDownMenu;
106            }
107    
108            public void setAnchorCssClass(java.lang.String anchorCssClass) {
109                    _anchorCssClass = anchorCssClass;
110    
111                    setScopedAttribute("anchorCssClass", anchorCssClass);
112            }
113    
114            public void setAnchorData(java.lang.Object anchorData) {
115                    _anchorData = anchorData;
116    
117                    setScopedAttribute("anchorData", anchorData);
118            }
119    
120            public void setAnchorId(java.lang.String anchorId) {
121                    _anchorId = anchorId;
122    
123                    setScopedAttribute("anchorId", anchorId);
124            }
125    
126            public void setAriaLabel(java.lang.String ariaLabel) {
127                    _ariaLabel = ariaLabel;
128    
129                    setScopedAttribute("ariaLabel", ariaLabel);
130            }
131    
132            public void setAriaRole(java.lang.String ariaRole) {
133                    _ariaRole = ariaRole;
134    
135                    setScopedAttribute("ariaRole", ariaRole);
136            }
137    
138            public void setCssClass(java.lang.String cssClass) {
139                    _cssClass = cssClass;
140    
141                    setScopedAttribute("cssClass", cssClass);
142            }
143    
144            public void setData(java.lang.Object data) {
145                    _data = data;
146    
147                    setScopedAttribute("data", data);
148            }
149    
150            public void setDropdown(boolean dropdown) {
151                    _dropdown = dropdown;
152    
153                    setScopedAttribute("dropdown", dropdown);
154            }
155    
156            public void setHref(java.lang.Object href) {
157                    _href = href;
158    
159                    setScopedAttribute("href", href);
160            }
161    
162            public void setIconCssClass(java.lang.String iconCssClass) {
163                    _iconCssClass = iconCssClass;
164    
165                    setScopedAttribute("iconCssClass", iconCssClass);
166            }
167    
168            public void setId(java.lang.String id) {
169                    _id = id;
170    
171                    setScopedAttribute("id", id);
172            }
173    
174            public void setLabel(java.lang.String label) {
175                    _label = label;
176    
177                    setScopedAttribute("label", label);
178            }
179    
180            public void setSelected(boolean selected) {
181                    _selected = selected;
182    
183                    setScopedAttribute("selected", selected);
184            }
185    
186            public void setState(java.lang.String state) {
187                    _state = state;
188    
189                    setScopedAttribute("state", state);
190            }
191    
192            public void setTitle(java.lang.String title) {
193                    _title = title;
194    
195                    setScopedAttribute("title", title);
196            }
197    
198            public void setToggle(boolean toggle) {
199                    _toggle = toggle;
200    
201                    setScopedAttribute("toggle", toggle);
202            }
203    
204            public void setUseDialog(boolean useDialog) {
205                    _useDialog = useDialog;
206    
207                    setScopedAttribute("useDialog", useDialog);
208            }
209    
210            public void setWrapDropDownMenu(boolean wrapDropDownMenu) {
211                    _wrapDropDownMenu = wrapDropDownMenu;
212    
213                    setScopedAttribute("wrapDropDownMenu", wrapDropDownMenu);
214            }
215    
216            @Override
217            protected void cleanUp() {
218                    _anchorCssClass = null;
219                    _anchorData = null;
220                    _anchorId = null;
221                    _ariaLabel = null;
222                    _ariaRole = null;
223                    _cssClass = null;
224                    _data = null;
225                    _dropdown = false;
226                    _href = "javascript:void(0);";
227                    _iconCssClass = null;
228                    _id = null;
229                    _label = null;
230                    _selected = false;
231                    _state = null;
232                    _title = null;
233                    _toggle = false;
234                    _useDialog = false;
235                    _wrapDropDownMenu = true;
236            }
237    
238            @Override
239            protected String getEndPage() {
240                    return _END_PAGE;
241            }
242    
243            @Override
244            protected String getStartPage() {
245                    return _START_PAGE;
246            }
247    
248            @Override
249            protected void setAttributes(HttpServletRequest request) {
250                    setNamespacedAttribute(request, "anchorCssClass", _anchorCssClass);
251                    setNamespacedAttribute(request, "anchorData", _anchorData);
252                    setNamespacedAttribute(request, "anchorId", _anchorId);
253                    setNamespacedAttribute(request, "ariaLabel", _ariaLabel);
254                    setNamespacedAttribute(request, "ariaRole", _ariaRole);
255                    setNamespacedAttribute(request, "cssClass", _cssClass);
256                    setNamespacedAttribute(request, "data", _data);
257                    setNamespacedAttribute(request, "dropdown", _dropdown);
258                    setNamespacedAttribute(request, "href", _href);
259                    setNamespacedAttribute(request, "iconCssClass", _iconCssClass);
260                    setNamespacedAttribute(request, "id", _id);
261                    setNamespacedAttribute(request, "label", _label);
262                    setNamespacedAttribute(request, "selected", _selected);
263                    setNamespacedAttribute(request, "state", _state);
264                    setNamespacedAttribute(request, "title", _title);
265                    setNamespacedAttribute(request, "toggle", _toggle);
266                    setNamespacedAttribute(request, "useDialog", _useDialog);
267                    setNamespacedAttribute(request, "wrapDropDownMenu", _wrapDropDownMenu);
268            }
269    
270            protected static final String _ATTRIBUTE_NAMESPACE = "aui:nav-item:";
271    
272            private static final String _END_PAGE =
273                    "/html/taglib/aui/nav_item/end.jsp";
274    
275            private static final String _START_PAGE =
276                    "/html/taglib/aui/nav_item/start.jsp";
277    
278            private java.lang.String _anchorCssClass = null;
279            private java.lang.Object _anchorData = null;
280            private java.lang.String _anchorId = null;
281            private java.lang.String _ariaLabel = null;
282            private java.lang.String _ariaRole = null;
283            private java.lang.String _cssClass = null;
284            private java.lang.Object _data = null;
285            private boolean _dropdown = false;
286            private java.lang.Object _href = "javascript:void(0);";
287            private java.lang.String _iconCssClass = null;
288            private java.lang.String _id = null;
289            private java.lang.String _label = null;
290            private boolean _selected = false;
291            private java.lang.String _state = null;
292            private java.lang.String _title = null;
293            private boolean _toggle = false;
294            private boolean _useDialog = false;
295            private boolean _wrapDropDownMenu = true;
296    
297    }