Search in sources :

Example 1 with NameDialog

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));
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) NameDialog(org.apache.openmeetings.web.common.NameDialog) Options(com.googlecode.wicket.jquery.core.Options) ActivitiesPanel(org.apache.openmeetings.web.room.activities.ActivitiesPanel) Form(org.apache.wicket.markup.html.form.Form) ConfirmableAjaxBorder(org.apache.openmeetings.web.common.ConfirmableAjaxBorder) JQueryUIBehavior(com.googlecode.wicket.jquery.ui.JQueryUIBehavior) ConfirmableBorderDialog(org.apache.openmeetings.web.common.ConfirmableAjaxBorder.ConfirmableBorderDialog)

Example 2 with NameDialog

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();
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) BaseFileItem(org.apache.openmeetings.db.entity.file.BaseFileItem) NameDialog(org.apache.openmeetings.web.common.NameDialog) RecordingContainerData(org.apache.openmeetings.db.dto.record.RecordingContainerData) FileTreePanel(org.apache.openmeetings.web.common.tree.FileTreePanel)

Aggregations

NameDialog (org.apache.openmeetings.web.common.NameDialog)2 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)2 Options (com.googlecode.wicket.jquery.core.Options)1 JQueryUIBehavior (com.googlecode.wicket.jquery.ui.JQueryUIBehavior)1 RecordingContainerData (org.apache.openmeetings.db.dto.record.RecordingContainerData)1 BaseFileItem (org.apache.openmeetings.db.entity.file.BaseFileItem)1 ConfirmableAjaxBorder (org.apache.openmeetings.web.common.ConfirmableAjaxBorder)1 ConfirmableBorderDialog (org.apache.openmeetings.web.common.ConfirmableAjaxBorder.ConfirmableBorderDialog)1 FileTreePanel (org.apache.openmeetings.web.common.tree.FileTreePanel)1 ActivitiesPanel (org.apache.openmeetings.web.room.activities.ActivitiesPanel)1 Form (org.apache.wicket.markup.html.form.Form)1