KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > model > Displayable


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.olap.model;
14
15 import java.util.Comparator JavaDoc;
16
17 /**
18  * Something that can be displayed in a GUI.
19  *
20  * @author av
21  */

22 public interface Displayable extends Visitable {
23   public static final Comparator JavaDoc LABEL_COMPARATOR = new Comparator JavaDoc(){
24     public int compare(Object JavaDoc o1, Object JavaDoc o2) {
25       Displayable d1 = (Displayable) o1;
26       Displayable d2 = (Displayable) o2;
27       return d1.getLabel().compareTo(d2.getLabel());
28     }
29   };
30
31   /**
32    * name of this item
33    */

34   String JavaDoc getLabel();
35
36 }
37
Popular Tags