Package edu.stanford.bmir.protege.web.client.ui.portlet

Examples of edu.stanford.bmir.protege.web.client.ui.portlet.EntityPortlet


    protected void onPortletRemoved(String javaClassName) {
        AbstractTab activeTab = getActiveOntologyTab();
        List<EntityPortlet> comps = activeTab.getPortlets();
        for (EntityPortlet entityPortlet2 : comps) {
            EntityPortlet entityPortlet = entityPortlet2;
            if (entityPortlet.getClass().getName().equals(javaClassName)) {
                ((Portlet) entityPortlet).setVisible(false);
                ((Portlet) entityPortlet).destroy();
            }
        }
    }
View Full Code Here


                    GWT.log("There was a problem adding the portlet", reason);
                }

                @Override
                public void onSuccess() {
                    EntityPortlet portlet = UIFactory.createPortlet(getProject(), javaClassName);
                    if (portlet == null) {
                        return;
                    }
                    AbstractTab activeTab = getActiveOntologyTab();
                    activeTab.addPortlet(portlet, activeTab.getColumnCount() - 1);
View Full Code Here

    }

    protected void addPortletToColumn(final TabColumnConfiguration tabColumnConfiguration,
                                      final PortletConfiguration portletConfiguration, final boolean updateColConfig) {
        // configuration
        final EntityPortlet portlet = createPortlet(portletConfiguration);
        if (portlet == null) {
            return;
        }
        addPortletToColumn(portlet, tabColumnConfiguration, portletConfiguration, updateColConfig);
    }
View Full Code Here

        }
    }

    protected EntityPortlet createPortlet(final PortletConfiguration portletConfiguration) {
        final String portletClassName = portletConfiguration.getName();
        final EntityPortlet portlet = UIFactory.createPortlet(project, portletClassName);
        if (portlet == null) {
            return null;
        }
        final int height = portletConfiguration.getHeight();
        if (height == 0) {
View Full Code Here

  @Override
  public void setup() { 
    super.setup();
    TabConfiguration tabConfiguration = getTabConfiguration();
    if (tabConfiguration == null) { return; }
    EntityPortlet controllingPortlet = getControllingPortlet();
    if (controllingPortlet == null) { //TODO: just a fix until we can set from the UI the controlling portlet
      try {
        String firstPortlet = tabConfiguration.getColumns().iterator().next().getPortlets().iterator().next().getName();
        setControllingPortlet(getPortletByClassName(firstPortlet));
      } catch (Exception e) { } //FIXME
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.portlet.EntityPortlet

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.