Interface DataTablesExportable

  • All Known Implementing Classes:
    DTProjectSamples

    public interface DataTablesExportable
    This interface is responsible for enforcing that classes implementing DataTablesResponseModel and need to be exportable will be able to explicitly state which attributes and in which order they need to be exported.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getExportableTableHeaders​(org.springframework.context.MessageSource messageSource, java.util.Locale locale)
      Get an ordered list of internationalized table headers for the datatable.
      java.util.List<java.lang.String> getExportableTableRow()
      Convert the attribute of the class into a ordered list.
    • Method Detail

      • getExportableTableRow

        java.util.List<java.lang.String> getExportableTableRow()
        Convert the attribute of the class into a ordered list.
        Returns:
        List of values in order for the specific datatable.
      • getExportableTableHeaders

        java.util.List<java.lang.String> getExportableTableHeaders​(org.springframework.context.MessageSource messageSource,
                                                                   java.util.Locale locale)
        Get an ordered list of internationalized table headers for the datatable.
        Parameters:
        messageSource - MessageSource
        locale - Locale for the current user.
        Returns:
        List of table headers.