Remove column code in template finder as templates do not have code attribute anymore

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-06-27 11:49:21 +02:00
parent 72aaace144
commit be9408b444

View file

@ -47,7 +47,7 @@ public abstract class TemplateFinder<T extends OrderElementTemplate> extends
@Override
public String[] getHeaders() {
return new String[] { "Code", "Name" };
return new String[] { "Name" };
}
@Override
@ -58,7 +58,11 @@ public abstract class TemplateFinder<T extends OrderElementTemplate> extends
public void render(Listitem item, Object data) {
T template = type.cast(data);
item.setValue(data);
generateColumnsForRenderer(item, template);
Listcell nameCell = new Listcell();
nameCell.setParent(item);
nameCell.setLabel(template.getName());
nameCell.setStyle("width:300px");
}
};
}
@ -90,15 +94,4 @@ public abstract class TemplateFinder<T extends OrderElementTemplate> extends
protected abstract List<T> getTemplates();
protected void generateColumnsForRenderer(Listitem item, T template) {
final Listcell codeCell = new Listcell();
codeCell.setParent(item);
codeCell.setStyle("width:200px");
final Listcell nameCell = new Listcell();
nameCell.setParent(item);
nameCell.setLabel(template.getName());
nameCell.setStyle("width:300px");
}
}