tgc.setPreferencesOffered(true, "TableGuiDemoPrefs");
table = new TableController(tgc, ureq, getWindowControl(), getTranslator(), this);
table.setMultiSelect(true);
table.addMultiSelectAction("guidemo.table.submit", "submitAction");
table.addMultiSelectAction("guidemo.table.submit2", "submitAction2");
table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header1", 0, null, ureq.getLocale()));
table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header2", 1, null, ureq.getLocale()));
table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header3", 2, null, ureq.getLocale()));
table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header4", 3, null, ureq.getLocale()));
table.addColumnDescriptor(new DefaultColumnDescriptor("guidemo.table.header5", 4, null, ureq.getLocale()));
table.addColumnDescriptor(new CustomRenderColumnDescriptor("guidemo.table.header6", 5, null, ureq.getLocale(), CustomRenderColumnDescriptor.ALIGNMENT_CENTER, new ImageCellRenderer()));
table.addColumnDescriptor(new StaticColumnDescriptor("action.select", "guidemo.table.header7", "Select"));
model = new SampleTableModel();
table.setTableDataModel(model);
vcMain.put("table", table.getInitialComponent());