use of org.apache.openmeetings.web.common.tree.FileTreePanel in project openmeetings by apache.
the class RecordingsPanel method onInitialize.
@Override
protected void onInitialize() {
final NameDialog addFolder = new NameDialog("addFolder", getString("712")) {
private static final long serialVersionUID = 1L;
@Override
protected void onSubmit(AjaxRequestTarget target) {
fileTree.createFolder(target, getModelObject());
}
};
add(fileTree = new FileTreePanel("tree", null, addFolder, null) {
private static final long serialVersionUID = 1L;
@Override
public void updateSizes() {
RecordingContainerData sizeData = recDao.getContainerData(getUserId());
if (sizeData != null) {
homeSize.setObject(getHumanSize(sizeData.getUserHomeSize()));
publicSize.setObject(getHumanSize(sizeData.getPublicFileSize()));
}
}
@Override
protected void update(AjaxRequestTarget target, BaseFileItem f) {
video.update(target, f);
info.update(target, f);
}
});
add(video, info, addFolder);
super.onInitialize();
}
Aggregations