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

net.sf.cuf.model.ui.IndexConverter Maven / Gradle / Ivy

The newest version!
package net.sf.cuf.model.ui;

/**
 * IndexConverter for sorted tables (using NewTableSorter), to synchronize
 * the model index with the view index, see
 * {@link net.sf.cuf.model.ui.ListTableMapperBase}.
 */
public interface IndexConverter 
{
    /**
     * This method converts the given view index of a table row to
     * the corresponding model index of this row.
     * @param pViewIndex the view index
     * @return the model index
     */
    int convert2ModelIndex(int pViewIndex);

    /**
     * This method converts the given model index of a table row to
     * the corresponding view index of this row.
     * @param pModelIndex the model index
     * @return the view index
     */
    int convert2ViewIndex(int pModelIndex);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy