@ Override public void redraw ( ) { if ( ! isDrawn ( ) ) { draw ( ) ; } else { try { beforeLoad ( ) ; beforeDataSetLookup ( ) ; dataSetHandler . lookupDataSet ( new DataSetReadyCallback ( ) { public void callback ( DataSet result ) { try { dataSet = result ; afterDataSetLookup ( result ) ; updateVisualization ( ) ; // Redraw done afterRedraw ( ) ; } catch ( Exception e ) { // Give feedback on any initialization error showError ( new ClientRuntimeError ( e ) ) ; } } public void notFound ( ) { String uuid = displayerSettings . getDataSetLookup ( ) . getDataSetUUID ( ) ; getView ( ) . errorDataSetNotFound ( uuid ) ; handleError ( "Data set not found: " + uuid ) ; } @ Override public boolean onError ( final ClientRuntimeError error ) { showError ( error ) ; return false ; } } ) ; } catch ( Exception e ) { showError ( new ClientRuntimeError ( e ) ) ; } } }
Just reload the data set and make the current displayer to redraw .