Mercurial > projects > dwt-addons
diff dwtx/ui/internal/forms/widgets/ImageSegment.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 | 26c6c9dfd13c |
children |
line wrap: on
line diff
--- a/dwtx/ui/internal/forms/widgets/ImageSegment.d Sun Aug 03 17:01:51 2008 +0200 +++ b/dwtx/ui/internal/forms/widgets/ImageSegment.d Thu Aug 07 15:01:33 2008 +0200 @@ -23,14 +23,13 @@ import dwt.graphics.Rectangle; import dwt.dwthelper.utils; -import tango.util.collection.HashMap; +import dwtx.dwtxhelper.Collection; /** * @version 1.0 * @author */ public class ImageSegment : ObjectSegment { - alias HashMap!(String,Object) Hashtable; public static const String SEL_IMAGE_PREFIX = "isel."; //$NON-NLS-1$ public Image getImage(Hashtable objectTable) { @@ -54,7 +53,7 @@ if (image is null) { image = FormUtil.createAlphaMashImage(selData.display, getImage(objectTable)); if (image !is null) - objectTable.add(key, image); + objectTable.put(key, image); } return image; }