Announcement Announcement Module
Collapse
No announcement yet.
vldocking implementation with two views Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • vldocking implementation with two views

    Hi,
    I'm working on an implementation with vldocking. Works great but I can't seem to get something working. Here's the case.

    I want two views, at the left a taskview ( a VLDockingViewDescriptor), at the right a contentview ( a VLDockingViewDescriptor).
    The taskview always has to be there and the contentview has to be replaced by other views. The initial layout is simple but how do i replace the contentview
    I just want to hide the whole view but NOT with a autohide (I don't want to see a buttonbar with hidden views, I want to make them visible by selecting them in the view menu).

    Could you please help?

  • #2
    Does closing the current view, and opening the new view not work?

    If it results in the right views being opened, but in the wrong place, take a look at the VLDockingLayoutManager interface.

    Comment


    • #3
      possible, but how do I do that programaticaly?

      Comment


      • #4
        Sorry, this is the interface:

        Code:
        public interface VLDockingLayoutManager {
        
            void addDockable(DockingDesktop desktop, Dockable dockable);
        
            void removeDockable(DockingDesktop desktop, Dockable dockable);
        
        }
        This is the default implementation:

        Code:
            private class DefaultLayoutManager implements VLDockingLayoutManager {
        
                public void addDockable(DockingDesktop desktop, Dockable dockable) {
                    desktop.addDockable(dockable);
                }
        
                public void removeDockable(DockingDesktop desktop, Dockable dockable) {
                    desktop.remove(dockable);
                }
        
            }
        I suggest you look at the APIDOC for DockingDesktop (in the VLDocking distro), to understand how you can programmatically control where new Dockable's are placed.

        http://www.vlsolutions.com/en/docume...ngDesktop.html

        Hope this helps.

        Rogan

        Comment

        Working...
        X