FileDocCategorySizeDatePackage
DateCustomizer.javaAPI DocExample979Thu Apr 05 20:32:34 BST 2001None

DateCustomizer

public class DateCustomizer extends Object implements TableCustomizer

Fields Summary
DateFormat
fmt
Constructors Summary
public DateCustomizer(Locale loc)

    fmt = DateFormat.getDateTimeInstance(
                     DateFormat.SHORT, DateFormat.SHORT, loc);
  
Methods Summary
public booleanaccept(int columnType, java.lang.String columnTypeName, java.lang.String columnName, java.sql.ResultSet rs, int index)

    return (columnType == Types.DATE || columnType == Types.TIMESTAMP);
  
public Elementdisplay(int columnType, java.lang.String columnTypeName, java.lang.String columnName, java.sql.ResultSet rs, int index)

    // Print a short date and time using the specified locale
    return new StringElement(fmt.format(rs.getDate(index)));