Class DefaultTableFields
java.lang.Object
com.caplin.motif.fx.trading.posttradehistory.DefaultTableFields
Static builder methods to build standard Tables
-
Method Summary
Modifier and TypeMethodDescriptionstatic Table
addPostTradeHistoryHeaders
(Table table) Adds default post trade history headers to your table configurationstatic Table
addPostTradeHistoryRow
(Table table, LocalDate date, FormattedAmount amount, LocalDate settlementDate, String settlementTenor, FormattedAmount remainingAmount, PostTradeHistoryAction postTradeHistoryAction) Adds a post trade history row to your table configurationstatic TableCell
createActionCell
(PostTradeHistoryAction postTradeHistoryAction) Creates an action cell to add to your post trade history table rowstatic 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 Table
Creates an post trade history table with no rowsstatic TableCell
Creates a remaining amount cell to add to your post trade history table rowstatic TableCell
createSettlementDateCell
(LocalDate settlementDate, String tenor) Creates a settlement date cell to add to your post trade history table row
-
Method Details
-
addPostTradeHistoryHeaders
Adds default post trade history headers to your table configuration- Parameters:
table
- The Table to add the headers to
-
addPostTradeHistoryRow
public static Table addPostTradeHistoryRow(Table table, LocalDate date, FormattedAmount amount, LocalDate settlementDate, @Nullable String settlementTenor, FormattedAmount remainingAmount, PostTradeHistoryAction postTradeHistoryAction) Adds a post trade history row to your table configuration- Parameters:
table
- The Table to add the row todate
- The date the post trade history event occurredamount
- The amount of the new tradesettlementDate
- The settlement date of the new tradesettlementTenor
- Optional tenor, to be displayed in brackets after the settlement dateremainingAmount
- The remaining amount of the parent trade after the new trade has been executedpostTradeHistoryAction
- The action to perform on click of the button
-
createDateCell
Creates a date cell to add to your post trade history table row- Parameters:
date
- The date the post trade history event occurred
-
createRemainingAmountCell
Creates a remaining amount cell to add to your post trade history table row- Parameters:
amount
- The remaining amount of the parent trade after the post trade event occurred
-
createAmountCell
Creates an amount cell to add to your post trade history table row- Parameters:
amount
- The amount of the new trade
-
createSettlementDateCell
Creates a settlement date cell to add to your post trade history table row- Parameters:
settlementDate
- The settlement date of the new trade createdtenor
- Optional tenor, to be displayed in brackets after the settlement date
-
createActionCell
Creates an action cell to add to your post trade history table row- Parameters:
postTradeHistoryAction
- The action to perform on click of the button
-
createPostTradeHistoryTable
Creates an post trade history table with no rows
-