Class DefaultTableFields
- java.lang.Object
-
- com.caplin.motif.fx.trading.posttradehistory.DefaultTableFields
-
public class DefaultTableFields 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 Table
addPostTradeHistoryHeaders(Table table)
Adds default post trade history headers to your table configurationstatic Table
addPostTradeHistoryRow(Table table, java.time.LocalDate date, FormattedAmount amount, java.time.LocalDate settlementDate, java.lang.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(java.time.LocalDate date)
Creates a date cell to add to your post trade history table rowstatic Table
createPostTradeHistoryTable()
Creates an post trade history table with no rowsstatic TableCell
createRemainingAmountCell(FormattedAmount amount)
Creates a remaining amount cell to add to your post trade history table rowstatic TableCell
createSettlementDateCell(java.time.LocalDate settlementDate, java.lang.String tenor)
Creates a settlement date cell to add to your post trade history table row
-
-
-
Method Detail
-
addPostTradeHistoryHeaders
public static Table addPostTradeHistoryHeaders(Table table)
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, java.time.LocalDate date, FormattedAmount amount, java.time.LocalDate settlementDate, @Nullable java.lang.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 occuredamount
- 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
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 occured
-
createRemainingAmountCell
public static TableCell createRemainingAmountCell(FormattedAmount amount)
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 occured
-
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
-
createSettlementDateCell
public static TableCell createSettlementDateCell(java.time.LocalDate settlementDate, @Nullable java.lang.String tenor)
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
public static TableCell createActionCell(PostTradeHistoryAction postTradeHistoryAction)
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
public static Table createPostTradeHistoryTable()
Creates an post trade history table with no rows
-
-