use of org.apache.openmeetings.web.common.NameDialog in project openmeetings by apache.
the class RoomSidebar method onInitialize.
@Override
protected void onInitialize() {
super.onInitialize();
final NameDialog addFolder = new NameDialog("addFolder", getString("712")) {
private static final long serialVersionUID = 1L;
@Override
protected void onSubmit(AjaxRequestTarget target) {
roomFiles.createFolder(target, getModelObject());
}
};
final Form<?> form = new Form<>("form");
ConfirmableBorderDialog confirmTrash = new ConfirmableBorderDialog("confirm-trash", getString("80"), getString("713"), form);
roomFiles = new RoomFilePanel("tree", room, addFolder, confirmTrash);
add(selfRights, userList.add(updateUsers()).setOutputMarkupId(true), fileTab.setVisible(!room.isInterview()), roomFiles.setVisible(!room.isInterview()));
add(addFolder, settings, userCount.setOutputMarkupId(true));
add(toggleRight, toggleActivity, roomAction, avSettings);
add(confirmKick = new ConfirmableAjaxBorder("confirm-kick", getString("603"), getString("605")) {
private static final long serialVersionUID = 1L;
@Override
protected void onSubmit(AjaxRequestTarget target) {
kickUser(kickedClient);
}
});
add(form.add(confirmTrash), upload = new UploadDialog("upload", room, roomFiles));
updateShowFiles(null);
add(new JQueryUIBehavior("#room-sidebar-tabs", "tabs", new Options("activate", "function(event, ui) {Room.setSize();}")));
add(activities = new ActivitiesPanel("activities", room));
}
use of org.apache.openmeetings.web.common.NameDialog 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