<div dir="ltr">Hi Adrian,<div><br></div><div>Yes, I suggest commenting on issue 42. In that issue, I wrote that graying out makes less sense than setting visible/invisible, though I am not sure that's really true in every case. Worth having a discussion there.</div><div><br></div><div>And note that technically in code, there is little difference between calling widget.setVisible(false) and widget.setEnabled(false). The former makes the widget disappear, and the latter grays it out. (I can't remember whether the containing ancestor panes automatically redo their layout when setVisible on a child component is called, though.)</div><div><br></div><div>Regards,</div><div>Curtis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 28, 2015 at 11:59 AM, Adrian Daerr <span dir="ltr"><<a href="mailto:adrian.daerr@univ-paris-diderot.fr" target="_blank">adrian.daerr@univ-paris-diderot.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
It would be nice if a org.scijava.widget.Button could<br>
be disabled (e.g. grayed out) and enabled in the UI parameter<br>
harvesting dialog (from within some @Parameter callback) if the<br>
current parameters do not allow its action.<br>
<br>
This seems different from the problems associated with dynamically<br>
changing parameter number and/or properties [1], as no reconfiguration<br>
of the UI is required beyond a redraw. The widget should still be<br>
displayed, only its status toggled (one could e.g. add the enabling<br>
condition to the description/tooltip to give the user a hint).<br>
<br>
Does this sound reasonable or should such a feature be included in tracker issue 42 [1]?<br>
<br>
cheers,<br>
Adrian<br>
<br>
[1] <a href="https://github.com/scijava/scijava-common/issues/42" rel="noreferrer" target="_blank">https://github.com/scijava/scijava-common/issues/42</a><br>
"Allow plugin parameters to be hidden"<br>
<br>
_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net" target="_blank">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" rel="noreferrer" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
</blockquote></div><br></div>