Skip to content

Commit a3bd9ac

Browse files
javier-godoymlopezFC
authored andcommitted
deprecate: deprecate footer/header styles
1 parent 5097f9f commit a3bd9ac

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/gridhelpers/GridHelper.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,18 +433,54 @@ public static boolean isFooterVisible(Grid<?> grid) {
433433
private final HeaderFooterStylesHelper headerFooterStylesHelper =
434434
new HeaderFooterStylesHelper(this);
435435

436+
/**
437+
* Returns a helper for managing CSS styles on cells within a header row.
438+
*
439+
* @param grid the grid containing the header row
440+
* @param row the header row to style
441+
* @return a {@link GridStylesHelper} for managing styles on the header row's cells
442+
* @deprecated Use {@link HeaderCell#setPartName(String)} and {@link HeaderCell#getPartName()}
443+
*/
444+
@Deprecated
436445
public static GridStylesHelper getHeaderStyles(Grid<?> grid, HeaderRow row) {
437446
return getHelper(grid).headerFooterStylesHelper.getStyles(row);
438447
}
439448

449+
/**
450+
* Returns a helper for managing CSS styles on cells within a footer row.
451+
*
452+
* @param grid the grid containing the footer row
453+
* @param row the footer row to style
454+
* @return a {@link GridStylesHelper} for managing styles on the footer row's cells
455+
* @deprecated Use {@link FooterCell#setPartName(String)} and {@link FooterCell#getPartName()}
456+
*/
457+
@Deprecated
440458
public static GridStylesHelper getFooterStyles(Grid<?> grid, FooterRow row) {
441459
return getHelper(grid).headerFooterStylesHelper.getStyles(row);
442460
}
443461

462+
/**
463+
* Returns a helper for managing CSS styles on a specific header cell.
464+
*
465+
* @param grid the grid containing the header cell
466+
* @param cell the header cell to style
467+
* @return a {@link GridStylesHelper} for managing styles on the header cell
468+
* @deprecated Use {@link HeaderCell#setPartName(String)} and {@link HeaderCell#getPartName()}
469+
*/
470+
@Deprecated
444471
public static GridStylesHelper getHeaderStyles(Grid<?> grid, HeaderCell cell) {
445472
return getHelper(grid).headerFooterStylesHelper.getStyles(cell);
446473
}
447474

475+
/**
476+
* Returns a helper for managing CSS styles on a specific footer cell.
477+
*
478+
* @param grid the grid containing the footer cell
479+
* @param cell the footer cell to style
480+
* @return a {@link GridStylesHelper} for managing styles on the footer cell
481+
* @deprecated Use {@link FooterCell#setPartName(String)} and {@link FooterCell#getPartName()}
482+
*/
483+
@Deprecated
448484
public static GridStylesHelper getFooterStyles(Grid<?> grid, FooterCell cell) {
449485
return getHelper(grid).headerFooterStylesHelper.getStyles(cell);
450486
}

0 commit comments

Comments
 (0)