Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTabbed text field using Jface databinding
https://www.eclipse.org/forums/index.php/mv/msg/445332/995769/#msg_995769
I have, for example SSN number (1234-5678). This need to be in two text fields as per attached screenshot. I tried to create, but one only SSN number 1234 gets populated in both text field. What i did is i created POJO which holds SSN value and bind to 2 text field. Instead do i need to create 2 ssn fields in POJO? For example
Initial version
class A{
private string ssn;
}
Planned change
class A{
private string ssn1
private string ssn2
}
please help me out]]>Prashant p2012-12-31T04:07:35-00:00Re: Tabbed text field using Jface databinding
https://www.eclipse.org/forums/index.php/mv/msg/445332/1008409/#msg_1008409
You can use the DateAndTimeObservableValue class as an example of how to
do this properly. That class splits a single Date timestamp field into
a Date containing the date part only and a Date containing the time part
only, so these can be bound to two controls, one showing the date part
and one the time part.
I know that class is quite big and more complex than perhaps you might
expect. I am hoping this will be addressed in e4 and made simpler.
Nigel Westbury
On 31/12/2012 04:07, Prashant p wrote:
> Hi,
>
> I have, for example SSN number (1234-5678). This need to be in two text fields as per attached screenshot. I tried to create, but one only SSN number 1234 gets populated in both text field. What i did is i created POJO which holds SSN value and bind to 2 text field. Instead do i need to create 2 ssn fields in POJO? For example
>
> Initial version
>
> class A{
>
> private string ssn;
> }
>
> Planned change
>
> class A{
> private string ssn1
> private string ssn2
> }
>
> please help me out
>]]>Nigel Westbury2013-02-12T11:16:53-00:00