Examples of indexOfComponent()


Examples of javax.swing.JTabbedPane.indexOfComponent()

      return ((RadioList)comp).getCaption();
    }
    JPanel panel = (JPanel)comp;
    if (panel.getParent() instanceof JTabbedPane) {
      JTabbedPane tp = (JTabbedPane)panel.getParent();
      int index = tp.indexOfComponent(panel);
      return index >=  0 ? new TextData(tp.getTitleAt(index)) : new TextData("");
    }
    else {
      Border border =  panel.getBorder();
      if (border instanceof TitledBorder) {
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

         * TabFolder
         */
        if (comp instanceof JTabbedPane) {
          JTabbedPane tp = (JTabbedPane)comp;
          // NB: Do not use getSelectedIndex() because the index has already changed at this point
          int index = tp.indexOfComponent(oldComp);
          s.push(new TabFocus(tp, index));
        }
        /*
         * TextField
         */
 
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

    protected void updateTab(Dockable dockable) {
        Component docked = getDockedComponent();
        if (docked instanceof JTabbedPane) {
            JTabbedPane tabs = (JTabbedPane) docked;
            int index = tabs.indexOfComponent(dockable.getComponent());
            if (index > -1) {
                tabs.setIconAt(index, dockable.getDockingProperties()
                               .getTabIcon());
                tabs.setTitleAt(index, dockable.getDockingProperties()
                                .getDockableDesc());
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

        }

        // if we're in a hidden tab, then bring the tab to the front
        if(parentComp.getParent() instanceof JTabbedPane) {
            JTabbedPane tabPane = (JTabbedPane)parentComp.getParent();
            int indx = tabPane.indexOfComponent(parentComp);
            if(indx!=tabPane.getSelectedIndex())
                tabPane.setSelectedIndex(indx);
        }
    }
View Full Code Here

Examples of javax.swing.JTabbedPane.indexOfComponent()

      ((Window) parent).dispose();
    else if (parent instanceof JInternalFrame) {
      ((JInternalFrame) parent).dispose();
    } else if (parent instanceof JTabbedPane) {
      JTabbedPane pane = (JTabbedPane) parent;
      pane.remove(pane.indexOfComponent(this));
    }
  }

  private void packForm() {
    Component parent = getParentWindow();
View Full Code Here

Examples of org.cytoscape.application.swing.CytoPanel.indexOfComponent()

        mainPanel = this.mcodeUtil.getMainPanel();
      }

      if (mainPanel != null) {
        CytoPanel cytoPanel = this.mcodeUtil.getControlCytoPanel();
        int index = cytoPanel.indexOfComponent(mainPanel);
        cytoPanel.setSelectedIndex(index);
      }
    }
  }
View Full Code Here

Examples of org.cytoscape.application.swing.CytoPanel.indexOfComponent()

                  }
                }

                CytoPanel cytoPanel = AnalyzeAction.this.swingApplication.getCytoPanel(CytoPanelName.EAST);

                if ((resultFound) || ((AnalyzeAction.this.analyze == 3) && (cytoPanel.indexOfComponent(resultsPanel) >= 0)))
                {
                  int index = cytoPanel.indexOfComponent(resultsPanel);
                  cytoPanel.setSelectedIndex(index);

                  if (cytoPanel.getState() == CytoPanelState.HIDE) cytoPanel.setState(CytoPanelState.DOCK);
View Full Code Here

Examples of org.cytoscape.application.swing.CytoPanel.indexOfComponent()

                CytoPanel cytoPanel = AnalyzeAction.this.swingApplication.getCytoPanel(CytoPanelName.EAST);

                if ((resultFound) || ((AnalyzeAction.this.analyze == 3) && (cytoPanel.indexOfComponent(resultsPanel) >= 0)))
                {
                  int index = cytoPanel.indexOfComponent(resultsPanel);
                  cytoPanel.setSelectedIndex(index);

                  if (cytoPanel.getState() == CytoPanelState.HIDE) cytoPanel.setState(CytoPanelState.DOCK);
                }
              }
View Full Code Here

Examples of org.cytoscape.application.swing.CytoPanel.indexOfComponent()

                curParaSet=(ParameterSet)it.next();
                if(checkEqual(curParams,curParaSet)){  //exists
                 
                  CytoPanel panel = swingApplication.getCytoPanel(CytoPanelName.WEST.EAST);
                  //CytoPanel panel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
                  resultIndex=panel.indexOfComponent(resultPanel);
//                 analyze=EXISTS;
//                   interruptedMessage="The result exits";
                    break;
                }
              }
View Full Code Here

Examples of org.springframework.richclient.components.MessagableTabbedPane.indexOfComponent()

            while (overlayCapableParent != null && !(overlayCapableParent instanceof JRootPane))
            {
                if (overlayCapableParent instanceof MessagableTabbedPane)
                {
                    tabbedPane = (MessagableTabbedPane) overlayCapableParent;
                    int tabIndex = tabbedPane.indexOfComponent(overlayChild);
                    ((MayHaveMessagableTab) overlay).setMessagableTab(tabbedPane, tabIndex);
                }

                overlayChild = overlayCapableParent;
                overlayCapableParent = overlayCapableParent.getParent();
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.