Package org.dashbuilder.displayer.client
Class DisplayerCoordinator
- java.lang.Object
-
- org.dashbuilder.displayer.client.DisplayerCoordinator
-
@Dependent public class DisplayerCoordinator extends Object
The coordinator class holds a list of Displayer instances and it makes sure that the data shared among all of them is properly synced. This means every time a data display modification request comes from any of the displayer components the rest are updated to reflect those changes.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.dashbuilder.displayer.client.DisplayerCoordinator.CoordinatorListenercoordinatorListenerprotected List<Displayer>displayerListprotected Set<DisplayerListener>listenerSetprotected Map<Displayer,List<Displayer>>notificationVetoMapprotected RendererManagerrendererManagerprotected Map<RendererLibrary,List<Displayer>>rendererMap
-
Constructor Summary
Constructors Constructor Description DisplayerCoordinator(RendererManager rendererManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDisplayer(Displayer displayer)voidaddDisplayers(Collection<Displayer> displayers)voidaddDisplayers(Displayer... displayers)voidaddListener(DisplayerListener... listeners)voidaddNotificationVeto(List<Displayer> vetoedDisplayers)voidaddNotificationVeto(Displayer target, List<Displayer> vetoedDisplayers)voidclear()voidcloseAll()voiddrawAll()voiddrawAll(org.uberfire.mvp.Command onSuccess, org.uberfire.mvp.Command onFailure)List<Displayer>getDisplayerList()booleanisNotificationVetoed(Displayer from, Displayer to)voidredrawAll()voidredrawAll(org.uberfire.mvp.Command onSuccess, org.uberfire.mvp.Command onFailure)booleanremoveDisplayer(Displayer displayer)
-
-
-
Field Detail
-
listenerSet
protected Set<DisplayerListener> listenerSet
-
rendererMap
protected Map<RendererLibrary,List<Displayer>> rendererMap
-
coordinatorListener
protected org.dashbuilder.displayer.client.DisplayerCoordinator.CoordinatorListener coordinatorListener
-
rendererManager
protected RendererManager rendererManager
-
-
Constructor Detail
-
DisplayerCoordinator
@Inject public DisplayerCoordinator(RendererManager rendererManager)
-
-
Method Detail
-
addListener
public void addListener(DisplayerListener... listeners)
-
addDisplayers
public void addDisplayers(Collection<Displayer> displayers)
-
addDisplayers
public void addDisplayers(Displayer... displayers)
-
addDisplayer
public void addDisplayer(Displayer displayer)
-
removeDisplayer
public boolean removeDisplayer(Displayer displayer)
-
drawAll
public void drawAll()
-
redrawAll
public void redrawAll()
-
drawAll
public void drawAll(org.uberfire.mvp.Command onSuccess, org.uberfire.mvp.Command onFailure)
-
redrawAll
public void redrawAll(org.uberfire.mvp.Command onSuccess, org.uberfire.mvp.Command onFailure)
-
closeAll
public void closeAll()
-
clear
public void clear()
-
addNotificationVeto
public void addNotificationVeto(Displayer target, List<Displayer> vetoedDisplayers)
-
-