Lock the layout to disable drag function for dockable panel

36 views
Skip to first unread message

Tao Lin

unread,
Aug 21, 2014, 1:58:21 PM8/21/14
to vldo...@googlegroups.com
Hi, 

    Is there a way to disable the drag function as i want to the workspace to be fixed?  is there any setting to achieve this?  thanks


Regards
TAO LIN

Francois Marot

unread,
Aug 30, 2014, 5:46:53 PM8/30/14
to vldo...@googlegroups.com
Hi Tao,

I don't think there is such a feature in the "official" version.
But as you can see in a previous post of mine, I implemented this feature a while ago in a specific version visible on my github.
Here is the link to the post mentionning it: https://groups.google.com/forum/#!topic/vldocking/Kgm0ekkbCO8
And here is the diff to what I modified: https://github.com/fmarot/vldocking/compare/lockUnlock-feature

It is not a stable version but shows a way to do what you are looking for.
Basiacally, I made the components extend a new class called "LockableUnlockableHeaderPanel" and there is a way to notify those components to hide their header.

Hope this helps


Francois Marot

Tao Lin

unread,
Sep 11, 2014, 11:09:27 AM9/11/14
to vldo...@googlegroups.com
Hi, Francois:

    I have seen your github repository about the lock/unlock feature.. but i don't know how to use it based on your implementation. is there any ex maple for me to follow? thanks a lot

Francois Marot

unread,
Sep 18, 2014, 5:16:07 PM9/18/14
to vldo...@googlegroups.com

Hi Tao

If I remember correctly, you just have to get an instance of the eventbus (EventBus.INSTANCE) and publish an event (whether a LockAllWidgetsEvent or an UnlockAllWidgetsEvent ). That should do it as the Eventbus is global (static).
Reply all
Reply to author
Forward
0 new messages