@Override
protected void onEvent(AjaxRequestTarget target) {
target.add(trees); //FIXME add correct refresh
}
}));
ConfirmableAjaxLink trash = new ConfirmableAjaxLink("trash", 713) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
long id = rm.getObject().getFlvRecordingId();
if (id > 0) {
getBean(FlvRecordingDao.class).delete(rm.getObject());
}
target.add(trees); //FIXME add correct refresh
}
};
trash.add(new WebMarkupContainer("drop-center").setOutputMarkupId(true)).add(new DropTarget(Operation.MOVE) {
private static final long serialVersionUID = 1L;
@Override
public void onDrop(AjaxRequestTarget target, Transfer transfer, Location location) throws Reject {
FlvRecording r = transfer.getData();