public void setConfigurationLocations(final List<ConfigurationLocation> locations) { this.configurationLocations = locations; configurationFilesModel.removeAllElements(); if (locations != null && !locations.isEmpty()) { locations.forEach(configurationFilesModel::addElement); configurationFilesModel.setSelectedItem(locations.get(0)); } useModuleConfigurationRadio.setEnabled(locations != null && !locations.isEmpty()); }
/** * Set the configuration location. * * @param configurationLocation the location. */ public void setConfigurationLocation(final ConfigurationLocation configurationLocation) { relativeFileCheckbox.setSelected(false); insecureHttpCheckbox.setSelected(false); if (configurationLocation == null) { fileLocationRadio.setEnabled(true); fileLocationField.setText(null); } else if (configurationLocation.getType() == LOCAL_FILE || configurationLocation.getType() == PROJECT_RELATIVE) { fileLocationRadio.setEnabled(true); fileLocationField.setText(configurationLocation.getLocation()); relativeFileCheckbox.setSelected(configurationLocation.getType() == PROJECT_RELATIVE); } else if (configurationLocation.getType() == HTTP_URL || configurationLocation.getType() == INSECURE_HTTP_URL) { urlLocationRadio.setEnabled(true); urlLocationField.setText(configurationLocation.getLocation()); insecureHttpCheckbox.setSelected(configurationLocation.getType() == INSECURE_HTTP_URL); } else if (configurationLocation.getType() == PLUGIN_CLASSPATH) { classpathLocationField.setEnabled(true); classpathLocationField.setText(configurationLocation.getLocation()); } else { throw new IllegalArgumentException("Unsupported configuration type: " + configurationLocation.getType()); } }
private void setKindEnabled(boolean isEnabled) { kindLabel.setEnabled(isEnabled); defaultRadioButton.setEnabled(isEnabled); staticRadioButton.setEnabled(isEnabled); inputRadioButton.setEnabled(isEnabled); customRadioButton.setEnabled(isEnabled); }
@Override public void setDescriptionEnabled(boolean enabled) { // sysCallLabel.setEnabled(false); sysCallCombo.setEnabled(false); entranceToggle.setEnabled(false); exitToggle.setEnabled(false); }
private void updateProbeMappingOptions(boolean isSelected) { probeMappingFileTextField.setEnabled(isSelected); probeMappingBrowseButton.setEnabled(isSelected); expMapToGeneCB.setEnabled(!isSelected); expMapToLociCB.setEnabled(!isSelected); }
private void setFormEnabled( boolean enabled ) { methodFileRadio.setEnabled( enabled ); methodDNSRadio.setEnabled( enabled ); methodManualRadio.setEnabled( enabled ); realmField.setEnabled( enabled ); kdcField.setEnabled( enabled ); useSaslGssapiSmack3compatBox.setEnabled( enabled ); }
protected void processValueUri(String uriString) { delayedFileToAdd = null; delayedSetLastDirectoryUsed = null; linkButton.setSelected(true); linkButton.setEnabled(true); copyButton.setEnabled(false); propertyValue = uriString.replace('\\','/'); }
private void enableLabelCreationPanel(boolean b) { annotationSelectButton.setEnabled(b); annotationLangSelector.setEnabled(b); customLabelButton.setEnabled(b); sameAsRendererLabelButton.setEnabled(b); annotationIriLabel.setEnabled(b); }
@Override public void actionPerformed(ActionEvent e) { final boolean manualMode = ! sendLive.isSelected(); sendNow.setEnabled(manualMode); fullLabel.setEnabled(manualMode); ignoreIncoming.setEnabled(manualMode); dropOldest.setEnabled(manualMode); } });
private void enableLabelCreationPanel(boolean b) { annotationSelectButton.setEnabled(b); annotationLangSelector.setEnabled(b); customLabelButton.setEnabled(b); sameAsRendererLabelButton.setEnabled(b); annotationURILabel.setEnabled(b); }
private void enableLabelCreationPanel(boolean b) { annotationSelectButton.setEnabled(b); annotationLangSelector.setEnabled(b); customLabelButton.setEnabled(b); sameAsRendererLabelButton.setEnabled(b); annotationIriLabel.setEnabled(b); }
private void condionallyEnabledActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_condionallyEnabledActionPerformed boolean enabled = condionallyEnabled.isSelected(); cookieClass.setEnabled(enabled); cookieClassTxt.setEnabled(enabled); modeOne.setEnabled(enabled); modeMultiple.setEnabled(enabled); }//GEN-LAST:event_condionallyEnabledActionPerformed
private void toggledSubversion(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_toggledSubversion // Enable/disable other fields boolean enabled = subversionToggle.isSelected(); revisionCheckBox.setEnabled(enabled); revisionField.setEnabled(enabled); externalsRadio.setEnabled(enabled); checkoutRadio.setEnabled(enabled); }//GEN-LAST:event_toggledSubversion
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == tabularPresentationRadioButton) { internalDiffWindowRadioButton.setEnabled(false); externalDiffToolRadionButton.setEnabled(false); externalDiffToolCommandLabel.setEnabled(false); externalDiffToolCommandTextField.setEnabled(false); } }
private void listRadioButtonActionPerformed(java.awt.event.ActionEvent evt) { if (listRadioButton.isSelected()) { if (otherRadioButton.isSelected()) { otherTextField.setEnabled(true); } else { listDelimiterComboBox.setEnabled(true); listTypeComboBox.setEnabled(true); } listDelimiterRadioButton.setEnabled(true); otherRadioButton.setEnabled(true); } }
public void setTestCase(TestCaseEdit test) { this.test = test; // choose default format rbXML.setEnabled(true); rbXML.doClick(); }
@Override public void setChangeable (boolean changeable) { if (isHonourChangeable()) { this.changeable = changeable; super.setEnabled(changeable && allChangeable); } }
private void pluginListValueChanged(javax.swing.event.ListSelectionEvent evt) { if (pluginList.getSelectedIndex() < 0) { // nothing selected, use the top license pluginList.setSelectedIndex(0); } DownloadableInfo infoObj = (DownloadableInfo) pluginList.getSelectedValue(); setLicenseText(infoObj.getLicenseText()); acceptRadio.setEnabled(true); declineRadio.setEnabled(true); }
private void load() { if (scm.getConnection() != null) { defaultConnection.setSelected(true); txtUrl.setText(scm.getConnection()); } else { defaultConnection.setEnabled(false); } if (scm.getDeveloperConnection() != null) { } else { developerConnection.setEnabled(false); } }
private void updateOrcidRadioButton() { Preferences orcidPreferences = UserPreferences.get(); OrcidPreferencesManager orcidPreferencesManager = new OrcidPreferencesManager(orcidPreferences); boolean orcidPresent = orcidPreferencesManager.getOrcid().isPresent(); useOrcid.setEnabled(orcidPresent); }