comparison org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module org.eclipse.jface.fieldassist.IControlCreator;
14
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.swt.widgets.Control;
17
18 import java.lang.all;
19
20 /**
21 * This interface is used to create a control with a specific parent and style
22 * bits. It is used by {@link DecoratedField} to create the control to be
23 * decorated. Clients are expected to implement this interface in order to
24 * create a particular kind of control for decoration.
25 *
26 * @since 3.2
27 * @deprecated As of 3.3, clients should use {@link ControlDecoration} instead
28 * of {@link DecoratedField}.
29 *
30 */
31 public interface IControlCreator {
32 /**
33 * Create a control with the specified parent and style bits.
34 *
35 * @param parent
36 * the parent of the control
37 * @param style
38 * the style of the control
39 *
40 * @return the Control that was created.
41 */
42 public Control createControl(Composite parent, int style);
43 }