Examples of indexOfComponent()


Examples of com.jidesoft.swing.JideTabbedPane.indexOfComponent()

            Component child = e.getChild();
            if (child instanceof UIResource || child == tp.getTabLeadingComponent() || child == tp.getTabTrailingComponent()) {
                return;
            }

            int index = tp.indexOfComponent(child);
            String title = getCurrentDisplayTitleAt(tp, index);
            boolean isHTML = BasicHTML.isHTMLString(title);
            if (isHTML) {
                if (htmlViews == null) { // Initialize vector
                    htmlViews = createHTMLVector();
View Full Code Here

Examples of cytoscape.view.cytopanels.CytoPanel.indexOfComponent()

    return textPane;
  }
 
    public void activate(){
    CytoPanel cytoPanel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
    int index = cytoPanel.indexOfComponent(CySBML.NAME);
    if (index == -1){
      cytoPanel.add(CySBML.NAME, this);
      cytoPanel.setState(CytoPanelState.DOCK);
    }
    selectNavigationPanel();
View Full Code Here

Examples of cytoscape.view.cytopanels.CytoPanel.indexOfComponent()

    active = true;
  }
 
  public void deactivate(){
    CytoPanel cytoPanel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
    int index = cytoPanel.indexOfComponent(CySBML.NAME);
    if (index != -1){
      cytoPanel.remove(index);
    }
    // Test if still other Components, otherwise hide
    if (cytoPanel.getCytoPanelComponentCount() == 0){
View Full Code Here

Examples of cytoscape.view.cytopanels.CytoPanel.indexOfComponent()

    return active;
  }
 
  public static void selectNavigationPanel(){
    CytoPanel cytoPanel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
    cytoPanel.setSelectedIndex(cytoPanel.indexOfComponent(CySBML.NAME));
  }

  public void setText(String text){
    textPane.setText(text);
  }
View Full Code Here

Examples of ec.display.StatisticsChartPane.indexOfComponent()

      final StatisticsChartPaneTab pane = this;
      closeButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          StatisticsChartPane parent = (StatisticsChartPane) pane
              .getParent();
          parent.removeTabAt(parent.indexOfComponent(pane));
        }
      });
    }
    return closeButton;
  }
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

    public static void setComponentTabIcon(Component component, Icon icon) {
        Component parent = component.getParent();
        while (parent != null) {
            if (parent instanceof JTabbedPane) {
                JTabbedPane tabbedPane = (JTabbedPane) parent;
                int index = tabbedPane.indexOfComponent(component);
                tabbedPane.setIconAt(index, icon);
                break;
            }
            component = parent;
            parent = parent.getParent();
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

    if (addMethodName.equals("addTab")) {
      JTabbedPane jtp = (JTabbedPane) adaptable.getWidget();
      List arguments = mi.arguments();
      if (arguments.size() > 2) {
        Component child = getTabComponent(mi, arguments);
        int index = jtp.indexOfComponent(child);
        if (index != -1) {
          Icon icon = jtp.getIconAt(index);
          if (icon != null) {
            Expression exp = (Expression) arguments.get(1);
            icon = parseIcon(icon, exp);
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

  }

  @Override
  public int getIndexOfChild(Component child) {
    JTabbedPane tp = (JTabbedPane) getWidget();
    return tp.indexOfComponent(child);
  }

  @Override
  public boolean isChildVisible(Component child) {
    JTabbedPane tp = (JTabbedPane) getWidget();
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

  }

  @Override
  public Object getChildConstraints(Component child) {
    JTabbedPane jtp = (JTabbedPane) getWidget();
    int index = jtp.indexOfComponent(child);
    if (index != -1)
      return jtp.getTitleAt(index);
    else
      return null;
  }
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

    }
 
    @Override
    public void run() {
      JTabbedPane jtp=(JTabbedPane) adaptable.getWidget();
      int index = jtp.indexOfComponent(child);
      if(index!=-1){
        TabPropertiesDialog tpd = new TabPropertiesDialog(JavaUtil.getEclipseShell());
        tpd.setTitle(jtp.getTitleAt(index));
        tpd.setTooltip(jtp.getToolTipTextAt(index));
        Icon icon = jtp.getIconAt(index);
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.