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 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                    _cssClass = null;
079                    _id = null;
080                    _file = null;
081                    _searchContainer = null;
082            }
083    
084            @Override
085            protected String getEndPage() {
086                    return _END_PAGE;
087            }
088    
089            @Override
090            protected String getStartPage() {
091                    return _START_PAGE;
092            }
093    
094            @Override
095            protected void setAttributes(HttpServletRequest request) {
096                    setNamespacedAttribute(request, "cssClass", _cssClass);
097                    setNamespacedAttribute(request, "id", _id);
098                    setNamespacedAttribute(request, "file", _file);
099                    setNamespacedAttribute(request, "searchContainer", _searchContainer);
100            }
101    
102            protected static final String _ATTRIBUTE_NAMESPACE = "aui:nav-bar-search:";
103    
104            private static final String _END_PAGE =
105                    "/html/taglib/aui/nav_bar_search/end.jsp";
106    
107            private static final String _START_PAGE =
108                    "/html/taglib/aui/nav_bar_search/start.jsp";
109    
110            private java.lang.String _cssClass = null;
111            private java.lang.String _id = null;
112            private java.lang.String _file = null;
113            private com.liferay.portal.kernel.dao.search.SearchContainer<?> _searchContainer = null;
114    
115    }