Class PSubFieldComponentRenderer

All Implemented Interfaces:
Exportable, ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer, SwingConstants, TableCellRenderer

public class PSubFieldComponentRenderer extends PFieldComponentRenderer
PSubFieldComponentRenderer is a subclass of PFieldComponentRenderer. The basic reason for creating this class is for applying pattern as specified in BEID to a field. It renderers a field with the appropriate decimal pattern.
Version:
Author:
Radhika Tirumalasetty
See Also:
  • Constructor Details

    • PSubFieldComponentRenderer

      public PSubFieldComponentRenderer(String pattern)
      Creates a new instance of the renderer.
      Parameters:
      pattern - the format string to use for rendering in case the rounding for the value to be displayed is not avaialable.
  • Method Details

    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Overrides getTableCellRendererComponent in PFieldRendererComponent
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
      Overrides:
      getTableCellRendererComponent in class PFieldComponentRenderer
      Parameters:
      table - the table for which to format a cell
      value - the value to format
      isSelected - true if the value is selected; false otherwise
      hasFocus - true if the cell has focus; false otherwise
      row - the table row for the value
      column - the table column of the value
      Returns:
      A renderer for the specified cell.