org.apache.jmeter.gui.util

## Class HeaderAsPropertyRendererWrapper

- java.lang.Object
- - org.apache.jmeter.gui.util.HeaderAsPropertyRendererWrapper

- All Implemented Interfaces:
    javax.swing.table.TableCellRenderer

      public class HeaderAsPropertyRendererWrapper
      extends java.lang.Object
      implements javax.swing.table.TableCellRenderer

  Wraps `TableCellRenderer` to renders items in a JTable by using resource names and control some formatting (centering, fonts and border)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HeaderAsPropertyRendererWrapper(javax.swing.table.TableCellRenderer renderer, java.lang.Object[][] columnsMsgParameters)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.awt.Component` | `getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)`
    `static void` | `setupDefaultRenderer(javax.swing.JTable table)`
    `static void` | `setupDefaultRenderer(javax.swing.JTable table, java.lang.Object[][] columnsMsgParameters)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HeaderAsPropertyRendererWrapper

          public HeaderAsPropertyRendererWrapper(javax.swing.table.TableCellRenderer renderer,
                                                 java.lang.Object[][] columnsMsgParameters)

      Parameters:
        `renderer` - `TableCellRenderer` to delegate to
        `columnsMsgParameters` - Optional parameters of i18n keys

  - ### 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`

    - #### setupDefaultRenderer

          public static void setupDefaultRenderer(javax.swing.JTable table)

      Parameters:
        `table` - `JTable`

    - #### setupDefaultRenderer

          public static void setupDefaultRenderer(javax.swing.JTable table,
                                                  java.lang.Object[][] columnsMsgParameters)

      Parameters:
        `table` - `JTable`
        `columnsMsgParameters` - Double dimension array of column message parameters

Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.