|Binding SWT text widget to an Integer [message #1162776]
||Wed, 30 October 2013 12:08
| Baruch Youssin
Registered: April 2013
I think I am missing something very basic about the WindowBuilder's bindings.|
I am trying to do a very simple thing: bind a text widget to an int to use the existing converters and validators (I am sure they exist) for graphic input of integers. I am interested in one-directional binding only, to read the int from the user input.
The doc http://help.eclipse.org/kepler/index.jsp says: "Beans: any field of the current compilation unit may be selected."
I have succeeded creating a field, HHours, of the type MyInteger that shows up in the list of fields in the model:
However, you can see in this picture that the properties (actually, fields) of this field do not show up in the list of properties.
In fact, MyInteger class has two fields of the types String and int:
(Changing these fields from private to public does not help.)
None of these fields shows up in the list of properties that can be bound.
The field HHours is defined in a very straighforward way in the same GUI class that contains the text widget:
The entire jar is attached, just in case.
I would very much appreciate any help or pointers to docs where these basics are written, as I have not found any.
I am running Kepler on Ubuntu 12.04 64 bit.
Powered by FUDForum
. Page generated in 0.01478 seconds