@Test public void testSetText() { @SuppressWarnings({ "rawtypes", "unchecked" }) Tester<Integer> t = new Tester(INTEGER_CHOICES, Integer.class); for (int i = 0; i < 3; i++) { Assert.assertEquals(t.getButton(INTEGER_CHOICES[i]).getText(), INTEGER_CHOICES[i].toString()); } for (int i = 0; i < 3; i++) { t.setText(INTEGER_CHOICES[i], STRING_CHOICES[i]); } for (int i = 0; i < 3; i++) { Assert.assertEquals(t.getButton(INTEGER_CHOICES[i]).getText(), STRING_CHOICES[i].toString()); } }
public void setText(T object, String text) { JRadioButton button = buttons.get(object); if (button != null) { button.setText(text); } }
PlotSettingsRadioButtonGroup extends PlotSettingsSubPanel { public void setText(T object, String text) { JRadioButton button = buttons.get(object); if (button != null) { button.setText(text); } } }
PlotSettingsRadioButtonGroup extends PlotSettingsSubPanel { public void setText(T object, String text) { JRadioButton button = buttons.get(object); if (button != null) { button.setText(text); } } PlotSettingsRadioButtonGroup(T... options); }
PlotSettingsRadioButtonGroup extends PlotSettingsSubPanel { public void setText(T object, String text) { JRadioButton button = buttons.get(object); if (button != null) { button.setText(text); } } PlotSettingsRadioButtonGroup(T... options); JRadioButton getButton(T object); void setSelection(T object); T getSelection(); void setText(T object, String text); @Override boolean isDirty(); @Override boolean isValidated(); }
PlotSettingsRadioButtonGroup extends PlotSettingsSubPanel { public void setText(T object, String text) { JRadioButton button = buttons.get(object); if (button != null) { button.setText(text); } } PlotSettingsRadioButtonGroup(T... options); JRadioButton getButton(T object); void setSelection(T object); T getSelection(); void setText(T object, String text); @Override boolean isDirty(); @Override boolean isValidated();  }