1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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  }