Package org.dashbuilder.displayer.client
Class PerspectiveCoordinator
- java.lang.Object
-
- org.dashbuilder.displayer.client.PerspectiveCoordinator
-
@ApplicationScoped public class PerspectiveCoordinator extends Object
It holds the set of Displayer instances being displayed on the current perspective.It also makes sure those instances are properly synced to reflect the data set manipulation requests issued by any Displayer on the dashboard.
-
-
Constructor Summary
Constructors Constructor Description PerspectiveCoordinator()PerspectiveCoordinator(org.dashbuilder.displayer.client.DisplayerCoordinator coordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDisplayer(org.dashbuilder.displayer.client.Displayer displayer)Adds a Displayer instance to the current perspective context.voideditOff()Turn off the edition of the perspectivevoideditOn()Turn on the edition of the perspectiveList<org.dashbuilder.displayer.client.Displayer>getDisplayerList()booleanremoveDisplayer(org.dashbuilder.displayer.client.Displayer displayer)Removes a Displayer instance from the current perspective context.
-
-
-
Method Detail
-
addDisplayer
public void addDisplayer(org.dashbuilder.displayer.client.Displayer displayer)
Adds a Displayer instance to the current perspective context.
-
removeDisplayer
public boolean removeDisplayer(org.dashbuilder.displayer.client.Displayer displayer)
Removes a Displayer instance from the current perspective context.
-
getDisplayerList
public List<org.dashbuilder.displayer.client.Displayer> getDisplayerList()
- Returns:
- the current list of displayers
-
editOn
public void editOn()
Turn on the edition of the perspective
-
editOff
public void editOff()
Turn off the edition of the perspective
-
-