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