I don't think such a method exists. For other field types I have seen/used code similar to (untested code, just wrote it from scratch):
public class MyRadioButtonGroup extends AbstractRadioButtonGroup<Integer> {
private Integer myOldValue;
public class RadioButton1 extends AbstractRadioButton {
@Override
protected Object getConfiguredRadioValue() {
return Integer.valueOf(1);
}
}
public class RadioButton2 extends AbstractRadioButton {
@Override
protected Object getConfiguredRadioValue() {
return Integer.valueOf(2);
}
}
@Override
protected void execChangedValue() throws ProcessingException {
super.execChangedValue();
if(myOldValue > getValue()) {
// do something
}
// last line of code for this method
myOldValue = getValue();
}
}
If the button group has an initial value (or the value is changed by other methods) of course the variable myOldValue should also be set there.
[Updated on: Wed, 12 March 2014 08:32] by Moderator