"Retired classes are not displayed in the class hierarchy.<br />" +
"Operations are performed after clicking on the <i>Retire</i> button.");
explanationHtml.setStylePrimaryName("explanation");
add(explanationHtml);
retiredClassesField = new ClassSelectionField(projectId, "Class(es) to retire");
add(retiredClassesField, new AnchorLayoutData("100% - 53"));
retireChildrenCheckbox = new Checkbox("Retire also all children of the selected class(es).");
add(retireChildrenCheckbox, new AnchorLayoutData("100% - 53"));
retireChildrenCheckbox.addListener(new CheckboxListenerAdapter() {
@Override
public void onCheck(Checkbox field, boolean checked) {
newParentField.setDisabled(checked);
}
});
newParentField = new ClassSelectionField(projectId, "New parent class of the children", false, null);
add(newParentField, new AnchorLayoutData("100% - 53"));
reasonField = new TextAreaField();
reasonField.setLabel("Reason for change:");
((TextArea)reasonField.getFieldComponent()).setHeight(120);