glazedListsEventLayer = new GlazedListsEventLayer<T>(bodyDataLayer,
eventList);
if (tableModel.enableColumnGroups) {
columnReorderLayer = new ColumnReorderLayer(glazedListsEventLayer);
columnGroupReorderLayer = new ColumnGroupReorderLayer(
columnReorderLayer, tableModel.columnGroupModel);
columnHideShowLayer = new ColumnHideShowLayer(
columnGroupReorderLayer);
columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
columnHideShowLayer, tableModel.columnGroupModel);
selectionLayer = new SelectionLayer(columnGroupExpandCollapseLayer);
viewportLayer = new ViewportLayer(selectionLayer);
} else {
columnReorderLayer = new ColumnReorderLayer(glazedListsEventLayer);
columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
selectionLayer = new SelectionLayer(columnHideShowLayer);
viewportLayer = new ViewportLayer(selectionLayer);
}