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