The JCheckBox of BoundCheckBox isn't been selected when it's model is TRUE
Hi,
I'm here again :)
After upgrading to 0.2.0 the Binding created via SwingBindingFactory.createBoundCheckBox(...) is not showing the selected state when it's value is true. Internaly the ToogleButtonModel is holding the state properly, only the JComboBox is not been selected.
It's a JIRA issue or I'm doing something wrong?
Follow is my code:
Code:
public class ItineraryStretchTimeForm extends AbstractForm {
private JCheckBox createBoundedCheckBox(String property) {
SwingBindingFactory factory = (SwingBindingFactory) getBindingFactory();
JCheckBox checkBox = (JCheckBox) factory.createBoundCheckBox("monday")
.getControl();
try {
checkBox.setText(com.wplex.framework.client.util.MessageUtility
.getSpringMessage(property));
}
catch (ConfigurationError e) {
// TODO Do Nothing!
}
return checkBox;
}
}
Code:
public class ExtendedItineraryStretchTimeVO extends ItineraryStretchTimeVO
implements IExtendedVO {
private Boolean monday = Boolean.TRUE; //forced for test
public Boolean getMonday() {
return this.monday;
}
public void setMonday(Boolean monday) {
this.monday = monday;
}
}