Package edu.stanford.bmir.protege.web.client.rpc.data.layout

Examples of edu.stanford.bmir.protege.web.client.rpc.data.layout.PortletConfiguration


    return cld;
  }
 
  public PortletConfiguration createPortletConfiguration(EntityPortlet portlet) {
    if (portlet == null) { return null; }
    PortletConfiguration portletConfiguration = new PortletConfiguration();
    portletConfiguration.setName(portlet.getClass().getName());
    portletConfiguration.setHeight(((Portlet)portlet).getHeight());
    portletConfiguration.setWidth(((Portlet)portlet).getWidth());
    return portletConfiguration;
  }
View Full Code Here


            OntologyServiceManager.getInstance().getRootEntity(getProjectId(), new GetRootClassHandler());
        }
    }

    protected String getRootClsName() {
        final PortletConfiguration portletConfiguration = getPortletConfiguration();
        if (portletConfiguration == null) {
            return topClass;
        }
        final Map<String, Object> props = portletConfiguration.getProperties();
        if (props == null) {
            return topClass;
        }
        // TODO: move from here
        final String title = (String) props.get("label");
View Full Code Here

        initConfiguration();
        refreshContent();
    }

    private void initConfiguration() {
        PortletConfiguration config = getPortletConfiguration();
        if (config == null) {
            return;
        }
        Map<String, Object> properties = config.getProperties();
        if (properties == null) {
            return;
        }

        title = (String) properties.get("label");
View Full Code Here

        final TabColumnConfiguration col = getTabColumnConfigurationAt(column);
        if (col == null) {
            GWT.log("Column does not exist: " + column, null);
            return;
        }
        final PortletConfiguration portletConfiguration = ((AbstractEntityPortlet) portlet).getPortletConfiguration();
        addPortletToColumn(portlet, col, portletConfiguration == null ? project.getLayoutManager().createPortletConfiguration(portlet) : portletConfiguration, true);
    }
View Full Code Here

                if (comps[i].equals(portlet)) {
                    if (portlets.size() > i) { // TODO: check should not be
                        // needed, but it seems that
                        // portlets are destroyed several
                        // times
                        final PortletConfiguration portletConfig = portlets.get(i);
                        if (portletConfig.getName().equals(portlet.getClass().getName())) {
                            portlets.remove(portletConfig);
                        }
                    }
                }
            }
View Full Code Here

    private void adjustPortletsIndex(TabColumnConfiguration tabColumnConfiguration){
        List<PortletConfiguration> portlets = tabColumnConfiguration.getPortlets();
        int portletsCount = portlets.size();
        for (int i=0; i < portletsCount; i++)  {
            PortletConfiguration pc = portlets.get(i);
            pc.setIndex(String.valueOf(portletsCount - i - 1));
        }
    }
View Full Code Here

        return portlet;
    }

    protected void setupControllingPortlet() {
        final PortletConfiguration portletConfiguration = tabConfiguration.getControllingPortlet();
        if (portletConfiguration == null) {
            setControllingPortlet(getDefaultControllingPortlet());
        } else {
            setControllingPortlet(getPortletByClassName(portletConfiguration.getName()));
        }
    }
View Full Code Here

        buildUI();
    }


    private String getRootClsName() {
        PortletConfiguration portletConfiguration = getPortletConfiguration();
        if (portletConfiguration == null) {
            return topClass;
        }
        Map<String, Object> props = portletConfiguration.getProperties();
        if (props == null) {
            return topClass;
        }
        if (topClass == null) {
            topClass = (String) props.get(TOP_CLASS_PROP);
View Full Code Here

            presenter.setType(preconfiguredClass.get());
        }
    }

    private void initConfiguration() {
        PortletConfiguration config = getPortletConfiguration();
        if (config == null) {
            return;
        }
        Map<String, Object> properties = config.getProperties();
        if (properties == null) {
            return;
        }
        final String preconfiguredClassName = (String) properties.get(PRECONFIGURED_CLASS);
        if (preconfiguredClassName != null) {
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.rpc.data.layout.PortletConfiguration

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.