Search in sources :

Example 1 with ActivitiesPanel

use of org.apache.openmeetings.web.room.activities.ActivitiesPanel 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)

Aggregations

Options (com.googlecode.wicket.jquery.core.Options)1 JQueryUIBehavior (com.googlecode.wicket.jquery.ui.JQueryUIBehavior)1 ConfirmableAjaxBorder (org.apache.openmeetings.web.common.ConfirmableAjaxBorder)1 ConfirmableBorderDialog (org.apache.openmeetings.web.common.ConfirmableAjaxBorder.ConfirmableBorderDialog)1 NameDialog (org.apache.openmeetings.web.common.NameDialog)1 ActivitiesPanel (org.apache.openmeetings.web.room.activities.ActivitiesPanel)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 Form (org.apache.wicket.markup.html.form.Form)1