[ImageJ-devel] feature request: disable Button from plugin callback

Adrian Daerr adrian.daerr at univ-paris-diderot.fr
Fri Aug 28 11:59:49 CDT 2015


Hello all,

It would be nice if a org.scijava.widget.Button could
be disabled (e.g. grayed out) and enabled in the UI parameter
harvesting dialog (from within some @Parameter callback) if the
current parameters do not allow its action.

This seems different from the problems associated with dynamically
changing parameter number and/or properties [1], as no reconfiguration
of the UI is required beyond a redraw. The widget should still be
displayed, only its status toggled (one could e.g. add the enabling
condition to the description/tooltip to give the user a hint).

Does this sound reasonable or should such a feature be included in 
tracker issue 42 [1]?

cheers,
Adrian

[1] https://github.com/scijava/scijava-common/issues/42
"Allow plugin parameters to be hidden"



More information about the ImageJ-devel mailing list