Package de.xima.fc.gui.utils.designer
Class FormOverviewHelper
- java.lang.Object
 - 
- de.xima.fc.gui.utils.designer.FormOverviewHelper
 
 
- 
public final class FormOverviewHelper extends Object
Helper for creating and working with the form overview table in the designer.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>createClassNames(List<FormOverviewRow> formOverviewRows)static org.primefaces.model.StreamedContentcreateCsvExport(Locale locale, List<FormOverviewRow> rows)Creates a CSV document with the given form overview rows.static org.primefaces.model.StreamedContentcreateExcelExport(Locale locale, List<FormOverviewRow> rows)Creates an excel document with the given form overview rows.static List<FormOverviewRow>createFormOverviewRows(IEntityContext ec, Mandant client, Projekt project, Locale locale, FormVersion formVersion, String persist)Creates a list of all rows to show in the form overview table. 
 - 
 
- 
- 
Method Detail
- 
createClassNames
public static List<String> createClassNames(List<FormOverviewRow> formOverviewRows)
- Parameters:
 formOverviewRows- Rows that are included in the form overview table.- Returns:
 - All 
FormOverviewRow.getFieldType()s in the given rows. Used as select items. 
 
- 
createCsvExport
public static org.primefaces.model.StreamedContent createCsvExport(Locale locale, List<FormOverviewRow> rows)
Creates a CSV document with the given form overview rows. It contains one sheet with a column for each overview column.- Parameters:
 locale- Locale to use.rows- Rows to include in the CSV document.- Returns:
 - The CSV document as streamed content.
 
 
- 
createExcelExport
public static org.primefaces.model.StreamedContent createExcelExport(Locale locale, List<FormOverviewRow> rows)
Creates an excel document with the given form overview rows. It contains one sheet with a column for each overview column.- Parameters:
 locale- Locale to use.rows- Rows to include in the excel document.- Returns:
 - The excel document as streamed content.
 
 
- 
createFormOverviewRows
public static List<FormOverviewRow> createFormOverviewRows(IEntityContext ec, Mandant client, Projekt project, Locale locale, FormVersion formVersion, String persist)
Creates a list of all rows to show in the form overview table.- Parameters:
 ec- Current entity context for accessing the database.client- Current client.project- Current project.locale- Current locale.formVersion- Current form version.persist- Form items for which to show the overview.- Returns:
 - A list of all rows to be shown in the form overview table.
 
 
 - 
 
 -