FileDocCategorySizeDatePackage
BugIdCustomizer.javaAPI DocExample1063Thu Apr 05 20:32:58 BST 2001None

BugIdCustomizer

public class BugIdCustomizer extends Object implements TableCustomizer

Fields Summary
String
bugViewServlet
Constructors Summary
public BugIdCustomizer(String bugViewServlet)

    this.bugViewServlet = bugViewServlet;
  
Methods Summary
public booleanaccept(int columnType, java.lang.String columnTypeName, java.lang.String columnName, java.sql.ResultSet rs, int index)

    return ((columnType == Types.CHAR ||
             columnType == Types.VARCHAR ||
             columnType == Types.LONGVARCHAR) &&
            "bugid".equalsIgnoreCase(columnName));
  
public Elementdisplay(int columnType, java.lang.String columnTypeName, java.lang.String columnName, java.sql.ResultSet rs, int index)

    // Create a link to a servlet to display this bug
    String bugid = rs.getString(index);
    return new A(bugViewServlet + "?bugid=" + bugid, bugid);