コード例 #1
0
  // Make a new Cell for ActionSetField columns
  private DecoratedGridCellValueAdaptor<? extends Comparable<?>> derieveCellFromAction(
      ActionSetFieldCol52 col) {

    // Check if the column has a "Value List" or an enumeration. Value List takes precedence
    final String factType = model.getBoundFactType(col.getBoundName());
    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);
  }