Class MMDefaultTableFields
java.lang.Object
com.caplin.motif.mm.trading.posttradehistory.MMDefaultTableFields
Static builder methods to build standard Tables
-
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayFields
addCapitalIncreaseAmount
(DisplayFields displayFields, FormattedAmount capitalIncreaseAmount) Adds the Capital Increase Amount field to your display-fields configurationstatic DisplayFields
addDefaultMoneyMarketPostTradeHistoryFields
(DisplayFields displayFields, FormattedAmount remainingAmount, FormattedAmount principalAmount, FormattedAmount capitalIncreaseAmount) Adds the post trade history fields to your display fields configurationstatic Table
addMMCapitalIncreaseRow
(Table table, LocalDate date, FormattedAmount singleCapitalIncreaseAmount, FormattedAmount newBalance, MMPostTradeHistoryAction postTradeHistoryAction) Adds a capital increase post trade history row to your table configurationstatic Table
addMMRollOverRow
(Table table, LocalDate date, FormattedAmount singleRollOverAmount, FormattedAmount newBalance, MMPostTradeHistoryAction postTradeHistoryAction) Adds a roll-over post trade history row to your table configurationstatic void
Adds default money market post trade history headers to your table configurationstatic DisplayFields
addPrincipalAmount
(DisplayFields displayFields, FormattedAmount principalAmount) Adds the Principal Amount field to your display-fields configurationstatic DisplayFields
addRemainingAmount
(DisplayFields displayFields, FormattedAmount remainingAmount) Adds the Remaining Amount field to your display-fields configurationstatic TableCell
createAmountCell
(FormattedAmount amount) Creates an amount cell to add to your post trade history table rowstatic TableCell
createDateCell
(LocalDate date) Creates a date cell to add to your post trade history table rowstatic TableCell
createMMActionCell
(MMPostTradeHistoryAction postTradeHistoryAction) Creates an action cell to add to your MM post trade history table rowstatic Table
Creates a money market post trade history table with no rows
-
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 toremainingAmount
- 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 toprincipalAmount
- 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 tocapitalIncreaseAmount
- The remaining amount
-
createAmountCell
Creates an amount cell to add to your post trade history table row- Parameters:
amount
- The amount of the new trade
-
createDateCell
Creates a date cell to add to your post trade history table row- Parameters:
date
- The date the post trade history event occurred
-
createMMActionCell
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
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 tradeprincipalAmount
- The principal amount of the money market tradecapitalIncreaseAmount
- The capital increase amount of the money market trade
-
createMoneyMarketPostTradeHistoryTable
Creates a money market post trade history table with no rows -
addMMCapitalIncreaseRow
public static Table addMMCapitalIncreaseRow(Table table, 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 todate
- The date the post trade history event occurredsingleCapitalIncreaseAmount
- The single capital increase amount of the trade after post trade actionsnewBalance
- The new amount of the trade after post trade actionspostTradeHistoryAction
- The action to perform on click of the button
-
addMMRollOverRow
public static Table addMMRollOverRow(Table table, 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 todate
- The date the post trade history event occurredsingleRollOverAmount
- The single roll-over amount of the trade after post trade actionsnewBalance
- The new amount of the trade after post trade actionspostTradeHistoryAction
- The action to perform on click of the button
-