this.table = table;
this.cm = table.getColumnModel();
Listener<TableEvent> l = new Listener<TableEvent>() {
public void handleEvent(TableEvent e) {
EventType type = e.getType();
if (type == Events.HeaderChange) {
TableColumn c = cm.getColumn(e.getColumnIndex());
table.getTableHeader().getColumnUI(e.getColumnIndex()).onTextChange(c.getText());
} else if (type == Events.WidthChange) {
table.getTableHeader().resizeColumn(e.getColumnIndex(), true);