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.ui;
016    
017    import com.liferay.portal.kernel.dao.search.SearchEntry;
018    import com.liferay.portal.kernel.util.StringPool;
019    import com.liferay.taglib.util.ParamAndPropertyAncestorTagImpl;
020    
021    import javax.servlet.jsp.JspException;
022    
023    /**
024     * @author Raymond Aug??
025     */
026    public abstract class SearchContainerColumnTag
027            extends ParamAndPropertyAncestorTagImpl {
028    
029            @Override
030            @SuppressWarnings("unused")
031            public int doStartTag() throws JspException {
032                    return EVAL_BODY_INCLUDE;
033            }
034    
035            public String getAlign() {
036                    return align;
037            }
038    
039            public int getColspan() {
040                    return colspan;
041            }
042    
043            public String getCssClass() {
044                    return cssClass;
045            }
046    
047            public int getIndex() {
048                    return index;
049            }
050    
051            public String getName() {
052                    return name;
053            }
054    
055            public String getValign() {
056                    return valign;
057            }
058    
059            public void setAlign(String align) {
060                    this.align = align;
061            }
062    
063            public void setColspan(int colspan) {
064                    this.colspan = colspan;
065            }
066    
067            public void setCssClass(String cssClass) {
068                    this.cssClass = cssClass;
069            }
070    
071            public void setIndex(int index) {
072                    this.index = index;
073            }
074    
075            public void setName(String name) {
076                    this.name = name;
077            }
078    
079            public void setValign(String valign) {
080                    this.valign = valign;
081            }
082    
083            protected String align = SearchEntry.DEFAULT_ALIGN;
084            protected int colspan = SearchEntry.DEFAULT_COLSPAN;
085            protected String cssClass = SearchEntry.DEFAULT_CSS_CLASS;
086            protected int index = -1;
087            protected String name = StringPool.BLANK;
088            protected String valign = SearchEntry.DEFAULT_VALIGN;
089    
090    }