comparison dwtx/ui/forms/widgets/Section.d @ 104:04b47443bb01

Reworked the collection uses to make use of a wrapper collection that is compatible to the Java Collections. These new wrappers now use the tango.util.containers instead of the tango.util.collections.
author Frank Benoit <benoit@tionex.de>
date Thu, 07 Aug 2008 15:01:33 +0200
parents 0953c252a764
children
comparison
equal deleted inserted replaced
103:2d6540440fe6 104:04b47443bb01
32 import dwtx.core.runtime.Assert; 32 import dwtx.core.runtime.Assert;
33 import dwtx.ui.internal.forms.widgets.FormImages; 33 import dwtx.ui.internal.forms.widgets.FormImages;
34 import dwtx.ui.internal.forms.widgets.FormUtil; 34 import dwtx.ui.internal.forms.widgets.FormUtil;
35 35
36 import dwt.dwthelper.utils; 36 import dwt.dwthelper.utils;
37 37 import dwtx.dwtxhelper.Collection;
38 import tango.util.collection.HashMap;
39 38
40 /** 39 /**
41 * A variation of the expandable composite that adds optional description below 40 * A variation of the expandable composite that adds optional description below
42 * the title. Section is often used as a basic building block in forms because 41 * the title. Section is often used as a basic building block in forms because
43 * it provides for logical grouping of information. 42 * it provides for logical grouping of information.
65 64
66 private Control descriptionControl; 65 private Control descriptionControl;
67 66
68 private Control separator; 67 private Control separator;
69 68
70 private HashMap!(String,Object) titleColors; 69 private Hashtable titleColors;
71 70
72 private static const String COLOR_BG = "bg"; //$NON-NLS-1$ 71 private static const String COLOR_BG = "bg"; //$NON-NLS-1$
73 72
74 private static const String COLOR_GBG = "gbg"; //$NON-NLS-1$ 73 private static const String COLOR_GBG = "gbg"; //$NON-NLS-1$
75 74
337 336
338 private void putTitleBarColor(String key, Color color) { 337 private void putTitleBarColor(String key, Color color) {
339 if (color is null) 338 if (color is null)
340 return; 339 return;
341 if (titleColors is null) 340 if (titleColors is null)
342 titleColors = new HashMap!(String,Object); 341 titleColors = new Hashtable();
343 titleColors.add(key, color); 342 titleColors.put(key, color);
344 } 343 }
345 344
346 protected void onPaint(PaintEvent e) { 345 protected void onPaint(PaintEvent e) {
347 Color bg = null; 346 Color bg = null;
348 Color fg = null; 347 Color fg = null;