Mercurial > projects > dwt-addons
comparison dwtx/jface/dialogs/DialogTray.d @ 11:11bd25f93332
TrayDialog
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 31 Mar 2008 01:03:07 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:b6c35faf97c8 | 11:11bd25f93332 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2005 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.dialogs.DialogTray; | |
14 | |
15 import dwt.widgets.Composite; | |
16 import dwt.widgets.Control; | |
17 | |
18 /** | |
19 * <p> | |
20 * This class is the abstract superclass of all dialog trays. A tray can be opened | |
21 * in any <code>TrayDialog</code>. | |
22 * </p> | |
23 * | |
24 * @see dwtx.jface.dialogs.TrayDialog | |
25 * @since 3.2 | |
26 */ | |
27 public abstract class DialogTray { | |
28 | |
29 /** | |
30 * Creates the contents (widgets) that will be contained in the tray. | |
31 * <p> | |
32 * Tray implementions must not set a layout on the parent composite, or assume | |
33 * a particular layout on the parent. The tray dialog will allocate space | |
34 * according to the natural size of the tray, and will fill the tray area with the | |
35 * tray's contents. | |
36 * </p> | |
37 * | |
38 * @param parent the composite that will contain the tray | |
39 * @return the contents of the tray, as a <code>Control</code> | |
40 */ | |
41 protected abstract Control createContents(Composite parent); | |
42 package Control createContents_package(Composite parent){ | |
43 return createContents(parent); | |
44 } | |
45 } |