Пример #1
0
 @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);
   }
 }
Пример #2
0
 @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);
   }
 }