/** * Adds a table listener. * @param listnr to add */ public void addTableListener(TableListener listnr) { this.schemaTable.addTableListener(listnr); }
/** * Converts an Obvious Table to an infovis table. * @param table table to convert * @return the converted infovis table */ private infovis.Table convertToIvtkTable(Table table) { Table ivtkObviousTable = new IvtkObviousTable( table.getSchema().getDataSchema()); ObviousLib.fillTable(table, ivtkObviousTable); TableListener listnr = new ObviousLinkListener(table); TableListener listnr2 = new ObviousLinkListener(ivtkObviousTable); ivtkObviousTable.addTableListener(listnr); table.addTableListener(listnr2); return (infovis.Table) ivtkObviousTable.getUnderlyingImpl( infovis.Table.class); }