Safely getting access to the UI thread to modify the target count label
Signed-off-by: asharani-murugesh <asharani.murugesh@in.bosch.com>
This commit is contained in:
@@ -29,6 +29,7 @@ import com.vaadin.shared.ui.label.ContentMode;
|
||||
import com.vaadin.spring.annotation.SpringComponent;
|
||||
import com.vaadin.spring.annotation.ViewScope;
|
||||
import com.vaadin.ui.Label;
|
||||
import com.vaadin.ui.UI;
|
||||
|
||||
/**
|
||||
* @author Venugopal Boodidadinne(RBEI/BSJ)
|
||||
@@ -74,7 +75,7 @@ public class TargetFilterCountMessageLabel extends Label {
|
||||
if (custFUIEvent == CustomFilterUIEvent.TARGET_DETAILS_VIEW
|
||||
|| custFUIEvent == CustomFilterUIEvent.CREATE_NEW_FILTER_CLICK
|
||||
|| custFUIEvent == CustomFilterUIEvent.EXIT_CREATE_OR_UPDATE_FILTRER_VIEW) {
|
||||
displayTargetFilterMessage();
|
||||
UI.getCurrent().access(()->displayTargetFilterMessage());
|
||||
}
|
||||
else if (custFUIEvent == CustomFilterUIEvent.FILTER_TARGET_BY_QUERY){
|
||||
this.getUI().access(() -> displayTargetFilterMessage());
|
||||
|
||||
Reference in New Issue
Block a user