/**
  * Signal that the column at index <code>i</code> should not be displayed with a link in the JSP;
  * this prevents users from sorting on the i-th column.
  *
  * @param i The index of the column whose link should not be displayed. The first column is 0.
  */
 public void hideColumnLink(int i) {
   if (i >= 0 && i < columns.size()) {
     EntityBeanColumn c = (EntityBeanColumn) columns.get(i);
     c.setShowLink(false);
     columns.set(i, c);
   }
 }
  /** @param columns The columns to set. Each element is a String with the column name. */
  public void setColumns(ArrayList columns) {
    // this.columns = columns;
    ArrayList newColumns = new ArrayList();

    for (int i = 0; i < columns.size(); i++) {
      String name = (String) columns.get(i);
      EntityBeanColumn c = new EntityBeanColumn();
      c.setName(name);
      newColumns.add(c);
    }

    this.columns = newColumns;
    numColumns = this.columns.size();
  }