registerWithParent(parent);
}
private void registerWithParent(InputPanel parent) {
if (parent != null) {
UndoableButtonGroup group = createButtonGroup();
group.add(always);
group.add(whenNeeded);
parent.addChangeSource(group);
parent.addInputField(group.createInputField(always, "Always", null));
parent.addInputField(group.createInputField(whenNeeded, "When Needed", null));
}
}