super(wizard, Console.CONSTANTS.patch_manager_rollback_confirm_title());
}
@Override
protected IsWidget body(final RollbackContext context) {
FlowPanel body = new FlowPanel();
Label confirmLabel = new Label(Console.CONSTANTS.patch_manager_rollback_confirm_body());
confirmLabel.getElement().getStyle().setMarginBottom(1, EM);
body.add(confirmLabel);
resetConfiguration = new Label("");
body.add(resetConfiguration);
overrideAll = new Label("");
overrideAll.getElement().getStyle().setMarginBottom(1, EM);
body.add(overrideAll);
form = new Form<PatchInfo>(PatchInfo.class);
form.setEnabled(false);
TextItem id = new TextItem("id", "ID");
TextItem version = new TextItem("version", "Version");
TextItem date = new TextItem("appliedAt", Console.CONSTANTS.patch_manager_applied_at());
Map<PatchType, String> values = new HashMap<PatchType, String>();
values.put(CUMULATIVE, CUMULATIVE.label());
values.put(ONE_OFF, ONE_OFF.label());
EnumFormItem<PatchType> type = new EnumFormItem<PatchType>("type", Console.CONSTANTS.common_label_type());
type.setValues(values);
form.setFields(id, version, date, type);
body.add(form);
return body;
}