Interface TableColumnRecalibrator

  • All Known Implementing Classes:
    TableColumnWidthController

    public interface TableColumnRecalibrator

    Definition of an interface for a component which can recalibrate itself based on the column widths of a table.

    This interface is used to access functionality provided by TableColumnWidthController without having to reference the full object. So if a client just needs this recalibration, it can use this interface.

    Since:
    1.3
    Version:
    $Id$
    Author:
    Oliver Heger
    • Method Detail

      • recalibrate

        void recalibrate​(int[] columnSizes)
        Recalibrates the internally stored column sizes. This method is intended to be called if there is an external change in the sizes of the columns managed by this object, for instance if the user manually changed a column width. In this case all current column widths have to be passed to this method. The method then adjusts the sizes of the columns with fixed widths and re-calculates the percent values of the other columns.
        Parameters:
        columnSizes - an array with the new sizes of the managed columns
        Throws:
        IllegalArgumentException - if the array passed to this method is null or does not have the expected number of elements