[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] Questions about widgets in JAXB plugin
|
Dave,
For 1), there currently exists another solution: a combo box with "yes" and "no" as the only choices.
Al
----- Albert L. Rossi <arossi@xxxxxxxxxxxxx> wrote:
> Dave,
>
> The answer to all three questions is currently "no", unfortunately. I can work on this when I'm back on Friday.
>
> Al
> ----- Dave Wootton <dwootton@xxxxxxxxxx> wrote:
> > Al
> > A few questions about widgets in your JAXB implementation
> > 1) I defined a widget as a checkBox, which assumes that the attribute
> > where the value is stored is a boolean. I'm using this to represent a PE
> > environment variable which accepts yas and no as valid values. Is there
> > any way to translate an attribute value of true/false to yes/no?
> > 2) Is there an example of how I would code a group of radio buttons? I
> > coded the following which resulted in displaying the radio buttons but no
> > labels were associated with them. I'm also not sure where to code the
> > saveValueTo, since if I coded it in the radio button definition then both
> > radio buttons would click on or off together.
> > <composite group="true" >
> > <layout>
> > <grid-layout
> > numColumns="2" makeColumnsEqualWidth="false"></grid-layout>
> > </layout>
> > <widget type="radioButton"
> > style="SWT.LEFT" saveValueTo="MP_LABELIO_ATTR">
> > <layout-data>
> > <grid-data
> > horizontalAlign="SWT.BEGINNING"></grid-data>
> > </layout-data>
> > <fixed-text>"yes"
> > </fixed-text>
> > </widget>
> > <widget type="radioButton"
> > style="SWT.LEFT" saveValueTo="MP_LABELIO_ATTR">
> > <layout-data>
> > <grid-data
> > horizontalAlign="SWT.BEGINNING"></grid-data>
> > </layout-data>
> > <fixed-text>"no"</
> > fixed-text>
> > </widget>
> > </composite>
> >
> > 3) Is there any way to enable/disable a widget dependent on an event in
> > another widget? For instance, if I have an advanced mode checkbox, I might
> > want to enable/disable other widgets depending on the checkbox state. If
> > this desn't exist, I'm not requesting it be added, just wondering if I'm
> > missing something.
> >
> > Thanks
> >
> > Dave
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev
>