Search in sources :

Example 6 with ColumnCategoriesModel

use of org.eclipse.nebula.widgets.nattable.columnCategories.ColumnCategoriesModel in project nebula.widgets.nattable by eclipse.

the class _010_Column_categories method configureColumnCategoriesInChooser.

private void configureColumnCategoriesInChooser() {
    DefaultBodyLayerStack bodyLayer = this.gridLayer.getBodyLayerStack();
    ColumnCategoriesModel model = new ColumnCategoriesModelFixture();
    bodyLayer.registerCommandHandler(new ChooseColumnsFromCategoriesCommandHandler(bodyLayer.getColumnHideShowLayer(), this.gridLayer.getColumnHeaderLayerStack().getColumnHeaderLayer(), this.gridLayer.getColumnHeaderLayerStack().getDataLayer(), model));
}
Also used : ColumnCategoriesModel(org.eclipse.nebula.widgets.nattable.columnCategories.ColumnCategoriesModel) ChooseColumnsFromCategoriesCommandHandler(org.eclipse.nebula.widgets.nattable.columnCategories.ChooseColumnsFromCategoriesCommandHandler) DefaultBodyLayerStack(org.eclipse.nebula.widgets.nattable.layer.stack.DefaultBodyLayerStack)

Aggregations

ColumnCategoriesModel (org.eclipse.nebula.widgets.nattable.columnCategories.ColumnCategoriesModel)6 Node (org.eclipse.nebula.widgets.nattable.columnCategories.Node)4 Test (org.junit.Test)4 TableColumn (org.eclipse.nebula.widgets.nattable.extension.builder.model.TableColumn)3 LinkedHashMap (java.util.LinkedHashMap)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 ChooseColumnsFromCategoriesCommandHandler (org.eclipse.nebula.widgets.nattable.columnCategories.ChooseColumnsFromCategoriesCommandHandler)1 DefaultBodyLayerStack (org.eclipse.nebula.widgets.nattable.layer.stack.DefaultBodyLayerStack)1