Hello,
What is DockingFrames’ API for disabling dockables?
By disabling a dockable, I mean sort of graying-out the dockable tab, just like tabs are disabled in a JTabbedPane for instance (check attachment).
Thank you,
Shant
Hello,
What is DockingFrames’ API for disabling dockables?
By disabling a dockable, I mean sort of graying-out the dockable tab, just like tabs are disabled in a JTabbedPane for instance (check attachment).
Thank you,
Shant
When using Common:
dockable.setEnabled( EnableableItem.TABS, false );```
Thank you Beni for the ultra-quick reply!
But I can’t find such method in AbstractCDockable (nor in CDockable)! There should be ‚setEnabled‘ in AbstractCDockable!?
Are you using the newest version? This API is only available since 1.1.1p7, which is less then a week old.
Oh! No, I was still using 1.1.1p6*
Nice! So this seems to be a new feature!?
OK then, I’ll update my version and get back to you in case anything goes wrong.
Thank you Beni,
Shant
Yep, it is new. There is a chance that it does not yet work as intended…
Hi Beni,
Just doing:
AbstractCDockable dockable = ...
dockable.setEnabled( EnableableItem.TABS, false );
as you suggested, worked for me as intended (i.e. graying-out the dockable tab). So I didn’t have to use the other options in EnableableItem, nor DisablingStrategy.
Thank you,
Shant