How to disable all widgets inside the panel or inside Composite?

advertisements

I have a composite widget, which contain many widgets (inside HorizontalPanel). How to disable all widgets inside HorizontalPanel or inside this composite? I can't find setEnabled() method in Composite or panels


The only way to do it is to recursively get all children of the panel and call setEnabled(false) on each widget, which extends FocusWidget