Hi, i just tried to use your component for my facultaty softwere and its very good nice and easy to use but i can not find how to for example disable dropping Dockable on DockStations is this possible or better to disable dragging Dockables. Thank you.
There is the VetoableDockRelocatorListener which is added to the DockRelocator (DockController.getRelocator().add…), it can “cancel” any drag and drop event.
Or there is the DockAcceptance, an interface that can be added to the DockController (addAcceptance). It can be used to prevent drag and drop operations to select certain DockStations as target (in the end it’s much like the listener).
Or you can implement a DummyDockRelocator (which does nothing), then implement a subclass of DefaultDockControllerFactory, and create your controller with the modified factory. I would not suggest this solution, it’s complicated.
And finally: if you don’t, try out the Common-project, with its CControl and CDockables. It adds nicer buttons to the dockables and persistent storage of the layout is better handled.