Package edu.stanford.bmir.protege.web.client.ui.ontology.classes

Examples of edu.stanford.bmir.protege.web.client.ui.ontology.classes.ClassTreePortlet


    protected ClassTreePortlet createSelectable() {
        Optional<Project> prj = ProjectManager.get().getProject(projectId);
        if(!prj.isPresent()) {
            throw new UnknownProjectException(projectId);
        }
        ClassTreePortlet treePortlet = new ClassTreePortlet(prj.get(), false, false, false, allowMultipleSelection, topClass);
        treePortlet.setDraggable(false);
        treePortlet.setClosable(false);
        treePortlet.setCollapsible(false);
        treePortlet.setHeight(300);
        treePortlet.setWidth(450);

        return treePortlet;
    }
View Full Code Here


    super(project);   
  }

 
  public Selectable createSelectable() {
    ClassTreePortlet classTreePortlet = new ClassTreePortlet(getProject());
    classTreePortlet.setHeight(250);
    classTreePortlet.setWidth(200);
    return classTreePortlet;
  }
View Full Code Here

        selectable = getSelectable();
    }

    public Selectable getSelectable() {
        if (selectable == null) {
            ClassTreePortlet selectableTree = new ClassTreePortlet(project, false, false, false, allowMultipleSelection, null);
            selectableTree.setDraggable(false);
            selectableTree.setClosable(false);
            selectableTree.setCollapsible(false);
            selectableTree.setHeight(300);
            selectableTree.setWidth(450);
            selectable = selectableTree;
        }
        return selectable;
    }
View Full Code Here

        return indPortlet;
    }

    protected ClassTreePortlet createClassTreePortlet(boolean allClasses) {
        EntityData topCls = allClasses ? null : UIUtil.getFirstItem(clses);
        ClassTreePortlet clsPortlet = new ClassTreePortlet(project, true, true, true, allowMultipleSelection, topCls == null null : topCls.getName());
        clsPortlet.setDraggable(false);
        clsPortlet.setClosable(false);
        clsPortlet.setCollapsible(false);
        clsPortlet.setHeight(390);
        clsPortlet.setWidth(375);
        return clsPortlet;
    }
View Full Code Here

    }


    public Selectable getSelectable() {
        if (selectable == null) {
            ClassTreePortlet selectableTree = new ClassTreePortlet(getProject(), false, false, false, true, topClass);
            selectableTree.setDraggable(false);
            selectableTree.setClosable(false);
            selectableTree.setCollapsible(false);
            selectableTree.setHeight(300);
            selectableTree.setWidth(450);
            selectable = selectableTree;
        }
        return selectable;
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.ontology.classes.ClassTreePortlet

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.