void move(Component dragged) {
int d = ((Listbox)dragged.getParent()).getIndexOfItem((Listitem)dragged);
int s = ((Listbox)self.getParent()).getIndexOfItem((Listitem)self);
if(d < s) {
self.parent.insertBefore(dragged, ((Listitem)self).getNextSibling());
}else {
self.parent.insertBefore(dragged, self);
}
}
]]>
阅读(1774) | 评论(0) | 转发(0) |