This example demonstrates the usage of the IDockableAcceptor. A DockableAcceptor allows you to control which dockables are accepted to be dragged and docked into a target JYDockingView.

By setting an IDockableAcceptor you can specify your own docking rules. Note: If a DockableAcceptor is set, the setting of JYDockingView#setTerritoryBlocked(...) will be ignored.

The first rule in the example declines to dock in the center region of the main JYDockingView. The second rule doesn't accept the info dockable to be docked into the main dockable.

All relevant lines are highlighted. Press Run... button to start the example.