}
}
@Override
protected EnhancedVLayout buildContentPane() {
EnhancedVLayout contentPane = super.buildContentPane();
HTMLFlow hr = new HTMLFlow("<hr/>");
contentPane.addMember(hr);
this.executionModeForm = new EnhancedDynamicForm(isReadOnly());
this.executionModeForm.setNumCols(2);
this.executionModeForm.setColWidths(FIRST_COLUMN_WIDTH, "*");
RadioGroupItem executionModeItem = new RadioGroupItem(FIELD_EXECUTION_MODE,
MSG.view_group_operationScheduleDetails_field_execute());
LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(2);
valueMap.put(EXECUTION_ORDER_PARALLEL, MSG.view_group_operationScheduleDetails_value_parallel());
valueMap.put(EXECUTION_ORDER_SEQUENTIAL, MSG.view_group_operationScheduleDetails_value_sequential());
executionModeItem.setValueMap(valueMap);
executionModeItem.setDefaultValue(EXECUTION_ORDER_PARALLEL);
executionModeItem.setShowTitle(true);
final CheckboxItem haltOnFailureItem = new CheckboxItem(GroupOperationScheduleDataSource.Field.HALT_ON_FAILURE,
MSG.view_group_operationScheduleDetails_field_haltOnFailure());
haltOnFailureItem.setDefaultValue(false);
haltOnFailureItem.setVisible(false);
haltOnFailureItem.setLabelAsTitle(true);
haltOnFailureItem.setShowTitle(true);
this.executionModeForm.setFields(executionModeItem, haltOnFailureItem);
contentPane.addMember(this.executionModeForm);
HLayout hLayout = new HLayout();
VLayout horizontalSpacer = new VLayout();
horizontalSpacer.setWidth(140);
hLayout.addMember(horizontalSpacer);
ResourceCategory resourceCategory = this.groupComposite.getResourceGroup().getResourceType().getCategory();
String memberIcon = ImageManager.getResourceIcon(resourceCategory);
HoverCustomizer nameHoverCustomizer = new HoverCustomizer() {
public String hoverHTML(Object value, ListGridRecord listGridRecord, int rowNum, int colNum) {
return AncestryUtil.getAncestryHoverHTML(listGridRecord, 0);
}
};
this.memberExecutionOrderer = new ReorderableList(this.memberResourceRecords, null, memberIcon,
nameHoverCustomizer);
this.memberExecutionOrderer.setVisible(false);
this.memberExecutionOrderer.setNameFieldTitle(MSG.view_group_operationScheduleDetails_memberResource());
hLayout.addMember(this.memberExecutionOrderer);
contentPane.addMember(hLayout);
executionModeItem.addChangedHandler(new ChangedHandler() {
public void onChanged(ChangedEvent event) {
if (event.getValue().equals(EXECUTION_ORDER_PARALLEL)) {
haltOnFailureItem.hide();