001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.dao.search;
016    
017    import javax.servlet.jsp.PageContext;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public abstract class SearchEntry implements Cloneable {
023    
024            public static final String DEFAULT_ALIGN = "left";
025    
026            public static final String DEFAULT_VALIGN = "middle";
027    
028            public static final int DEFAULT_COLSPAN = 1;
029    
030            public SearchEntry() {
031                    this(DEFAULT_ALIGN, DEFAULT_VALIGN, DEFAULT_COLSPAN);
032            }
033    
034            public SearchEntry(String align, String valign, int colspan) {
035                    _align = align;
036                    _valign = valign;
037                    _colspan = colspan;
038            }
039    
040            public int getIndex() {
041                    return _index;
042            }
043    
044            public void setIndex(int index) {
045                    _index = index;
046            }
047    
048            public String getAlign() {
049                    return _align;
050            }
051    
052            public void setAlign(String align) {
053                    _align = align;
054            }
055    
056            public String getValign() {
057                    return _valign;
058            }
059    
060            public void setValign(String valign) {
061                    _valign = valign;
062            }
063    
064            public int getColspan() {
065                    return _colspan;
066            }
067    
068            public void setColspan(int colspan) {
069                    _colspan = colspan;
070            }
071    
072            public abstract void print(PageContext pageContext) throws Exception;
073    
074            private int _index;
075            private String _align;
076            private String _valign;
077            private int _colspan;
078    
079    }