Class SWTGridCell

    • Constructor Detail

      • SWTGridCell

        public SWTGridCell​(int row,
                           int column,
                           AbstractSWTRenderer<? extends VElement> renderer)
        Default constructor to create a grid cell.
        Parameters:
        row - the row of the cell
        column - the column of the cell
        renderer - the AbstractSWTRenderer that renders the cell
    • Method Detail

      • getPreferredSize

        public org.eclipse.swt.graphics.Point getPreferredSize()
        Returns the preferred size of this cell. If the preferredSize is null (default), the size is computed automatically.
        Returns:
        the preferredSize (width, height) or null
        Since:
        1.9
      • setPreferredSize

        public void setPreferredSize​(org.eclipse.swt.graphics.Point preferredSize)
        Sets the preferred size of this cell. If set to null (default), the size is computed automatically.
        Parameters:
        preferredSize - the preferredSize to set (width, height)
        Since:
        1.9
      • setPreferredSize

        public void setPreferredSize​(int width,
                                     int height)
        Sets the preferred size of this cell. If set to null (default), the size is computed automatically.
        Parameters:
        width - the preferred width
        height - the preferred height
        Since:
        1.9