private static final long serialVersionUID = 1L;
protected void populateItem(ListItem item) {
TargetSlot targetSlot = (TargetSlot) item.getModelObject();
YuiImage slot = targetSlot.getSlot();
item.add(new DragDropTargetSlot(targetSlotList.getSlotId(),
item.getIndex(), slot, settings));
};
};
add(targetSlotView);
// Add the dragable slots and dragable images
ListView dragableSlotView = new ListView(dragableSlotList.getId(),
dragableSlotList.getDragableList()) {
private static final long serialVersionUID = 1L;
protected void populateItem(ListItem item) {
DragableSlot dragableSlot = (DragableSlot) item
.getModelObject();
YuiImage slot = dragableSlot.getSlot();
YuiImage img = dragableSlot.getImage();
item.add(new DragDropDragableSlot(dragableSlotList.getSlotId(),
item.getIndex(), slot, settings));
item.add(new DragDropPlayer(dragableSlotList.getImgId(), item
.getIndex(), img, settings));
};