Class DefaultTableFields
java.lang.Object
com.caplin.motif.commodities.invoices.DefaultTableFields
Static builder methods to build standard Tables
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Adds default commodities invoice breakdown headers to your table configurationstatic Table
addCommoditiesInvoiceBreakdownRow
(Table table, String tradeId, LocalDate tradeDate, String tradingType, FormattedAmount commodityReferencePrice, FormattedAmount fixedPrice, FormattedAmount floatingPrice, FormattedAmount quantity, String units, FormattedAmount callStrike, FormattedAmount putStrike, LocalDate effectiveDate, LocalDate terminationDate, LocalDate firstFixingDate, LocalDate finalFixingDate, LocalDate paymentDate, FormattedAmount paymentAmount) Adds a commodities invoice breakdown row to your table configurationstatic TableCell
createAmountCell
(FormattedAmount amount) Creates an amount cell to add to your commodities invoice breakdown table rowstatic Table
Creates a commodities invoice breakdown table with no rowsstatic TableCell
createDateCell
(LocalDate date) Creates a date cell to add to your commodities invoice breakdown table rowstatic TableCell
createDatePeriodCell
(LocalDate firstDate, LocalDate secondDate) Creates a date period cell to add to your commodities invoice breakdown table rowstatic TableCell
createTextCell
(String value) Creates a text cell to add to your commodities invoice breakdown table row
-
Method Details
-
createTextCell
Creates a text cell to add to your commodities invoice breakdown table row -
createAmountCell
Creates an amount cell to add to your commodities invoice breakdown table row -
createDateCell
Creates a date cell to add to your commodities invoice breakdown table row -
createDatePeriodCell
Creates a date period cell to add to your commodities invoice breakdown table row -
createCommoditiesInvoiceBreakdownTable
Creates a commodities invoice breakdown table with no rows -
addCommoditiesInvoiceBreakdownHeaders
Adds default commodities invoice breakdown headers to your table configuration- Parameters:
table
- The Table to add the headers to
-
addCommoditiesInvoiceBreakdownRow
public static Table addCommoditiesInvoiceBreakdownRow(Table table, String tradeId, LocalDate tradeDate, String tradingType, FormattedAmount commodityReferencePrice, FormattedAmount fixedPrice, FormattedAmount floatingPrice, FormattedAmount quantity, String units, FormattedAmount callStrike, FormattedAmount putStrike, LocalDate effectiveDate, LocalDate terminationDate, LocalDate firstFixingDate, LocalDate finalFixingDate, LocalDate paymentDate, FormattedAmount paymentAmount) Adds a commodities invoice breakdown row to your table configuration- Parameters:
table
- The Table to add the row to
-