Search in sources :

Example 1 with FileTreePanel

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();
}
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

RecordingContainerData (org.apache.openmeetings.db.dto.record.RecordingContainerData)1 BaseFileItem (org.apache.openmeetings.db.entity.file.BaseFileItem)1 NameDialog (org.apache.openmeetings.web.common.NameDialog)1 FileTreePanel (org.apache.openmeetings.web.common.tree.FileTreePanel)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1