[Bug #1216] Removed unused code as Radiogroup at that point never has elements

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-10-17 14:41:23 +02:00
parent c8e385479e
commit ff185b9648

View file

@ -211,10 +211,6 @@ public class ResourceAllocationController extends GenericForwardComposer {
initializeAllocationConfigurationComponent();
formBinder.setAdvancedSearchButton(advancedSearchButton);
CalculationTypeRadio calculationTypeRadio = CalculationTypeRadio
.from(formBinder.getCalculatedValue());
calculationTypeRadio.doTheSelectionOn(getCalculationTypeSelector());
tbResourceAllocation.setSelected(true);
newAllocationSelector.setAllocationsAdder(resourceAllocationModel);
@ -435,16 +431,6 @@ public class ResourceAllocationController extends GenericForwardComposer {
return false;
}
public void doTheSelectionOn(final Radiogroup radiogroup) {
for (int i = 0; i < radiogroup.getItemCount(); i++) {
Radio radio = radiogroup.getItemAtIndex(i);
if (name().equals(radio.getValue())) {
radiogroup.setSelectedIndex(i);
break;
}
}
}
private final CalculatedValue calculatedValue;
private CalculationTypeRadio(CalculatedValue calculatedValue) {