Browse by category:
|| | ||
How to clone the actions of
IlvDashboarEditBar for usage in multiple dashboard editors?
IlvDashboardEditBar is a predefined toolbar containing
IlvDiagrammerAction instances used to edit the contents of dashboard diagrams in a Dashboard Editor application.
However, it does not support cloned actions. This means that the actions of two different objects will address the same dashboard editor. This may cause problems if you have two dashboard editors in two different frames.
In order to work around this and to have a specific edit tool bar per dashboard editor / frame, you need to instantiate an
IlvDiagrammerToolBar with the constructor that allows you to copy the same actions set as a new instance of
IlvDashboardEditBar actions, and specify that the actions be cloned using a Boolean parameter:
IlvDiagrammerToolBar editToolBar = new IlvDiagrammerToolBar( new IlvDashboardEditBar().getActions(), IlvDiagrammerToolBar.HORIZONTAL, true /* Actions set is cloned */);
Use such a new
IlvDiagrammerToolBar instance for each dashboard editor.
|Also listed in|
|Visualizations -> JViews -> Diagrammer|
|Visualizations -> JViews -> Enterprise|
|Difference between map layers and manager layers, and use in the...||Setting position of a symbol in the dashboard editor|