Class WidthCalculator<V>


  • public class WidthCalculator<V>
    extends Object
    A utility class to calculate the width of a Cell
    • Constructor Detail

      • WidthCalculator

        public WidthCalculator​(com.google.gwt.cell.client.Cell<V> cell)
        Constructor
        Parameters:
        cell - The Cell used to render content
    • Method Detail

      • setMinimumWidth

        public void setMinimumWidth​(int minWidth)
        Set the minimum width
        Parameters:
        minWidth -
      • getMaximumElementWidth

        public int getMaximumElementWidth​(List<? extends V> values)
        Get the widest Cell from a list of content
        Parameters:
        values -
        Returns:
      • getElementWidth

        public int getElementWidth​(V value)
        Get the width of a single item
        Parameters:
        value -
        Returns: