KickJava   Java API By Example, From Geeks To Geeks.

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


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 import com.tonbeller.jpivot.olap.model.Property;
16
17 /**
18  * @author av
19  */

20 public class IgnorePropertiesHierarchyHeaderFactory extends HierarchyHeaderFactory {
21   Span previous;
22
23   public Span create(Span span) {
24     previous = super.create(span);
25     return previous;
26   }
27
28   public void visitProperty(Property v) {
29     header.setObject(previous.getObject());
30   }
31
32   public void visitPropertyHeading(PropertyHeading heading) {
33     header.setObject(previous.getObject());
34   }
35
36 }
37
Popular Tags