Interface TableColumnWidthCalculator
-
- All Known Implementing Classes:
TableColumnWidthController
public interface TableColumnWidthCalculator
Definition of an interface for a component which can calculate the widths of a table's columns given the total width of the 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int[]
calculateWidths(int totalSize)
Calculates the current widths of all columns managed by this controller.
-
-
-
Method Detail
-
calculateWidths
int[] calculateWidths(int totalSize)
Calculates the current widths of all columns managed by this controller. The currently available size of the table is specified. This method mainly calculates the widths of columns with a relative width. It sums up the fixed widths and subtracts them from the given total size. The remaining space is used to calculate the absolute widths for columns whose width is specified as a percent value.- Parameters:
totalSize
- the total size available- Returns:
- an array with the widths of all columns
-
-