I have a question about how to dock a dockable in the desired position.
Imagine i have the following situation. I have two dockables already docked (see the attached screenshot), and now i want to add another dockable. But i want to dock it onto the green dockable, so that another tab is added and i can switch between those two panels.
I tried a lot with locations, but none of them worked the way i want.
The above seen layout is created this way:
AbstractView view = m_registeredViews.get(View1.ID).getView(this);
view.setLocation(CLocation.base().normal());
m_dockControl.add((SingleCDockable)view);
view.setVisible(true);
AbstractView view = m_registeredViews.get(View2.ID).getView(this);
view.setLocation(CLocation.base().normalWest(0.25));
m_dockControl.add((SingleCDockable)view);
view.setVisible(true);
...
- Is it possible to dock another view directly onto View1? How can i do this?
- Is it possible to do that without having to get a reference to the desired view? For example if i dock a view with
setLocation(CLocation.base().normal())
is it possible to dock another view directly onto it with the same command?
Thanks very much for any help.
Greetings, -chris-