Package org.apache.openmeetings.web.common

Examples of org.apache.openmeetings.web.common.AddFolderDialog


  private RecordingTree selected;
 
  public RecordingsPanel(String id) {
    super(id);
    rm.getObject().setFlvRecordingId(Long.MIN_VALUE);
    final AddFolderDialog addFolder = new AddFolderDialog("addFolder", WebSession.getString(712)) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target) {
        FlvRecording f = new FlvRecording();
        f.setFileName(getModelObject());
        f.setInsertedBy(getUserId());
        f.setInserted(new Date());
        f.setFolder(true);
        f.setIsImage(false);
        f.setIsPresentation(false);
        f.setIsRecording(true);
        FlvRecording p = rm.getObject();
        long parentId = p.getFlvRecordingId();
        if (p.isFolder()) {
          f.setParentFileExplorerItemId(parentId);
        }
        f.setOwnerId(p.getOwnerId());
        f.setOrganization_id(p.getOrganization_id());
        getBean(FlvRecordingDao.class).update(f);
        target.add(trees); //FIXME add correct refresh
      }
    };
    add(addFolder);
    add(new WebMarkupContainer("create").add(new AjaxEventBehavior("onclick") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        addFolder.open(target);
      }
    }));
    add(new WebMarkupContainer("refresh").add(new AjaxEventBehavior("onclick") {
      private static final long serialVersionUID = 1L;
View Full Code Here


          target.add(container);
        }
      }
    });
   
    final AddFolderDialog addFolder = new AddFolderDialog("addFolder") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target) {
        super.onSubmit(target);
        PrivateMessageFolderDao fDao = getBean(PrivateMessageFolderDao.class);
        fDao.addPrivateMessageFolder(getModelObject(), getUserId());
        foldersModel.setObject(fDao.get(0, Integer.MAX_VALUE));
        updateMoveModel();
        target.add(folders, moveDropDown);
      }
    };
    add(addFolder);
    add(new WebMarkupContainer("new").add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        newMessage.reset(true).open(target);
      }
    }).add(new JQueryBehavior(".email.new", "button")));
    folders.add(inbox.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(inbox, INBOX_FOLDER_ID, target);
      }
    }));
    folders.add(sent.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(sent, SENT_FOLDER_ID, target);
      }
    }));
    folders.add(trash.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(trash, TRASH_FOLDER_ID, target);
      }
    }));
    folders.add(new WebMarkupContainer("newdir").add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        addFolder.open(target);
      }
    }).add(new JQueryBehavior(".email.newdir", "button")));
    add(folders.add(new ListView<PrivateMessageFolder>("folder", foldersModel) {
      private static final long serialVersionUID = 1L;
View Full Code Here

          target.add(container);
        }
      }
    });
   
    final AddFolderDialog addFolder = new AddFolderDialog("addFolder") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target) {
        super.onSubmit(target);
        PrivateMessageFolderDao fDao = getBean(PrivateMessageFolderDao.class);
        fDao.addPrivateMessageFolder(getModelObject(), getUserId());
        foldersModel.setObject(fDao.get(0, Integer.MAX_VALUE));
        updateMoveModel();
        target.add(folders, moveDropDown);
      }
    };
    add(addFolder);
    add(new WebMarkupContainer("new").add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        newMessage.reset(false).open(target);
      }
    }).add(new JQueryBehavior(".email.new", "button")));
    folders.add(inbox.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(inbox, INBOX_FOLDER_ID, target);
      }
    }));
    folders.add(sent.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(sent, SENT_FOLDER_ID, target);
      }
    }));
    folders.add(trash.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(trash, TRASH_FOLDER_ID, target);
      }
    }));
    folders.add(new WebMarkupContainer("newdir").add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        addFolder.open(target);
      }
    }).add(new JQueryBehavior(".email.newdir", "button")));
    add(folders.add(new ListView<PrivateMessageFolder>("folder", foldersModel) {
      private static final long serialVersionUID = 1L;
View Full Code Here

  private RecordingTree selected;
 
  public RecordingsPanel(String id) {
    super(id);
    rm.getObject().setFlvRecordingId(Long.MIN_VALUE);
    final AddFolderDialog addFolder = new AddFolderDialog("addFolder", WebSession.getString(712)) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target) {
        FlvRecording f = new FlvRecording();
        f.setFileName(getModelObject());
        f.setInsertedBy(getUserId());
        f.setInserted(new Date());
        f.setFolder(true);
        f.setIsImage(false);
        f.setIsPresentation(false);
        f.setIsRecording(true);
        FlvRecording p = rm.getObject();
        long parentId = p.getFlvRecordingId();
        if (p.isFolder()) {
          f.setParentFileExplorerItemId(parentId);
        }
        f.setOwnerId(p.getOwnerId());
        f.setOrganization_id(p.getOrganization_id());
        getBean(FlvRecordingDao.class).update(f);
        target.add(trees); //FIXME add correct refresh
      }
    };
    add(addFolder);
    add(new WebMarkupContainer("create").add(new AjaxEventBehavior("onclick") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        addFolder.open(target);
      }
    }));
    add(new WebMarkupContainer("refresh").add(new AjaxEventBehavior("onclick") {
      private static final long serialVersionUID = 1L;
View Full Code Here

  private RecordingTree selected;
 
  public RecordingsPanel(String id) {
    super(id);
    rm.getObject().setFlvRecordingId(Long.MIN_VALUE);
    final AddFolderDialog addFolder = new AddFolderDialog("addFolder", WebSession.getString(712)) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target) {
        FlvRecording f = new FlvRecording();
        f.setFileName(getModelObject());
        f.setInsertedBy(getUserId());
        f.setInserted(new Date());
        f.setFolder(true);
        f.setIsImage(false);
        f.setIsPresentation(false);
        f.setIsRecording(true);
        FlvRecording p = rm.getObject();
        long parentId = p.getFlvRecordingId();
        if (p.isFolder()) {
          f.setParentFileExplorerItemId(parentId);
        }
        f.setOwnerId(p.getOwnerId());
        f.setOrganization_id(p.getOrganization_id());
        getBean(FlvRecordingDao.class).update(f);
        target.add(trees); //FIXME add correct refresh
      }
    };
    add(addFolder);
    add(new WebMarkupContainer("create").add(new AjaxEventBehavior("onclick") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        addFolder.open(target);
      }
    }));
    add(new WebMarkupContainer("refresh").add(new AjaxEventBehavior("onclick") {
      private static final long serialVersionUID = 1L;
View Full Code Here

          target.add(container);
        }
      }
    });
   
    final AddFolderDialog addFolder = new AddFolderDialog("addFolder") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target) {
        super.onSubmit(target);
        PrivateMessageFolderDao fDao = getBean(PrivateMessageFolderDao.class);
        fDao.addPrivateMessageFolder(getModelObject(), getUserId());
        foldersModel.setObject(fDao.get(0, Integer.MAX_VALUE));
        updateMoveModel();
        target.add(folders, moveDropDown);
      }
    };
    add(addFolder);
    add(new WebMarkupContainer("new").add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        newMessage.reset(true).open(target);
      }
    }).add(new JQueryBehavior(".email.new", "button")));
    folders.add(inbox.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(inbox, INBOX_FOLDER_ID, target);
      }
    }));
    folders.add(sent.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(sent, SENT_FOLDER_ID, target);
      }
    }));
    folders.add(trash.add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        selectFolder(trash, TRASH_FOLDER_ID, target);
      }
    }));
    folders.add(new WebMarkupContainer("newdir").add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        addFolder.open(target);
      }
    }).add(new JQueryBehavior(".email.newdir", "button")));
    add(folders.add(new ListView<PrivateMessageFolder>("folder", foldersModel) {
      private static final long serialVersionUID = 1L;
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.web.common.AddFolderDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.