Interface IVisibilityTableColumnModel

  • All Known Implementing Classes:
    VisibilityTableColumnModel

    public interface IVisibilityTableColumnModel
    User: Ruediger Leppin Date: 26.11.2003 Time: 01:52:25
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.swing.table.TableColumn getAllColumn​(int columnIndex)
      Returns the TableColumn object for the column at columnIndex.
      int getAllColumnCount()
      Returns the number of columns in the model.
      int getAllColumnIndex​(java.lang.Object identifier)
      Returns the index of the first column in the table whose identifier is equal to identifier, when compared using equals.
      java.util.Enumeration getAllColumns()
      Returns an Enumeration of all the columns in the model.
      boolean isColumnChangeable​(javax.swing.table.TableColumn column)
      Checks whether the specified column can change visibility.
      boolean isColumnVisible​(javax.swing.table.TableColumn aColumn)
      Checks whether the specified column is currently visible.
      void setAllColumnsVisible()
      Makes all columns in this model visible
      void setColumnChangeable​(javax.swing.table.TableColumn column, boolean changeable)
      Sets whether this column can change visibility.
      void setColumnVisible​(javax.swing.table.TableColumn column, boolean visible)
      Sets the visibility of the specified TableColumn.
    • Method Detail

      • setColumnVisible

        void setColumnVisible​(javax.swing.table.TableColumn column,
                              boolean visible)
        Sets the visibility of the specified TableColumn. The call is ignored if the TableColumn is not found in this column model or its visibility status did not change. This method posts a columnAdded or columnRemoved event to its listeners.
        Parameters:
        column - the TableColumn
        visible - its new visibility status
      • getAllColumns

        java.util.Enumeration getAllColumns()
        Returns an Enumeration of all the columns in the model.
        Returns:
        an Enumeration of all the columns in the model
      • getAllColumnCount

        int getAllColumnCount()
        Returns the number of columns in the model.
        Returns:
        the number of columns in the model
      • getAllColumnIndex

        int getAllColumnIndex​(java.lang.Object identifier)
        Returns the index of the first column in the table whose identifier is equal to identifier, when compared using equals.
        Parameters:
        identifier - the identifier object
        Returns:
        the index of the first table column whose identifier is equal to identifier
        Throws:
        java.lang.IllegalArgumentException - if identifier is null, or no TableColumn has this identifier
        See Also:
        getAllColumn(int)
      • getAllColumn

        javax.swing.table.TableColumn getAllColumn​(int columnIndex)
        Returns the TableColumn object for the column at columnIndex.
        Parameters:
        columnIndex - the index of the desired column
        Returns:
        the TableColumn object for the column at columnIndex
      • setColumnChangeable

        void setColumnChangeable​(javax.swing.table.TableColumn column,
                                 boolean changeable)
        Sets whether this column can change visibility.
        Parameters:
        column - the TableColumn
        changeable - if true, changing visibility is allowed; otherwise false
      • isColumnChangeable

        boolean isColumnChangeable​(javax.swing.table.TableColumn column)
        Checks whether the specified column can change visibility.
        Parameters:
        column - column to check
        Returns:
        true if the column can change visibility; otherwise false