private void initialiseRowData(final int rowIndex) { final List<BaseColumn> modelColumns = model.getExpandedColumns(); final List<DTCellValue52> modelRow = model.getData().get(rowIndex); for (int columnIndex = 0; columnIndex < modelColumns.size(); columnIndex++) { final BaseColumn modelColumn = modelColumns.get(columnIndex); final DTCellValue52 modelCell = makeModelCellValue(modelColumn); modelRow.add(modelCell); //BaseGridData is sparsely populated; only add values if needed. if (modelCell.hasValue()) { uiModel.setCellValueInternal(rowIndex, columnIndex, gridWidgetCellFactory.convertCell(modelCell, modelColumn, cellUtilities, columnUtilities)); } uiModel.indexColumn(columnIndex); //Set-up SelectionManager for Row Number column, to select entire row. if (modelColumn instanceof RowNumberCol52) { uiModel.getCell(rowIndex, columnIndex).setSelectionStrategy(RowSelectionStrategy.INSTANCE); } } }
private void initialiseRowData(final int rowIndex) { final List<BaseColumn> modelColumns = model.getExpandedColumns(); final List<DTCellValue52> modelRow = model.getData().get(rowIndex); for (int columnIndex = 0; columnIndex < modelColumns.size(); columnIndex++) { final BaseColumn modelColumn = modelColumns.get(columnIndex); final DTCellValue52 modelCell = makeModelCellValue(modelColumn); modelRow.add(modelCell); //BaseGridData is sparsely populated; only add values if needed. if (modelCell.hasValue()) { uiModel.setCellValueInternal(rowIndex, columnIndex, gridWidgetCellFactory.convertCell(modelCell, modelColumn, cellUtilities, columnUtilities)); } uiModel.indexColumn(columnIndex); //Set-up SelectionManager for Row Number column, to select entire row. if (modelColumn instanceof RowNumberCol52) { uiModel.getCell(rowIndex, columnIndex).setSelectionStrategy(RowSelectionStrategy.INSTANCE); } } }
listSelector)); uiModel.get().getCell(rowIndex, columnIndex).setSelectionStrategy(RowSelectionStrategy.INSTANCE); break; case INFORMATION_ITEM:
private void initialiseRow(final List<BaseColumn> columns, final List<DTCellValue52> row) { final GridRow uiModelRow = new BaseGridRow(GuidedDecisionTableView.ROW_HEIGHT); final int rowIndex = uiModel.getRowCount(); uiModel.appendRow(uiModelRow); for (int iModelColumn = 0; iModelColumn < row.size(); iModelColumn++) { final DTCellValue52 modelCell = row.get(iModelColumn); final BaseColumn modelColumn = columns.get(iModelColumn); // We cannot rely upon the values in the existing data as legacy tables aren't guaranteed to be sorted if (modelColumn instanceof RowNumberCol52) { modelCell.setNumericValue(uiModel.getRowCount()); } //BaseGridData is sparsely populated; only add values if needed. if (modelCell.hasValue()) { uiModel.setCellValueInternal(rowIndex, iModelColumn, gridWidgetCellFactory.convertCell(modelCell, modelColumn, cellUtilities, columnUtilities)); //Set-up SelectionManager for Row Number column, to select entire row. if (modelColumn instanceof RowNumberCol52) { uiModel.getCell(rowIndex, iModelColumn).setSelectionStrategy(RowSelectionStrategy.INSTANCE); } } } }
listSelector)); uiModel.get().getCell(rowIndex, columnIndex).setSelectionStrategy(RowSelectionStrategy.INSTANCE); break; case BINDING_PARAMETER_COLUMN_INDEX:
private void initialiseRow(final List<BaseColumn> columns, final List<DTCellValue52> row) { final GridRow uiModelRow = new BaseGridRow(GuidedDecisionTableView.ROW_HEIGHT); final int rowIndex = uiModel.getRowCount(); uiModel.appendRow(uiModelRow); for (int iModelColumn = 0; iModelColumn < row.size(); iModelColumn++) { final DTCellValue52 modelCell = row.get(iModelColumn); final BaseColumn modelColumn = columns.get(iModelColumn); // We cannot rely upon the values in the existing data as legacy tables aren't guaranteed to be sorted if (modelColumn instanceof RowNumberCol52) { modelCell.setNumericValue(uiModel.getRowCount()); } //BaseGridData is sparsely populated; only add values if needed. if (modelCell.hasValue()) { uiModel.setCellValueInternal(rowIndex, iModelColumn, gridWidgetCellFactory.convertCell(modelCell, modelColumn, cellUtilities, columnUtilities)); //Set-up SelectionManager for Row Number column, to select entire row. if (modelColumn instanceof RowNumberCol52) { uiModel.getCell(rowIndex, iModelColumn).setSelectionStrategy(RowSelectionStrategy.INSTANCE); } } } }
columnIndex).setSelectionStrategy(RowSelectionStrategy.INSTANCE); break; case NAME:
listSelector)); uiModel.get().getCell(rowIndex, columnIndex).setSelectionStrategy(RowSelectionStrategy.INSTANCE); break; case INPUT_CLAUSES:
new BaseGridCellValue<>(rowIndex)); gridData.getCell(rowIndex, 0).setSelectionStrategy(RowSelectionStrategy.INSTANCE);
new BaseGridCellValue<>(rowIndex)); gridData.getCell(rowIndex, 0).setSelectionStrategy(RowSelectionStrategy.INSTANCE);