1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.dao.search;
16  
17  import javax.servlet.jsp.PageContext;
18  
19  /**
20   * <a href="SearchEntry.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public abstract class SearchEntry implements Cloneable {
25  
26      public static final String DEFAULT_ALIGN = "left";
27  
28      public static final String DEFAULT_VALIGN = "middle";
29  
30      public static final int DEFAULT_COLSPAN = 1;
31  
32      public SearchEntry() {
33          this(DEFAULT_ALIGN, DEFAULT_VALIGN, DEFAULT_COLSPAN);
34      }
35  
36      public SearchEntry(String align, String valign, int colspan) {
37          _align = align;
38          _valign = valign;
39          _colspan = colspan;
40      }
41  
42      public int getIndex() {
43          return _index;
44      }
45  
46      public void setIndex(int index) {
47          _index = index;
48      }
49  
50      public String getAlign() {
51          return _align;
52      }
53  
54      public void setAlign(String align) {
55          _align = align;
56      }
57  
58      public String getValign() {
59          return _valign;
60      }
61  
62      public void setValign(String valign) {
63          _valign = valign;
64      }
65  
66      public int getColspan() {
67          return _colspan;
68      }
69  
70      public void setColspan(int colspan) {
71          _colspan = colspan;
72      }
73  
74      public abstract void print(PageContext pageContext) throws Exception;
75  
76      private int _index;
77      private String _align;
78      private String _valign;
79      private int _colspan;
80  
81  }