Class MMDefaultTableFields

java.lang.Object
com.caplin.motif.mm.trading.posttradehistory.MMDefaultTableFields

public final class MMDefaultTableFields extends Object
Static builder methods to build standard Tables
  • Method Details

    • addRemainingAmount

      public static DisplayFields addRemainingAmount(DisplayFields displayFields, @Nullable FormattedAmount remainingAmount)
      Adds the Remaining Amount field to your display-fields configuration
      Parameters:
      displayFields - The DisplayFields to add the field to
      remainingAmount - The remaining amount
    • addPrincipalAmount

      public static DisplayFields addPrincipalAmount(DisplayFields displayFields, @Nullable FormattedAmount principalAmount)
      Adds the Principal Amount field to your display-fields configuration
      Parameters:
      displayFields - The DisplayFields to add the field to
      principalAmount - The principal amount
    • addCapitalIncreaseAmount

      public static DisplayFields addCapitalIncreaseAmount(DisplayFields displayFields, @Nullable FormattedAmount capitalIncreaseAmount)
      Adds the Capital Increase Amount field to your display-fields configuration
      Parameters:
      displayFields - The DisplayFields to add the field to
      capitalIncreaseAmount - The remaining amount
    • createAmountCell

      public static TableCell createAmountCell(FormattedAmount amount)
      Creates an amount cell to add to your post trade history table row
      Parameters:
      amount - The amount of the new trade
    • createDateCell

      public static TableCell createDateCell(LocalDate date)
      Creates a date cell to add to your post trade history table row
      Parameters:
      date - The date the post trade history event occurred
    • createMMActionCell

      public static TableCell createMMActionCell(MMPostTradeHistoryAction postTradeHistoryAction)
      Creates an action cell to add to your MM post trade history table row
      Parameters:
      postTradeHistoryAction - The action to perform on click of the button
    • addMoneyMarketPostTradeHistoryHeaders

      public static void addMoneyMarketPostTradeHistoryHeaders(Table table)
      Adds default money market post trade history headers to your table configuration
      Parameters:
      table - The Table to add the headers to
    • addDefaultMoneyMarketPostTradeHistoryFields

      public static DisplayFields addDefaultMoneyMarketPostTradeHistoryFields(DisplayFields displayFields, @Nullable FormattedAmount remainingAmount, @Nullable FormattedAmount principalAmount, @Nullable FormattedAmount capitalIncreaseAmount)
      Adds the post trade history fields to your display fields configuration
      Parameters:
      displayFields - The DisplayFields to add the field to.
      remainingAmount - The remaining amount of the money market trade
      principalAmount - The principal amount of the money market trade
      capitalIncreaseAmount - The capital increase amount of the money market trade
    • createMoneyMarketPostTradeHistoryTable

      public static Table createMoneyMarketPostTradeHistoryTable()
      Creates a money market post trade history table with no rows
    • addMMPostTradeRow

      public static Table addMMPostTradeRow(Table table, LocalDate date, FormattedAmount amount, FormattedAmount newBalance, MMPostTradeHistoryAction postTradeHistoryAction)
      Adds an MM post trade history row to your table configuration
      Parameters:
      table - The Table to add the row to
      date - The date the post trade action occurred
      amount - The amount of the post trade action
      newBalance - The new amount of the parent trade after the post trade action
      postTradeHistoryAction - The action to perform on click of the button