getBean(FlvRecordingDao.class).delete(r);
target.add(trees); //FIXME add correct refresh
}
}.dropCenter("span"));
add(trash/*.add(new WindowsTheme())*/); //TODO check theme here
RepeatingView treesView = new RepeatingView("tree");
treesView.add(selected = new RecordingTree(treesView.newChildId(), new MyRecordingTreeProvider()));
treesView.add(new RecordingTree(treesView.newChildId(), new PublicRecordingTreeProvider(null, null)));
for (Organisation_Users ou : getBean(UserDao.class).get(getUserId()).getOrganisation_users()) {
Organisation o = ou.getOrganisation();
treesView.add(new RecordingTree(treesView.newChildId(), new PublicRecordingTreeProvider(o.getOrganisation_id(), o.getName())));
}
add(trees.add(treesView).setOutputMarkupId(true));
updateSizes();
add(sizes.add(new Label("homeSize", homeSize), new Label("publicSize", publicSize)).setOutputMarkupId(true));
sizes.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)) {