"Mikael Svane" <
[hidden email]> wrote in message
news:bvmidu$tid9s$
[hidden email]...
> In a project that I am working on, I use a card container with cards
> (ContainerViews). The card container has two cards, one - the first - that
> is always the same and one that, when the main view is shown, is chosen
from
> a collection of three cards. Instead of programmatically creating one of
the
> three cards when the view is shown, is it possible to create them in the
> View Composer, save them and then load and add the correct one to the card
> container when the view is opened? In that case, how do I create a view
that
> is neither a Shell view nor a Dialog view in the View Composer and how do
I
> load the saved view and add it to the card container?
Yes, you can do what you want to do. You can create a Presenter
subclass(es) that contain(s) the view or views you want to use in the card
container. Take a look at the method ClassBrowserAbstract<<createPlugins to
see how to add a view to a card container. That code adds the Class Diagram
tab to the class browser and is called indirectly from the onViewOpened
method.
Chris