Interface ColumnConfiguration

  • All Known Implementing Classes:
    BeanListColumnConfiguration

    public interface ColumnConfiguration
    An interface for providing table column configuration.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      int getIndex​(javax.swing.table.TableColumn column)
      Get the saved index for the table column.
      default java.lang.Object getPrototypeValue​(javax.swing.table.TableColumn column)
      Get the prototype value to use for calculating the column width.
      java.lang.Integer getWidth​(javax.swing.table.TableColumn column)
      Get the saved width for the table column.
      void setIndex​(javax.swing.table.TableColumn column, int index)
      Set the saved index for a table column setting.
      void setWidth​(javax.swing.table.TableColumn column, int width)
      Set the saved width for a table column setting.
    • Method Detail

      • getWidth

        java.lang.Integer getWidth​(javax.swing.table.TableColumn column)
        Get the saved width for the table column.
        Parameters:
        column - the table column
        Returns:
        the saved width or null if no width has been saved
      • getIndex

        int getIndex​(javax.swing.table.TableColumn column)
        Get the saved index for the table column.
        Parameters:
        column - the table column
        Returns:
        the saved index or -1 if no index has been saved
      • setWidth

        void setWidth​(javax.swing.table.TableColumn column,
                      int width)
        Set the saved width for a table column setting.
        Parameters:
        column - the table column
        width - the width to save
      • setIndex

        void setIndex​(javax.swing.table.TableColumn column,
                      int index)
        Set the saved index for a table column setting.
        Parameters:
        column - the table column
        index - the index to save
      • getPrototypeValue

        default java.lang.Object getPrototypeValue​(javax.swing.table.TableColumn column)
        Get the prototype value to use for calculating the column width.