Class GroovyTable

java.lang.Object
com.imc.iss.groovy.model.GroovyTable

public class GroovyTable extends Object
A POJO which represent a table and to be used in groovy script. It could be used to store the information return from groovy script and display it on UI in table form. (i.e: groovy extension for check credit limit)
  • Constructor Details

    • GroovyTable

      public GroovyTable(List<GroovyField> fields, List<GroovyRecord> records)
      To initalise the table with the fields and records.
      Parameters:
      fields - as List<GroovyField> the fields
      records - as List<GroovyRecord> the record of the table.
  • Method Details

    • getDisplayOnUI

      public boolean getDisplayOnUI()
      Returns:
      the flag whether to display the table on UI.
    • getFields

      public List<GroovyField> getFields()
      Returns:
      the table fields as List<GroovyField>
    • getRecords

      public List<GroovyRecord> getRecords()
      Returns:
      the table records as List<GroovyRecord>
    • setDisplayOnUI

      public void setDisplayOnUI(boolean flag)
      Parameters:
      flag - as boolean to set the indicator whether to display the table on UI.
    • setFields

      public void setFields(List<GroovyField> fields)
      Parameters:
      fields - as List<GroovyField> to set
    • setRecords

      public void setRecords(List<GroovyRecord> records)
      Parameters:
      records - as List<GroovyRecord> to set