Package com.imc.iss.groovy.model
Class GroovyTable
java.lang.Object
com.imc.iss.groovy.model.GroovyTable
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 Summary
ConstructorsConstructorDescriptionGroovyTable(List<GroovyField> fields, List<GroovyRecord> records) To initalise the table with the fields and records. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetDisplayOnUI(boolean flag) voidsetFields(List<GroovyField> fields) voidsetRecords(List<GroovyRecord> records)
-
Constructor Details
-
GroovyTable
To initalise the table with the fields and records.- Parameters:
fields- as List<GroovyField> the fieldsrecords- 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
- Returns:
- the table fields as List<GroovyField>
-
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
- Parameters:
fields- as List<GroovyField> to set
-
setRecords
- Parameters:
records- as List<GroovyRecord> to set
-