KickJava   Java API By Example, From Geeks To Geeks.

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


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: IItemPropertySource.java,v 1.2 2005/06/08 06:17:05 nickb Exp $
16  */

17 package org.eclipse.emf.edit.provider;
18
19
20 import java.util.List JavaDoc;
21
22
23 /**
24  * This is the interface is needed to populate property sheet items;
25  * it is the same as IPropertySource
26  * except that the object is passed as the first parameter for each method.
27  */

28 public interface IItemPropertySource
29 {
30   /**
31    * This does the same thing as
32    * IPropertySource.getPropertyDescriptors.
33    */

34   List JavaDoc getPropertyDescriptors(Object JavaDoc object);
35
36   /**
37    * This returns the property descriptor with the given ID.
38    */

39   IItemPropertyDescriptor getPropertyDescriptor(Object JavaDoc object, Object JavaDoc propertyID);
40
41   /**
42    * This returns the value to be edited.
43    */

44   Object JavaDoc getEditableValue(Object JavaDoc object);
45 }
46
Popular Tags