@Override protected final void unbindUIControl() { super.unbindUIControl(); final Grid control = getUIControl(); if (control != null) { for (final GridColumn column : control.getColumns()) { column.removeSelectionListener(sortListener); } control.removeSelectionListener(selectionTypeEnforcer); } }
@Override protected final void bindUIControl() { super.bindUIControl(); final Grid control = getUIControl(); if (control != null) { for (final GridColumn column : control.getColumns()) { column.addSelectionListener(sortListener); column.setCellRenderer(cellRenderer); } control.addSelectionListener(selectionTypeEnforcer); control.setEmptyCellRenderer(emptyCellRenderer); } }