On 16 May 2011 13:02, Greg Brown <[email protected]> wrote:
> Tri-state radio buttons are not currently supported but could be fairly 
> easily. Just curious to know what the use case is? We talked about adding 
> support for this a long time ago but could never come up with a strong enough 
> use case.

They could be used for supporting defaults.

JMeter has sampler screens which are used to perform samples (e.g.
HTTP or LDAP).
It also provides default screens for most of the samplers, which
repeat most (sometimes all) of the sampler configuration options.

For example:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#LDAP_Request
and
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#LDAP_Request_Defaults

Both of these screens have radio buttons, but the defaults are ignored
because the sampler setting overrides them.
[The defaults GUI should probably not have included the buttons ;-)]

One way to fix this would be to add another radio button - "use
default", but that wastes screen space.

If there was a way to deselect all the radio buttons on the sampler,
that could be taken to mean "use the default".

On reflection, this is not really a property of the radio button, but
of the button group. So calling it a tri-state button is misleading.
Though it might be useful to implement some of the checkbox tri-state
behaviour, e.g. indicate the special state of the group by changing
the look of all the buttons (rather than just having none selected.

Of course, the JMeter screens could be changed to use a drop-down list
instead, but if there are only a few choices, IMO radio buttons are
better as all the choices are visible at once.

But there are work-rounds, so the use case is not nearly as strong as
for tri-state checkboxes (which would be useful in JMeter, again for
handling defaults).

> On May 14, 2011, at 8:44 AM, sebb wrote:
>
>> I'm looking for a a tri-state radio button implementation to use in
>> Apache JMeter, and it looks as though Pivot has at least partial
>> support for tri-state radio buttons.
>>
>> Is this correct, or am I reading the Javadoc incorrectly?
>>
>> If tri-state radio buttons are supported, is it possible to use them
>> in an application that uses Java AWT?

Reply via email to