KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > fieldassist > IControlCreator


1 /*******************************************************************************
2  * Copyright (c) 2005, 2007 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.fieldassist;
12
13 import org.eclipse.swt.widgets.Composite;
14 import org.eclipse.swt.widgets.Control;
15
16 /**
17  * This interface is used to create a control with a specific parent and style
18  * bits. It is used by {@link DecoratedField} to create the control to be
19  * decorated. Clients are expected to implement this interface in order to
20  * create a particular kind of control for decoration.
21  *
22  * @since 3.2
23  * @deprecated As of 3.3, clients should use {@link ControlDecoration} instead
24  * of {@link DecoratedField}.
25  *
26  */

27 public interface IControlCreator {
28     /**
29      * Create a control with the specified parent and style bits.
30      *
31      * @param parent
32      * the parent of the control
33      * @param style
34      * the style of the control
35      *
36      * @return the Control that was created.
37      */

38     public Control createControl(Composite parent, int style);
39 }
40
Popular Tags