Search in sources :

Example 1 with TemplateParamsTableView_ParamNameColumn

use of org.guvnor.ala.ui.openshift.client.resources.i18n.GuvnorAlaOpenShiftUIConstants.TemplateParamsTableView_ParamNameColumn 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);
}
Also used : TemplateParamsTableView_ParamNameColumn(org.guvnor.ala.ui.openshift.client.resources.i18n.GuvnorAlaOpenShiftUIConstants.TemplateParamsTableView_ParamNameColumn) TemplateParamsTableView_ParamValueColumn(org.guvnor.ala.ui.openshift.client.resources.i18n.GuvnorAlaOpenShiftUIConstants.TemplateParamsTableView_ParamValueColumn) TemplateParamsTableView_ParamRequiredColumn(org.guvnor.ala.ui.openshift.client.resources.i18n.GuvnorAlaOpenShiftUIConstants.TemplateParamsTableView_ParamRequiredColumn) Column(com.google.gwt.user.cellview.client.Column) TemplateParam(org.guvnor.ala.ui.openshift.model.TemplateParam) TextCell(com.google.gwt.cell.client.TextCell) EditTextCell(com.google.gwt.cell.client.EditTextCell)

Aggregations

EditTextCell (com.google.gwt.cell.client.EditTextCell)1 TextCell (com.google.gwt.cell.client.TextCell)1 Column (com.google.gwt.user.cellview.client.Column)1 TemplateParamsTableView_ParamNameColumn (org.guvnor.ala.ui.openshift.client.resources.i18n.GuvnorAlaOpenShiftUIConstants.TemplateParamsTableView_ParamNameColumn)1 TemplateParamsTableView_ParamRequiredColumn (org.guvnor.ala.ui.openshift.client.resources.i18n.GuvnorAlaOpenShiftUIConstants.TemplateParamsTableView_ParamRequiredColumn)1 TemplateParamsTableView_ParamValueColumn (org.guvnor.ala.ui.openshift.client.resources.i18n.GuvnorAlaOpenShiftUIConstants.TemplateParamsTableView_ParamValueColumn)1 TemplateParam (org.guvnor.ala.ui.openshift.model.TemplateParam)1