protected boolean isHeaderUnique( String header ) { for ( CompositeColumn<?> cc : model.getConditions() ) { for ( int iChild = 0; iChild < cc.getChildColumns().size(); iChild++ ) { if ( cc.getChildColumns().get( iChild ).getHeader().equals( header ) ) { return false; } } } return true; }
/** * Make a Model cell for the given column * @param column * @return */ @Override public DTCellValue52 makeModelCellValue( BaseColumn column ) { DataType.DataTypes dataType = utilities.getDataType( column ); DTCellValue52 dcv = null; if ( column instanceof LimitedEntryCol ) { dcv = new DTCellValue52( Boolean.FALSE ); } else if ( column instanceof AttributeCol52 ) { AttributeCol52 ac = (AttributeCol52) column; if ( ac.getAttribute().equals( RuleAttributeWidget.DIALECT_ATTR ) ) { dcv = new DTCellValue52( RuleAttributeWidget.DEFAULT_DIALECT ); } else { dcv = new DTCellValue52( column.getDefaultValue() ); } } else { dcv = new DTCellValue52( column.getDefaultValue() ); } utilities.assertDTCellValue( dataType, dcv ); return dcv; }
cellFactory.getCell( column ), eventBus ); dc.setVisible( !column.isHideColumn() ); List<CellValue<? extends Comparable<?>>> dcd = cellValueFactory.convertColumnData( column, columnData );
resizeColumn.getModelColumn().setWidth( resizeColumnWidth ); int resizeColumnIndex = widget.visibleCols.indexOf( resizeColumn );
colIndex, eventBus ); columnWidth = descriptionCol.getWidth(); descriptionColumn.setWidth( columnWidth <= 0 ? defaultColumnWidth : columnWidth ); columns.add( descriptionColumn );
protected boolean isHeaderUnique( String header ) { for ( CompositeColumn<?> cc : model.getConditions() ) { for ( int iChild = 0; iChild < cc.getChildColumns().size(); iChild++ ) { if ( cc.getChildColumns().get( iChild ).getHeader().equals( header ) ) { return false; } } } return true; }
private boolean unique( String header ) { for ( CompositeColumn<?> cc : model.getConditions() ) { for ( int iChild = 0; iChild < cc.getChildColumns().size(); iChild++ ) { if ( cc.getChildColumns().get( iChild ).getHeader().equals( header ) ) { return false; } } } return true; }