Flex ArrayCollection 将项目向上或向下气泡一个位置
我有一个 ArrayCollection,我希望能够将项目向上或向下冒泡一个位置。最好的方法是什么?
I have an ArrayCollection where I want to be able to bubble items up or down by one position. What is the best way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ETC。
etc.
将 Robusto 的两个函数调用组合成一行:)
ArrayList 上的
remove...
函数返回被删除的项目,因此您可以轻松地在集合中重新定位它。Combining Robusto's two function calls into a single line :)
The
remove...
functions on the ArrayList return the item being removed, so you can easily reposition it in the collection.