Refreshes window. If a batch of updates is happening, you may want to freeze and then thaw the window.
see freeze and thaw
void refresh() { _setState(); }