Refine search
options.setProperty("silenceDuration", String.valueOf(silenceDuration)); int audioSourceIndex = cbAudioSource.getSelectedIndex(); int expertOutputIndex = cbExpertOutput.getSelectedIndex(); int speakerOutputIndex = cbSpeakerOutput.getSelectedIndex(); options.setProperty("redAlertMode", String.valueOf(redAlertMode)); options.setProperty("samplingRate", (String) cbSamplingRate.getSelectedItem()); options.setProperty("bitsPerSample", (String) cbBitsPerSample.getSelectedItem()); options.setProperty("monoStereo", (String) cbMonoStereo.getSelectedItem()); options.setProperty("expertBitsPerSample", (String) cbExpertBitsPerSample.getSelectedItem()); options.setProperty("expertMonoStereo", (String) cbExpertMonoStereo.getSelectedItem());
private void cbExpansionSetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbExpansionSetActionPerformed if (!cbExpansionSet.getSelectedItem().toString().contains(TEST_MULTI_SET)) { int index = cbExpansionSet.getSelectedIndex(); if (cbExpansionSet.getItemAt(0).contains(TEST_MULTI_SET)) { cbExpansionSet.removeItemAt(0); index--; } listCodeSelected.uncheckAll(); if (index > 0) { //ofset because all sets is removed from the list listCodeSelected.setChecked(index - 1, true); } } filterCards(); }//GEN-LAST:event_cbExpansionSetActionPerformed
@Override public Object getValue() { int selIdx = combo.getSelectedIndex(); if( selIdx==nullIndex && allowNull )return null; return combo.getSelectedItem(); }
private String getWhereCondition(String columnName, String value) { if (cbOperator.getSelectedIndex() > 0) { return " where " + columnName + " " + (String) cbOperator.getSelectedItem() + " " + value; } else { return ""; } }
@Override public void actionPerformed(java.awt.event.ActionEvent e) { String item = (String) siteSelect.getSelectedItem(); if (item != null && siteSelect.getSelectedIndex() > 0) { siteSelected(item); } } });
@Override public String getValue() { if (comboBox.getSelectedIndex() == 0) { return null; } return (String) comboBox.getSelectedItem(); }
public SharingPolicy getChosenPermission() { if (permissionBox.getSelectedIndex() < 0) return null; return permissionMap.get(permissionBox.getSelectedItem()); }
public Family getChosenFamily() { if (familyBox.getSelectedIndex() >= 0) return familyMap.get(familyBox.getSelectedItem()); return null; }
public Profile getChosenProfile() { if (profileBox.getSelectedIndex() < 0) return null; return profileMap.get(profileBox.getSelectedItem()); }
/** * Tells it to switch again to the current algorithm. Useful if the input has changed and information * needs to be rendered again. */ public void refreshAlgorithm() { Object cookie = algCookies.get(algBox.getSelectedIndex()); String name = (String)algBox.getSelectedItem(); performSetAlgorithm(name, cookie); }
@Override public void actionPerformed(ActionEvent e) { String item = (String) choiceList.getSelectedItem(); int index = choiceList.getSelectedIndex(); if (!item.equals(choiceList.getItemAt(index))) { choiceList.addItem(item); } choiceList.setSelectedItem(item); notifyChangeListeners(); } }
@Override public void actionPerformed(ActionEvent e) { if( e.getSource() == algBox ) { final Object cookie = algCookies.get(algBox.getSelectedIndex()); final String name = (String)algBox.getSelectedItem(); new Thread() { public void run() { performSetAlgorithm(name, cookie); } }.start(); } }
/** * Tells it to switch again to the current algorithm. Useful if the input has changed and information * needs to be rendered again. */ public void refreshAlgorithm() { Object cookie = algCookies.get(algBox.getSelectedIndex()); String name = (String)algBox.getSelectedItem(); performSetAlgorithm(name, cookie); }
@Override public void actionPerformed(ActionEvent e) { if( e.getSource() == algBox ) { final Object cookie = algCookies.get(algBox.getSelectedIndex()); final String name = (String)algBox.getSelectedItem(); new Thread() { public void run() { performSetAlgorithm(name, cookie); } }.start(); } }
private void saveMethod() { Integer selectedStatusCode = (Integer) (statusCodeComboBox.getSelectedIndex() == 0 ? null : statusCodeComboBox.getSelectedItem()); LogicalOperator selectedComposition = logicalOperatorComboBox.getSelectedItem().equals( FIELD_VALUE_AND_COMPOSITION) ? LogicalOperator.AND : LogicalOperator.OR; authorizationMethod = new BasicAuthorizationDetectionMethod(selectedStatusCode, headerPatternText.getText(), bodyPatternText.getText(), selectedComposition); }
@Override public void actionPerformed(ActionEvent e) { if (m_IgnoreChanges) return; if (m_ComboBoxMeasurements.getSelectedIndex() == -1) return; m_ModelMeasurement.setMeasurement((String) m_ComboBoxMeasurements.getSelectedItem()); } });
public Project getSelectedProject() { Object selectedItem = projectComboBox.getSelectedItem(); if (selectedItem instanceof ProjectCBItem) { noproject = false; return ((ProjectCBItem)selectedItem).getProject(); } // set noproject if NO_PROJECT is selected noproject = (projectComboBox.getSelectedIndex() == 0); return null; }
public void actionPerformed(ActionEvent e) { if (inTemplateChoice.getSelectedIndex() == 0) { return; } final SQLTemplate selectedItem = (SQLTemplate) inTemplateChoice.getSelectedItem(); inputTextArea.setText(selectedItem.getTemplate()); } });
public void actionPerformed(ActionEvent ae) { int i = yearChoice.getSelectedIndex(); if (i>=0) { yy = Integer.parseInt(yearChoice.getSelectedItem().toString()); // System.out.println("Year=" + yy); recompute(); } } });
@Override public void actionPerformed(ActionEvent e) { if (m_ComboBoxPanels.getSelectedIndex() == -1) return; AbstractSetupPanel panel = (AbstractSetupPanel) m_ComboBoxPanels.getSelectedItem(); switchTo(panel, null); } });