Search in sources :

Example 1 with AutoResizeColumnCommandHandler

use of org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeColumnCommandHandler 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));
}
Also used : AutoResizeRowCommandHandler(org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeRowCommandHandler) AutoResizeColumnCommandHandler(org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeColumnCommandHandler)

Example 2 with AutoResizeColumnCommandHandler

use of org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeColumnCommandHandler 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));
}
Also used : PrintCommandHandler(org.eclipse.nebula.widgets.nattable.print.command.PrintCommandHandler) AutoResizeRowCommandHandler(org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeRowCommandHandler) ExportCommandHandler(org.eclipse.nebula.widgets.nattable.export.command.ExportCommandHandler) AutoResizeColumnCommandHandler(org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeColumnCommandHandler)

Aggregations

AutoResizeColumnCommandHandler (org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeColumnCommandHandler)2 AutoResizeRowCommandHandler (org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeRowCommandHandler)2 ExportCommandHandler (org.eclipse.nebula.widgets.nattable.export.command.ExportCommandHandler)1 PrintCommandHandler (org.eclipse.nebula.widgets.nattable.print.command.PrintCommandHandler)1