KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > viewers > IDecorationContext


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jface.viewers;
12
13
14 /**
15  * A decoration context provides additional information to
16  * a label decorator.
17  * <p>
18  * This interface is not intended to be implemented by clients
19  *
20  * @see LabelDecorator
21  *
22  * @since 3.2
23  */

24 public interface IDecorationContext {
25     
26     /**
27      * Get the value of the given property or <code>null</code>
28      * if the property does not exist in this context.
29      * @param property the property
30      * @return the value of the given property or <code>null</code>
31      */

32     Object JavaDoc getProperty(String JavaDoc property);
33     
34     /**
35      * Return the properties that exist in this context
36      * (i.e. the set of properties that have values associated
37      * with them.
38      * @return the properties that exist in this context
39      */

40     String JavaDoc[] getProperties();
41
42 }
43
Popular Tags