Mercurial > projects > dwt-addons
comparison dwtx/jface/fieldassist/IControlCreator.d @ 17:f459f9147650
ImageAndMessgeDialog
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 01 Apr 2008 08:24:51 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
16:e0f0aaf75edd | 17:f459f9147650 |
---|---|
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 dwtx.jface.fieldassist.IControlCreator; | |
14 | |
15 import dwt.widgets.Composite; | |
16 import dwt.widgets.Control; | |
17 | |
18 import dwt.dwthelper.utils; | |
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 } |