nattable is not getting updated on adding the data to eventlist [message #1713769] |
Fri, 06 November 2015 09:59  |
Eclipse User |
|
|
|
Hi
i have 2 nattables in a dialog . second table gets populated based on the selection in first table. i am updating the glazedlist of 2nd table in the listener and refreshing the table,but its not working .
EventList<secondTableData> data = GlazedLists.eventList(new ArrayList<secondTableData>());
firstTable.addLayerListener( new ILayerListener()
{
@Override
public void handleLayerEvent( ILayerEvent event )
{
if( event instanceof RowSelectionEvent )
{
final RowSelectionEvent rowEvent = ( RowSelectionEvent ) event;
int rowIndx = partTable.getRowIndexByPosition( rowEvent.getRowPositionToMoveIntoViewport() );
firstTableData = firstTableDataprovider.getRowObject(rowIndx);
//create data for add it to the glazedlist
data.add(object);
secTable.refresh();
}
}
} );
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04328 seconds