Class DefaultTableFields

java.lang.Object
com.caplin.motif.commodities.invoices.DefaultTableFields

public final class DefaultTableFields extends Object
Static builder methods to build standard Tables
  • Method Details

    • createTextCell

      public static TableCell createTextCell(String value)
      Creates a text cell to add to your commodities invoice breakdown table row
    • createAmountCell

      public static TableCell createAmountCell(FormattedAmount amount)
      Creates an amount cell to add to your commodities invoice breakdown table row
    • createDateCell

      public static TableCell createDateCell(LocalDate date)
      Creates a date cell to add to your commodities invoice breakdown table row
    • createDatePeriodCell

      public static TableCell createDatePeriodCell(LocalDate firstDate, LocalDate secondDate)
      Creates a date period cell to add to your commodities invoice breakdown table row
    • createCommoditiesInvoiceBreakdownTable

      public static Table createCommoditiesInvoiceBreakdownTable()
      Creates a commodities invoice breakdown table with no rows
    • addCommoditiesInvoiceBreakdownHeaders

      public static void addCommoditiesInvoiceBreakdownHeaders(Table table)
      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