Class AmountRenderer

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

public class AmountRenderer extends DefaultTableCellRenderer implements Exportable
This renderer is used to show both currency and noncurrency amount fields
See Also:
  • Constructor Details

    • AmountRenderer

      public AmountRenderer()
  • Method Details

    • togglePrimaryToSecondary

      public Object togglePrimaryToSecondary(int primary, int secondary)
      Causes the component to use the BEIDManager to convert its data.
      Parameters:
      primary - the current currency ID used to display the data
      secondary - the new currency ID to use to display the data
      Throws:
      RemoteException - thrown for errors
      Since:
      Release 6.2
    • revertToPrimary

      public void revertToPrimary(int primary) throws RemoteException
      Causes the widget to display its data in the primary currency
      Parameters:
      primary - The primary currency ID for an account
      Throws:
      RemoteException
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
      Overrides:
      getTableCellRendererComponent in class DefaultTableCellRenderer
      Parameters:
      table -
      value -
      isSelected -
      hasFocus -
      row -
      column -
      Returns:
    • getDataToDisplay

      public String getDataToDisplay(Object o)
      This method is called from the PIASpreadsheet, to display the data appropriately when the table is exported.
      Specified by:
      getDataToDisplay in interface Exportable
      Parameters:
      o - Object
      Returns:
      String