@Override
protected Component newLabelComponent(String id, final IModel<FlvRecording> lm) {
FlvRecording r = lm.getObject();
Component result = r.isFolder() || r.getFlvRecordingId() < 1 ? new RecordingPanel(id, lm) : new RecordingItemPanel(id, lm, errorsDialog);
if (r.getFlvRecordingId() > 0) {
result.add(new DragSource(Operation.MOVE) {
private static final long serialVersionUID = 1L;
@Override
public void onBeforeDrop(Component drag, Transfer transfer) throws Reject {
transfer.setData(lm.getObject());