@@ -123,7 +123,7 @@ protected List<GridFooter<T>> getGridFooters(Grid<T> grid) {
123123 .map (
124124 column ->
125125 new GridFooter <>(
126- renderFooterCellTextContent (grid , column , null ), column
126+ renderFooterCellTextContent (grid , column ), column
127127 )
128128 )
129129 .collect (Collectors .toList ());
@@ -158,8 +158,7 @@ private String renderHeaderCellTextContent(Grid<T> grid, Column<T> column,
158158 return headerOrFooter == null ? "" : headerOrFooter ;
159159 }
160160
161- private String renderFooterCellTextContent (Grid <T > grid , Column <T > column ,
162- SerializableFunction <Column <T >, String > obtainCellFunction ) {
161+ private String renderFooterCellTextContent (Grid <T > grid , Column <T > column ) {
163162 String headerOrFooter = (String ) ComponentUtil .getData (column , GridExporter .COLUMN_FOOTER );
164163 if (Strings .isBlank (headerOrFooter )) {
165164 SerializableFunction <Column <?>, Component > getHeaderOrFooterComponent ;
@@ -169,13 +168,9 @@ private String renderFooterCellTextContent(Grid<T> grid, Column<T> column,
169168 if (Strings .isBlank (headerOrFooter )) {
170169 try {
171170 Component component ;
172- if (obtainCellFunction !=null ) {
173- headerOrFooter = obtainCellFunction .apply (column );
174- } else {
175171 component = getHeaderOrFooterComponent .apply (column );
176- if (component != null ) {
172+ if (component != null ) {
177173 headerOrFooter = component .getElement ().getTextRecursively ();
178- }
179174 }
180175 } catch (RuntimeException e ) {
181176 throw new IllegalStateException (
0 commit comments