-
15 May 2012 9:16 AM #1
Surface.getSprites() removed
Surface.getSprites() removed
In GXT 3.0.0, it looks like the Surface.getSprites() method was removed.
This method, in prior versions like RC, returned a SpriteList object, which had a clear() method():
Code:clear() Clears all items from the composite and removes them their surface.
This allowed something like this, for removing all Sprites from a drawing/surface:
Code:// clear the dashboard drawing. SpriteList<Sprite> sprites = drawing.getSurface().getSprites(); sprites.clear();
With the changes in 3.0.0 chart/draw, I see no simple way of doing this. I assume this is a mistake/oversight, because surely we are not expected to iterate over every Sprite in a Surface in order to call Sprite.remove.
Please advise on how to clear a DrawComponent or Surface of all its Sprites.
Thanks,
Don P.
-
18 Jul 2012 12:44 PM #2
This has been fixed and will be in the next release. Also there is now a direct clearSurface method on DrawComponent.
-
15 Aug 2012 1:26 PM #3
GXT 3.0.1 has been released and contains this fix.
Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
in
a recent build.


Reply With Quote