Examples of AbstractTab


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

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

                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

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

        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

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

        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

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

            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

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

  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

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

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

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

    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

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

        parentsPanel.setClsEntity(getEntity());
    }

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

Examples of org.apache.wicket.extensions.markup.html.tabs.AbstractTab

            List<ITab> tabs = new ArrayList<ITab>();

            for (final SchemaType schemaType : SchemaType.values()) {
                final String schemaTypeAsString = schemaType.name().toLowerCase();

                tabs.add(new AbstractTab(new Model<String>(getString(schemaTypeAsString))) {

                    private static final long serialVersionUID = -5861786415855103549L;

                    @Override
                    public WebMarkupContainer getPanel(final String panelId) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.