Interface EntityTableCellRenderer

    • Field Detail

      • TABLE_CELL_LEFT_PADDING

        static final PropertyValue<Integer> TABLE_CELL_LEFT_PADDING
        The default left padding for table cells.
        Value type: Integer
        Default value: 0
      • TABLE_CELL_RIGHT_PADDING

        static final PropertyValue<Integer> TABLE_CELL_RIGHT_PADDING
        The default right padding for table cells.
        Value type: Integer
        Default value: 5
      • NUMERICAL_HORIZONTAL_ALIGNMENT

        static final PropertyValue<Integer> NUMERICAL_HORIZONTAL_ALIGNMENT
        The default horizontal alignment for numerical columns.
        Value type: Integer
        Default value: SwingConstants.RIGHT
      • TEMPORAL_HORIZONTAL_ALIGNMENT

        static final PropertyValue<Integer> TEMPORAL_HORIZONTAL_ALIGNMENT
        The default horizontal alignment for temporal columns.
        Value type: Integer
        Default value: SwingConstants.RIGHT
      • BOOLEAN_HORIZONTAL_ALIGNMENT

        static final PropertyValue<Integer> BOOLEAN_HORIZONTAL_ALIGNMENT
        The default horizontal alignment for boolean columns.
        Value type: Integer
        Default value: SwingConstants.CENTER
    • Method Detail

      • isDisplayConditionState

        boolean isDisplayConditionState()
        Returns:
        true if the column condition state should be represented visually
      • foregroundColor

        default Color foregroundColor​(JTable table,
                                      int row,
                                      boolean selected)
        Provides the foreground to use for cells in the given table.
        Parameters:
        table - the table
        row - the row
        selected - true if the cell is selected
        Returns:
        the foreground color
      • backgroundColor

        default Color backgroundColor​(JTable table,
                                      int row,
                                      boolean selected)
        Provides the background color for cells in the given table.
        Parameters:
        table - the table
        row - the row
        selected - true if the cell is selected
        Returns:
        the background color