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 abstract class BaseNavBarSearchTag 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 getCssClass() {
037                    return _cssClass;
038            }
039    
040            public java.lang.String getId() {
041                    return _id;
042            }
043    
044            public java.lang.String getFile() {
045                    return _file;
046            }
047    
048            public com.liferay.portal.kernel.dao.search.SearchContainer<?> getSearchContainer() {
049                    return _searchContainer;
050            }
051    
052            public void setCssClass(java.lang.String cssClass) {
053                    _cssClass = cssClass;
054    
055                    setScopedAttribute("cssClass", cssClass);
056            }
057    
058            public void setId(java.lang.String id) {
059                    _id = id;
060    
061                    setScopedAttribute("id", id);
062            }
063    
064            public void setFile(java.lang.String file) {
065                    _file = file;
066    
067                    setScopedAttribute("file", file);
068            }
069    
070            public void setSearchContainer(com.liferay.portal.kernel.dao.search.SearchContainer<?> searchContainer) {
071                    _searchContainer = searchContainer;
072    
073                    setScopedAttribute("searchContainer", searchContainer);
074            }
075    
076            @Override
077            protected void cleanUp() {
078                    super.cleanUp();
079    
080                    _cssClass = null;
081                    _id = null;
082                    _file = null;
083                    _searchContainer = null;
084            }
085    
086            @Override
087            protected String getEndPage() {
088                    return _END_PAGE;
089            }
090    
091            @Override
092            protected String getStartPage() {
093                    return _START_PAGE;
094            }
095    
096            @Override
097            protected void setAttributes(HttpServletRequest request) {
098                    setNamespacedAttribute(request, "cssClass", _cssClass);
099                    setNamespacedAttribute(request, "id", _id);
100                    setNamespacedAttribute(request, "file", _file);
101                    setNamespacedAttribute(request, "searchContainer", _searchContainer);
102            }
103    
104            protected static final String _ATTRIBUTE_NAMESPACE = "aui:nav-bar-search:";
105    
106            private static final String _END_PAGE =
107                    "/html/taglib/aui/nav_bar_search/end.jsp";
108    
109            private static final String _START_PAGE =
110                    "/html/taglib/aui/nav_bar_search/start.jsp";
111    
112            private java.lang.String _cssClass = null;
113            private java.lang.String _id = null;
114            private java.lang.String _file = null;
115            private com.liferay.portal.kernel.dao.search.SearchContainer<?> _searchContainer = null;
116    
117    }