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

de.tsl2.nano.bean.def.ITableDescriptor Maven / Gradle / Ivy

Go to download

TSL2 Framework Descriptor (currency-handling, generic formatter, descriptors for beans, collections, actions and values)

There is a newer version: 2.5.1
Show newest version
/*
 * File: $HeadURL$
 * Id  : $Id$
 * 
 * created by: Thomas Schneider
 * created on: Oct 12, 2012
 * 
 * Copyright: (c) Thomas Schneider 2012, all rights reserved
 */
package de.tsl2.nano.bean.def;

import java.util.Collection;

/**
 * describes table columns
 * @author Thomas Schneider
 * @version $Revision$ 
 */
public interface ITableDescriptor {

    /**
     * getColumnDefinitions
     * @return all visible column definitions of that bean - while the columns itself may be defined inside the beanvalue.
     */
    Collection getColumnDefinitions();
    
    /**
     * Returns the label text for the given column of the given element.
     *
     * @param element the object representing the entire row, or
     *   null indicating that no input object is set
     *   in the viewer
     * @param columnIndex the zero-based index of the column in which the label appears
     * @return String or or null if there is no text for the 
     *  given object at columnIndex
     */
    String getColumnText(T element, int columnIndex);

    /**
     * Returns the label text for the given column-summary of the given element.
     *
     * @param columnIndex the zero-based index of the column in which the label appears
     * @return String or or null if there is no text for the 
     *  given object at columnIndex
     */
    String getSummaryText(Object context, int columnIndex);
    
    /**
     * shiftSortIndexes
     */

    void shiftSortIndexes();
    /**
     * sort
     */
    void sort();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy