/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboAddToEnterpriseApplication() { if (_cboAddToEnterpriseApplication==null) { _cboAddToEnterpriseApplication = new JComboBoxOperator(this, 2); } return _cboAddToEnterpriseApplication; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboLocation() { if (_cboLocation==null) { Component comp = lblLocation().getLabelFor(); if (comp != null) { _cboLocation = new JComboBoxOperator((JComboBox) comp); } else { _cboLocation = new JComboBoxOperator(this); } } return _cboLocation; }
/** Returns operator for combo box Location: * @return JComboBoxOperator */ public JComboBoxOperator cboLocation() { if ( _cboLocation==null ) { _cboLocation = new JComboBoxOperator((JComboBox)lblLocation().getLabelFor()); } return _cboLocation; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboCleanProject() { if (_cboCleanProject==null) { if (lblCleanProject().getLabelFor()!=null) { _cboCleanProject = new JComboBoxOperator( (JComboBox) lblCleanProject().getLabelFor()); } else { _cboCleanProject = new JComboBoxOperator(this, 1); } } return _cboCleanProject; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboServer() { if (_cboServer==null) { JLabelOperator jlo =new JLabelOperator(this, "Server:"); _cboServer = new JComboBoxOperator((JComboBox)jlo.getLabelFor()); } return _cboServer; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboJavaEEVersion() { if (_cboJavaEEVersion==null) { JLabelOperator jlo =new JLabelOperator(this, "Java EE Version:"); _cboJavaEEVersion = new JComboBoxOperator((JComboBox)jlo.getLabelFor()); } return _cboJavaEEVersion; }
public ComboBoxOperator createOperatorByIndex(int index) { JComboBoxOperator jComboboxOperator = new JComboBoxOperator((ContainerOperator) Context.getContext(), index); return new ComboBoxOperator(jComboboxOperator); }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboSourceLevel() { if (_cboSourceLevel==null) { if (lblSourceLevel().getLabelFor()!=null) { _cboSourceLevel = new JComboBoxOperator( (JComboBox) lblSourceLevel().getLabelFor()); } else { _cboSourceLevel = new JComboBoxOperator(this); } } return _cboSourceLevel; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboRunProject() { if (_cboRunProject==null) { if (lblRunProject().getLabelFor()!=null) { _cboRunProject = new JComboBoxOperator( (JComboBox) lblRunProject().getLabelFor()); } else { _cboRunProject = new JComboBoxOperator(this, 3); } } return _cboRunProject; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboTestProject() { if (_cboTestProject==null) { if (lblTestProject().getLabelFor()!=null) { _cboTestProject = new JComboBoxOperator( (JComboBox) lblTestProject().getLabelFor()); } else { _cboTestProject = new JComboBoxOperator(this, 4); } } return _cboTestProject; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboBuildProject() { if (_cboBuildProject==null) { if (lblBuildProject().getLabelFor()!=null) { _cboBuildProject = new JComboBoxOperator( (JComboBox) lblBuildProject().getLabelFor()); } else { _cboBuildProject = new JComboBoxOperator(this); } } return _cboBuildProject; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboGenerateJavadoc() { if (_cboGenerateJavadoc==null) { if (lblGenerateJavadoc().getLabelFor()!=null) { _cboGenerateJavadoc = new JComboBoxOperator( (JComboBox) lblGenerateJavadoc().getLabelFor()); } else { _cboGenerateJavadoc = new JComboBoxOperator(this, 2); } } return _cboGenerateJavadoc; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboDeployProject() { if (_cboDeployProject==null) { if (lblDeployProject().getLabelFor()!=null) { _cboDeployProject = new JComboBoxOperator( (JComboBox) lblDeployProject().getLabelFor()); } else { _cboDeployProject = new JComboBoxOperator(this, 5); } } return _cboDeployProject; }
/** Tries to find null JComboBox in this dialog. * @return JComboBoxOperator */ public JComboBoxOperator cboJ2EESpecificationLevel() { if (_cboJ2EESpecificationLevel==null) { if (lblJ2EESpecificationLevel().getLabelFor()!=null) { _cboJ2EESpecificationLevel = new JComboBoxOperator( (JComboBox) lblJ2EESpecificationLevel().getLabelFor()); } else { _cboJ2EESpecificationLevel = new JComboBoxOperator(this); } } return _cboJ2EESpecificationLevel; }
private JComboBoxOperator createOperator(String identifier) { return new JComboBoxOperator((ContainerOperator) Context.getContext(), new ByNameOrTextComponentChooser(identifier)); } }
public ComboBoxOperator createOperatorByName(String name) { JComboBoxOperator jComboboxOperator = new JComboBoxOperator((ContainerOperator) Context.getContext(), new ByNameComponentChooser(name)); return new ComboBoxOperator(jComboboxOperator); } }
/** Returns the Ruby Platform combobox * @return JComboBoxOperator */ public JComboBoxOperator cboRubyPlatform() { if(_cboRubyPlatform == null) { if ( lblRubyPlatform().getLabelFor()!=null ) { _cboRubyPlatform = new JComboBoxOperator((JComboBox)lblRubyPlatform().getLabelFor()); } } return _cboRubyPlatform; }
if (isCombo) { paramTable.clickOnCell(row, column); JComboBoxOperator combo = new JComboBoxOperator(paramTable); combo.setEnabled(true); combo.selectItem(value);
@Test @SuppressWarnings("ResultOfObjectAllocationIgnored") public void testExtraDataUI() { final JComponent ui = new KeyStrengthPanel<AesKeyStrength>(AesKeyStrength.values()); panel.setExtraDataUI(ui); frame.pack(); assertSame(ui, panel.getExtraDataUI()); new JComboBoxOperator(frame); // find combo box } }
/** * Resolve missing server. This method should be called after opening some project. * If the Missing server dialog appears, it's closed and first server from * project properties is used to resolve the missing server problem. * * @param projectName name of project */ protected void resolveServer(String projectName) { waitScanFinished(); String openProjectTitle = Bundle.getString("org.netbeans.modules.j2ee.common.ui.Bundle", "MSG_Broken_Server_Title"); if (JDialogOperator.findJDialog(openProjectTitle, true, true) != null) { new NbDialogOperator(openProjectTitle).close(); LOG.info("Resolving server"); // open project properties ProjectsTabOperator.invoke().getProjectRootNode(projectName).properties(); // "Project Properties" String projectPropertiesTitle = Bundle.getStringTrimmed("org.netbeans.modules.web.project.ui.customizer.Bundle", "LBL_Customizer_Title"); NbDialogOperator propertiesDialogOper = new NbDialogOperator(projectPropertiesTitle); // select "Run" category new Node(new JTreeOperator(propertiesDialogOper), "Run").select(); // set default server new JComboBoxOperator(propertiesDialogOper).setSelectedIndex(0); propertiesDialogOper.ok(); // if setting default server, it scans server jars; otherwise it continues immediatelly waitScanFinished(); } }