All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.odell.glazedlists.gui.TableFormat Maven / Gradle / Ivy

The newest version!
/* Glazed Lists                                                 (c) 2003-2006 */
/* http://publicobject.com/glazedlists/                      publicobject.com,*/
/*                                                     O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.gui;

/**
 * Specifies how a set of records are rendered in a table.
 *
 * @see ca.odell.glazedlists.GlazedLists#tableFormat(Class,String[],String[])
 *
 * @author Jesse Wilson
 */
public interface TableFormat {

    /**
     * The number of columns to display.
     */
    public int getColumnCount();

    /**
     * Gets the title of the specified column. 
     */
    public String getColumnName(int column);
    
    /**
     * Gets the value of the specified field for the specified object. This
     * is the value that will be passed to the editor and renderer for the
     * column. If you have defined a custom renderer, you may choose to return
     * simply the baseObject.
     */
    public Object getColumnValue(E baseObject, int column);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy