KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > edit > provider > IItemLabelProvider


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: IItemLabelProvider.java,v 1.2 2005/06/08 06:17:05 nickb Exp $
16  */

17 package org.eclipse.emf.edit.provider;
18
19
20
21 /**
22  * This is the interface implemented to provide a label text and even a label icon for an item;
23  * it receives delegated calls from ILabelProvider.
24  */

25 public interface IItemLabelProvider
26 {
27   /**
28    * This does the same thing as ILabelProvider.getlText,
29    * it fetches the label text specific to this object instance.
30    */

31   public String JavaDoc getText(Object JavaDoc object);
32
33   /**
34    * This does the same thing as ILabelProvider.getImage,
35    * it fetches the label image specific to this object instance.
36    */

37   public Object JavaDoc getImage(Object JavaDoc object);
38 }
39
Popular Tags