queueList.setMoveMode(false);
return super.handleEnter(arg, isReturn);
}
public void saveOrder() {
MovieRentalService service = getService();
List<MovieItem> queue = new ArrayList<MovieItem>();
int size = queueList.size();
for (int i=0; i < size; i++) {
MovieItem item = (MovieItem)queueList.get(i);
queue.add(item);
}
try {
service.updateQueueOrder(queue);
queueList.clearModified();
} catch (IOException e) {
log.error("An error occurred when saving the queue order.");
}
}