Class MMDefaultTableFields
- java.lang.Object
-
- com.caplin.motif.mm.trading.posttradehistory.MMDefaultTableFields
-
public final class MMDefaultTableFields extends java.lang.Object
Static builder methods to build standard Tables
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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, java.time.LocalDate date, FormattedAmount singleCapitalIncreaseAmount, FormattedAmount newBalance, MMPostTradeHistoryAction postTradeHistoryAction)
Adds a capital increase post trade history row to your table configurationstatic void
addMoneyMarketPostTradeHistoryHeaders(Table table)
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(java.time.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
createMoneyMarketPostTradeHistoryTable()
Creates a money market post trade history table with no rows
-
-
-
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 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
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 tradeprincipalAmount
- The principal amount of the money market tradecapitalIncreaseAmount
- 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 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
-
-