Class PlayersTable.HeaderRenderer

  • All Implemented Interfaces:
    javax.swing.table.TableCellRenderer
    Enclosing class:
    PlayersTable

    private static class PlayersTable.HeaderRenderer
    extends java.lang.Object
    implements javax.swing.table.TableCellRenderer
    • Constructor Summary

      Constructors 
      Constructor Description
      HeaderRenderer​(java.awt.Component... components)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Component getTableCellRendererComponent​(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
      void setPressedColumn​(int column)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pressedColumn

        private int pressedColumn
      • components

        private final java.awt.Component[] components
    • Constructor Detail

      • HeaderRenderer

        public HeaderRenderer​(java.awt.Component... components)
    • Method Detail

      • getTableCellRendererComponent

        public java.awt.Component getTableCellRendererComponent​(javax.swing.JTable table,
                                                                java.lang.Object value,
                                                                boolean isSelected,
                                                                boolean hasFocus,
                                                                int row,
                                                                int column)
        Specified by:
        getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
      • setPressedColumn

        public void setPressedColumn​(int column)