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.portal.kernel.dao.search;
016    
017    import com.liferay.portal.kernel.util.StringPool;
018    
019    import java.io.Writer;
020    
021    import javax.servlet.http.HttpServletRequest;
022    import javax.servlet.http.HttpServletResponse;
023    
024    /**
025     * @author Raymond Aug??
026     */
027    public interface SearchEntry {
028    
029            public static final String DEFAULT_ALIGN = "left";
030    
031            public static final int DEFAULT_COLSPAN = 1;
032    
033            public static final String DEFAULT_CSS_CLASS = StringPool.BLANK;
034    
035            public static final String DEFAULT_VALIGN = "middle";
036    
037            public String getAlign();
038    
039            public int getColspan();
040    
041            public String getCssClass();
042    
043            public int getIndex();
044    
045            public String getValign();
046    
047            public boolean isTruncate();
048    
049            public void print(
050                            Writer writer, HttpServletRequest request,
051                            HttpServletResponse response)
052                    throws Exception;
053    
054            public void setAlign(String align);
055    
056            public void setColspan(int colspan);
057    
058            public void setCssClass(String cssClass);
059    
060            public void setIndex(int index);
061    
062            public void setTruncate(boolean truncate);
063    
064            public void setValign(String valign);
065    
066    }