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

Examples of edu.stanford.bmir.protege.web.client.ui.tab.AbstractTab


        addPortletButton.setIcon("images/portlet_add.gif");
        return addPortletButton;
    }

    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


                public void onSuccess() {
                    EntityPortlet portlet = UIFactory.createPortlet(getProject(), javaClassName);
                    if (portlet == null) {
                        return;
                    }
                    AbstractTab activeTab = getActiveOntologyTab();
                    activeTab.addPortlet(portlet, activeTab.getColumnCount() - 1);
                    doLayout();
                }
            });

    }
View Full Code Here

        window.add(new CreateUserDefinedTabForm(window));
        window.show();
    }

    protected void onTabRemoved(String javaClassName) {
        AbstractTab tab = getTabByClassName(javaClassName);
        if (tab == null) {
            return;
        }
        getProject().getLayoutManager().removeTab(tab);
        tabs.remove(tab);
        hideTabStripItem(tab);
        remove(tab);
        tab.hide();
        doLayout();
    }
View Full Code Here

        tab.hide();
        doLayout();
    }

    protected void onTabAdded(String javaClassName) {
        AbstractTab tab = getProject().getLayoutManager().addTab(javaClassName);
        if (tab == null) {
            return;
        }
        addTab(tab);
        // doLayout();
View Full Code Here

            showColFields();

            Button createButton = new Button("Create", new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    AbstractTab tab = createTab();
                    addTab(tab);
                    CreateUserDefinedTabForm.this.parent.close();
                    activate(tab.getId());
                }
            });

            addButton(createButton);
        }
View Full Code Here

  public List<AbstractTab> createTabs(ProjectLayoutConfiguration projectLayoutConfig) {
    List<AbstractTab> tabs = new ArrayList<AbstractTab>();
    List<TabConfiguration> tabConfigs = projectLayoutConfig.getTabs();
    for (TabConfiguration tabConfig : tabConfigs) {
      String tabName = tabConfig.getName();
      AbstractTab tab = createTab(tabName);
      if (tab != null) {
        setupTab(tab, tabConfig);
        tabs.add(tab);
      }
    }
View Full Code Here

    }
    return tabs;
  }
 
  public AbstractTab createTab(String javaClassName) {
    AbstractTab tab = UIFactory.createTab(project, javaClassName);
    return tab;
  }
View Full Code Here

    if (tabConfig == null) { return; }
    project.getProjectLayoutConfiguration().removeTab(tabConfig);
  }
 
  public AbstractTab addTab(String javaClassName) {
    AbstractTab tab = createTab(javaClassName);
    if (tab == null) { return null; }
    setupTab(tab, tab.getDefaultTabConfiguration());
    project.getProjectLayoutConfiguration().addTab(tab.getTabConfiguration());
    return tab;
  }
View Full Code Here

        parentsPanel.setClsEntity(getEntity());
    }

    @Override
    public void setSelection(Collection<EntityData> newSelection) {
        AbstractTab containerTab = getTab();
        if (containerTab != null) {
            containerTab.setSelection(newSelection);
        }
    }
View Full Code Here

                if (isControllingPortletCheckbox.getValue()) { //true - is checked
                    setAsControllingPortlet();
                }
                else {
                    if (isControllingPortlet()) {
                        AbstractTab tab = getTab();
                        if (tab == null) {
                            return;
                        }
                        tab.setControllingPortlet(null);
                    }
                }
            }

            @Override
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.tab.AbstractTab

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.