use of org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeRowCommandHandler in project nebula.widgets.nattable by eclipse.
the class GridLayer method setBodyLayer.
public void setBodyLayer(ILayer bodyLayer) {
setChildLayer(GridRegion.BODY, bodyLayer, 1, 1);
// update the command handlers for auto resize because of the connection
// to the body layer stack
unregisterCommandHandler(AutoResizeColumnsCommand.class);
unregisterCommandHandler(AutoResizeRowsCommand.class);
registerCommandHandler(new AutoResizeColumnCommandHandler(this));
registerCommandHandler(new AutoResizeRowCommandHandler(this));
}
use of org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeRowCommandHandler in project nebula.widgets.nattable by eclipse.
the class GridLayer method registerCommandHandlers.
@Override
protected void registerCommandHandlers() {
registerCommandHandler(new PrintCommandHandler(this));
registerCommandHandler(new ExportCommandHandler(this));
registerCommandHandler(new AutoResizeColumnCommandHandler(this));
registerCommandHandler(new AutoResizeRowCommandHandler(this));
}
Aggregations