Class PanelTableCellRenderer<T>

    • Field Detail

      • noFocusBorder

        protected static Border noFocusBorder
    • Constructor Detail

      • PanelTableCellRenderer

        public PanelTableCellRenderer()
        Creates a default table cell renderer.
      • PanelTableCellRenderer

        public PanelTableCellRenderer​(Property<? extends T> property)
    • Method Detail

      • getApplication

        public BeaTunes getApplication()
      • getProperty

        public Property<? extends T> getProperty()
      • setProperty

        public void setProperty​(Property<? extends T> property)
      • setForeground

        public void setForeground​(Color c)
        Overrides JComponent.setForeground to assign the unselected-foreground color to the specified color.
        Overrides:
        setForeground in class JComponent
        Parameters:
        c - set the foreground color to this value
      • setBackground

        public void setBackground​(Color c)
        Overrides JComponent.setBackground to assign the unselected-background color to the specified color.
        Overrides:
        setBackground in class JComponent
        Parameters:
        c - set the background color to this value
      • updateUI

        public void updateUI()
        Notification from the UIManager that the look and feel [L&F] has changed. Replaces the current UI object with the latest version from the UIManager.
        Overrides:
        updateUI in class JPanel
        See Also:
        JComponent.updateUI()
      • getTableCellRendererComponent

        public Component getTableCellRendererComponent​(JTable table,
                                                       Object value,
                                                       boolean isSelected,
                                                       boolean hasFocus,
                                                       int row,
                                                       int column)
        Returns the default table cell renderer.
        Specified by:
        getTableCellRendererComponent in interface TableCellRenderer
        Parameters:
        table - the JTable
        value - the value to assign to the cell at [row, column]
        isSelected - true if cell is selected
        hasFocus - true if cell has focus
        row - the row of the cell to render
        column - the column of the cell to render
        Returns:
        the default table cell renderer
      • extractProperty

        protected T extractProperty​(Object object)
        Typically simply calls propertyExtractor.get(value). If you want to convert some values into special (other) values (e.g. 0 into null), override this method.
        Parameters:
        object - object
        Returns:
        property value
      • getIssue

        public Issue getIssue()
      • isOpaque

        public boolean isOpaque()
        Overridden for performance reasons. See the Implementation Note for more information.
        Overrides:
        isOpaque in class JComponent
        Returns:
        true or false