Support for cloned actions in the IlvDashboardEditBar

Article ID: 2386
Last updated: 30 May, 2018
Article ID: 2386
Last updated: 30 May, 2018
Revision: 3
Views: 869
Posted: 14 Mar, 2011
by Dean J.
Updated: 30 May, 2018
by Gargani A.

Question

How to clone the actions of IlvDashboarEditBar for usage in multiple dashboard editors?

Answer

IlvDashboardEditBar is a predefined toolbar containing IlvDashboardAction and 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.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2386
Last updated: 30 May, 2018
Revision: 3
Views: 869
Posted: 14 Mar, 2011 by Dean J.
Updated: 30 May, 2018 by Gargani A.
Also listed in


Others in this category