UIMenuSeparator.COMPONENT_TYPE);
sep.setId(getId("sep_2"));
menu.getChildren().add(sep);
// add menu items for changing column visibility
UIMenuGroup group = (HtmlMenuGroup) context.getApplication()
.createComponent(UIMenuGroup.COMPONENT_TYPE);
group.setId(getId("visibility"));
group.setValue(ComponentMessageUtil.getMessage(context, MSG_COLUMNS,
new Object[] {}).getSummary());
group.setIcon(iconColumnsURI);
menu.getChildren().add(group);
Iterator<UIColumn> columns = table.getSortedColumns();
visibleColumnsCount = table.getVisibleColumnsCount();