Results 1 to 4 of 4

Thread: vldocking implementation with two views

  1. #1
    Join Date
    Jul 2007
    Posts
    2

    Unhappy 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. #2
    Join Date
    Feb 2006
    Posts
    118

    Default

    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.

  3. #3
    Join Date
    Jul 2007
    Posts
    2

    Default

    possible, but how do I do that programaticaly?

  4. #4
    Join Date
    Feb 2006
    Posts
    118

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •