Package com.intellij.openapi.ui

Examples of com.intellij.openapi.ui.ComboBox


  private void createUIComponents()
  {
    referentialForm = new ReferentialTabbedPane(project);
    fileScopeForm = new FileScopeForm(project);
    cbStatus = new ComboBox(ReviewStatus.values(), -1);
  }
View Full Code Here


                            GridConstraints.ANCHOR_WEST,
                            GridConstraints.FILL_NONE,
                            GridConstraints.SIZEPOLICY_FIXED,
                            GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));

            JComboBox comboBox = new ComboBox(option.getPresets().toArray(), -1);

            settingsPanel.add(comboBox,
                    new GridConstraints(i, 1, 1, 1,
                            GridConstraints.ANCHOR_WEST,
                            GridConstraints.FILL_HORIZONTAL,
View Full Code Here

  private void createUIComponents()
  {
    referentialForm = new ReferentialTabbedPane(project);
    fileScopeForm = new FileScopeForm(project);
    cbStatus = new ComboBox(ReviewStatus.values(), -1);
  }
View Full Code Here

  @Override
  protected JComponent createEditor() {

    myExecutablePathField = PhoneGapUtil.createPhoneGapExecutableTextField(myProject);
    myWorkDirField = PhoneGapUtil.createPhoneGapWorkingDirectoryField(myProject);
    myPlatformField = new ComboBox();
    myCommand = new ComboBox();
    myHasTarget = new JBCheckBox("Specify target");
    myTarget = new TextFieldWithHistory();
    myExtraArgsTextField = new JBTextField(15);
    myCommand.setMinimumAndPreferredWidth(200);
    myPlatformField.setMinimumAndPreferredWidth(200);
View Full Code Here

  private boolean myTrackChanges = true;

  public JstdServerSettingsTab(@NotNull Disposable parentDisposable) {
    myPortField = new PortField();
    myBrowserTimeoutSpinner = createBrowserTimeoutSpinner();
    myRunnerModeComboBox = new ComboBox(JstdServerSettings.RunnerMode.values());
    JPanel form = FormBuilder.createFormBuilder()
      .setAlignLabelOnRight(true)
      .addLabeledComponent("&Port:", myPortField)
      .addLabeledComponent("&Browser timeout:", addMillisDescription(myBrowserTimeoutSpinner))
      .addLabeledComponent("&Runner mode:", myRunnerModeComboBox)
View Full Code Here

      return map;
    }

    @NotNull
    private JComboBox createTestTypeComboBox(@NotNull List<TestTypeListItem> testTypeListItems) {
      JComboBox comboBox = new ComboBox(testTypeListItems.toArray());
      comboBox.setRenderer(new ListCellRendererWrapper<TestTypeListItem>() {
        @Override
        public void customize(JList list, TestTypeListItem value, int index, boolean selected, boolean hasFocus) {
          setText(value.getDisplayName());
        }
      });
      comboBox.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
          selectTestType(getSelectedTestType());
        }
      });
View Full Code Here

    }

    @Override
    public JComponent createComponent() {
        myPanel = new JPanel(new GridBagLayout());
        myComboBox = new ComboBox(new String[] {"only impacting paths", "include all current branches", "include all current branches and tags"});
        myPanel.add(new JLabel("Scan mode:   "), new GridBagConstraints(0,0,1,1,0,0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
        myPanel.add(myComboBox, new GridBagConstraints(1,0,1,1,1,0,GridBagConstraints.EAST,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
        myPanel.add(new JPanel(), new GridBagConstraints(0,1,2,1,1,1,GridBagConstraints.SOUTH,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));
        return myPanel;
    }
View Full Code Here

    public SelectAccount(@Nullable Project project, String[] accounts) {
        super(project);
        setTitle("Select a Floobits Account");
        contentPanel = new JPanel();
        cccccomboBox = new ComboBox(new DefaultComboBoxModel(accounts));
        if (accounts.length > 0) {
            cccccomboBox.setSelectedIndex(0);
        }
        contentPanel.add(cccccomboBox);
        JLabel label = new JLabel("Select Account");
View Full Code Here

        this.runLater = runLater;
        init();
        this.setTitle("Select Workspace Owner");

        Object[] organizations = title.toArray();
        orgList = new ComboBox(organizations, 200);
        if (organizations.length > 0) {
            orgList.setSelectedIndex(0);
        }
        JLabel jLabel = new JLabel();
        jLabel.setText("Select the owner for the workspace:");
View Full Code Here

        @Nullable
        @Override
        public TableCellEditor getEditor(MethodParameter.MethodModelParameter modelParameter) {

            Set<String> sorted = modelParameter.getPossibleServices();
            ComboBox comboBox = new ComboBox(sorted.toArray(new String[sorted.size()] ), 200);
            comboBox.setEditable(true);

            return new DefaultCellEditor(comboBox);
        }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.ui.ComboBox

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.