KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.beans.PropertyChangeListener JavaDoc;
16 import java.util.List JavaDoc;
17
18 import com.tonbeller.jpivot.ui.Available;
19 import com.tonbeller.wcf.bookmarks.Bookmarkable;
20
21 /**
22  * defines which properties shall be visible and
23  * which shall be hidden
24  *
25  * @author av
26  */

27 public interface PropertyConfig extends Bookmarkable, Available {
28
29   /**
30    * shall properties be shown at all?
31    */

32   boolean isShowProperties();
33   void setShowProperties(boolean b);
34   
35   /**
36    * does the underlying OLAP model support properties?
37    */

38   boolean isAvailable();
39   
40   /**
41    * sets the ordered list of visible MemberPropertyMeta instances.
42    * @param metas list containing MemberPropertyMeta. Properties which are not
43    * present in the list will not be shown. If null, all properties are shown.
44    */

45   void setVisiblePropertyMetas(List JavaDoc metas);
46   List JavaDoc getVisiblePropertyMetas();
47   
48   /**
49    * notifies the listener that this config has changed (and the model has possibly to be redrawn)
50    */

51   void addPropertyChangeListener(PropertyChangeListener JavaDoc l);
52   void removePropertyChangeListener(PropertyChangeListener JavaDoc l);
53   
54
55 }
56
Popular Tags