use of org.guvnor.ala.ui.openshift.model.TemplateParam in project kie-wb-common by kiegroup.
the class OpenShiftClientServiceImplTest method buildExpectedParams.
private List<TemplateParam> buildExpectedParams(int count) {
List<TemplateParam> params = new ArrayList<>();
for (int i = 0; i < count; i++) {
String name = String.format("PARAM%d", i);
String displayName = String.format("PARAM%d display name", i);
String description = String.format("PARAM%d description", i);
boolean required = i % 2 == 0;
String value = String.format("PARAM%d value", i);
params.add(new TemplateParam(name, displayName, description, required, value));
}
return params;
}
use of org.guvnor.ala.ui.openshift.model.TemplateParam in project kie-wb-common by kiegroup.
the class TemplateParamsTableView method addParamNameColumn.
private void addParamNameColumn() {
Column<TemplateParam, String> column = new Column<TemplateParam, String>(new TextCell()) {
@Override
public String getValue(TemplateParam templateParam) {
return templateParam.isRequired() ? templateParam.getName() : templateParam.getName();
}
};
dataGrid.addColumn(column, translationService.getTranslation(TemplateParamsTableView_ParamNameColumn));
dataGrid.setColumnWidth(column, 40, Style.Unit.PCT);
}
Aggregations