@Override public void focusGained(FocusEvent e) { btnGrp.setSelected(btn2.getModel(), true); } });
@Override public void updateSymbol() { buttonGroup.setSelected(rdbtnEnvVar.getModel(), true); updateButtonState(true); }
@Override public void updateSymbol() { buttonGroup.setSelected(rdbtnMaths.getModel(), true); updateButtonState(true); }
@Override public void updateSymbol() { buttonGroup.setSelected(rdbtnFunction.getModel(), true); updateButtonState(true); }
@Override public void focusGained(FocusEvent e) { btnGrp.setSelected(btn3.getModel(), true); } });
public static void setType(final String type) { if (instance == null || instance.ic == null || type == null) return; final int index = Integer.parseInt(type) - 1; final int buttons = instance.dynRadioVector.size(); if (index < 0 || index >= buttons) return; final JRadioButton rbutton = instance.dynRadioVector.elementAt(index); instance.radioGrp.setSelected(rbutton.getModel(), true); instance.currentMarkerVector = instance.typeVector.get(index); instance.ic.setCurrentMarkerVector(instance.currentMarkerVector); }
@Override public void applyDataBinding() { if (serverAuthenticationMethodSsh != null) { $bindingSources.put("serverAuthenticationMethodSsh.getModel()", serverAuthenticationMethodSsh.getModel()); serverAuthenticationMethodSsh.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u0")); serverAuthenticationMethodSsh.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.vcs.VCSConfigUI.this, BINDING_SERVER_LOGIN_LABEL_ENABLED)); } }
@Override public void applyDataBinding() { if (serverAuthenticationMethodSsh != null) { $bindingSources.put("serverAuthenticationMethodSsh.getModel()", serverAuthenticationMethodSsh.getModel()); serverAuthenticationMethodSsh.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u1")); serverAuthenticationMethodSsh.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.vcs.VCSConfigUI.this, BINDING_SERVER_LOGIN_ENABLED)); } }
@Override public void applyDataBinding() { if (serverAuthenticationMethodSsh != null) { $bindingSources.put("serverAuthenticationMethodSsh.getModel()", serverAuthenticationMethodSsh.getModel()); serverAuthenticationMethodSsh.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u4")); serverAuthenticationMethodSsh.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.vcs.VCSConfigUI.this, BINDING_SERVER_PRIVATE_KEY_FILE_LABEL_ENABLED)); } }
@Override public void applyDataBinding() { if (serverAuthenticationMethodSsh != null) { $bindingSources.put("serverAuthenticationMethodSsh.getModel()", serverAuthenticationMethodSsh.getModel()); serverAuthenticationMethodSsh.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u2")); serverAuthenticationMethodSsh.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.vcs.VCSConfigUI.this, BINDING_SERVER_LOGIN_NO_PASS_PHRASE_LABEL_ENABLED)); } }
@Override public void applyDataBinding() { if (serverAuthenticationMethodSsh != null) { $bindingSources.put("serverAuthenticationMethodSsh.getModel()", serverAuthenticationMethodSsh.getModel()); serverAuthenticationMethodSsh.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u3")); serverAuthenticationMethodSsh.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.vcs.VCSConfigUI.this, BINDING_SERVER_NO_PASS_PHRASE_ENABLED)); } }
@Override public void applyDataBinding() { if (serverAuthenticationMethodSsh != null) { $bindingSources.put("serverAuthenticationMethodSsh.getModel()", serverAuthenticationMethodSsh.getModel()); serverAuthenticationMethodSsh.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u5")); serverAuthenticationMethodSsh.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.vcs.VCSConfigUI.this, BINDING_SERVER_PRIVATE_KEY_FILE_ENABLED)); } }
@Override public void applyDataBinding() { if (serverAuthenticationMethodSsh != null) { $bindingSources.put("serverAuthenticationMethodSsh.getModel()", serverAuthenticationMethodSsh.getModel()); serverAuthenticationMethodSsh.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u6")); serverAuthenticationMethodSsh.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.vcs.VCSConfigUI.this, BINDING_SERVER_PRIVATE_KEY_CHANGE_FILE_ENABLED)); } }
public VRadioButton(String aText, boolean aSelected) { super(aText, aSelected); oldValue = aSelected; super.getModel().addChangeListener((ChangeEvent e) -> { checkValueChanged(); }); }
public void setSelectedShape(int i) { buttonGroup.setSelected(shapeMap[i].getModel(), true); Enumeration elements = buttonGroup.getElements(); while(elements.hasMoreElements()) ((AbstractButton)elements.nextElement()).repaint(); }
public void setSelectedFilter(int i) { filterGroup.setSelected(filterMap[i].getModel(), true); Enumeration elements = filterGroup.getElements(); while(elements.hasMoreElements()) ((AbstractButton)elements.nextElement()).repaint(); }
public String getSelectedDeployment() { if (!hasDeployments()) return null; for (Enumeration e=deploymentsButtonGroup.getElements(); e.hasMoreElements();) { JRadioButton radio = (JRadioButton)e.nextElement(); if (radio.getModel() == deploymentsButtonGroup.getSelection()) { return radio.getText(); } } throw new IllegalStateException("No deployment selected"); } }
@Override public void applyDataBinding() { if (radioPopulationSeasonGroupChangeLengthNoSpacialized != null) { $bindingSources.put("radioPopulationSeasonGroupChangeLengthNoSpacialized.getModel()", radioPopulationSeasonGroupChangeLengthNoSpacialized.getModel()); radioPopulationSeasonGroupChangeLengthNoSpacialized.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u0")); radioPopulationSeasonGroupChangeLengthNoSpacialized.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(fr.ifremer.isisfish.ui.input.PopulationSeasonSpacializedUI.this, BINDING_BUTTON_POPULATION_SEASON_GROUP_CHANGE_LENGTH_BUTTON_SHOW_ENABLED)); } addPropertyChangeListener("populationSeasonInfo", this); }
public Object getValue() { Component[] c = getComponents(); // System.out.println("GetSelection is " + group.getSelection()); for (int i = 0; i < c.length; i++) { if (c[i] instanceof JRadioButton) { if (group.getSelection() == ((JRadioButton) c[i]).getModel()) { String result = ((JRadioButton) c[i]).getText(); return result; } } } return null; }
private void determineRadioButtons() { boolean isLocal = localOrRemoteGroup.isSelected(localRadioButton.getModel()); setEnabledLocal(isLocal); setEnabledRemote(!isLocal); }