// Make a new Cell for ActionInsertFact columns private DecoratedGridCellValueAdaptor<? extends Comparable<?>> derieveCellFromAction( ActionInsertFactCol52 col) { // Check if the column has a "Value List" or an enumeration. Value List takes precedence final String factType = col.getFactType(); final String fieldName = col.getFactField(); if (model.hasValueList(col)) { return makeValueListCell(col); } else if (sce.hasEnums(factType, fieldName)) { return makeEnumCell(factType, fieldName); } return derieveCellFromModel(col); }
// Make a new Cell for Condition columns private DecoratedGridCellValueAdaptor<? extends Comparable<?>> derieveCellFromCondition( ConditionCol52 col) { // Operators "is null" and "is not null" require a boolean cell if (col.getOperator() != null && (col.getOperator().equals("== null") || col.getOperator().equals("!= null"))) { return makeBooleanCell(); } // Check if the column has a "Value List" or an enumeration. Value List takes precedence final String factType = model.getPattern(col).getFactType(); final String fieldName = col.getFactField(); if (model.hasValueList(col)) { return makeValueListCell(col); } else if (sce.hasEnums(factType, fieldName)) { return makeEnumCell(factType, fieldName); } return derieveCellFromModel(col); }