Class MMDefaultTableFields


  • public final class MMDefaultTableFields
    extends java.lang.Object
    Static builder methods to build standard Tables
    • Method Detail

      • 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​(java.time.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
      • addMMCapitalIncreaseRow

        public static Table addMMCapitalIncreaseRow​(Table table,
                                                    java.time.LocalDate date,
                                                    FormattedAmount singleCapitalIncreaseAmount,
                                                    FormattedAmount newBalance,
                                                    MMPostTradeHistoryAction postTradeHistoryAction)
        Adds a capital increase post trade history row to your table configuration
        Parameters:
        table - The Table to add the row to
        date - The date the post trade history event occurred
        singleCapitalIncreaseAmount - The single capital increase amount of the trade after post trade actions
        newBalance - The new amount of the trade after post trade actions
        postTradeHistoryAction - The action to perform on click of the button
      • addMMRollOverRow

        public static Table addMMRollOverRow​(Table table,
                                             java.time.LocalDate date,
                                             FormattedAmount singleRollOverAmount,
                                             FormattedAmount newBalance,
                                             MMPostTradeHistoryAction postTradeHistoryAction)
        Adds a roll-over post trade history row to your table configuration
        Parameters:
        table - The Table to add the row to
        date - The date the post trade history event occurred
        singleRollOverAmount - The single roll-over amount of the trade after post trade actions
        newBalance - The new amount of the trade after post trade actions
        postTradeHistoryAction - The action to perform on click of the button