KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > table > span > NoSpanConfig


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.jpivot.table.span;
14
15 /**
16  * Created on 29.10.2002
17  *
18  * @author av
19  */

20 public class NoSpanConfig implements SpanConfig {
21
22   /**
23    * returns NO_SPAN for all cells.
24    */

25   public int chooseSpanDirection(Span span) {
26     return SpanConfig.NO_SPAN;
27   }
28   
29   /**
30    * returns true, if the objects returned by getObject() are equal.
31    */

32   public boolean equals(Span span1, Span span2) {
33     return span1.getObject().equals(span2.getObject());
34   }
35
36 }
37
Popular Tags