| 
| jface databinding: bind radio selection to boolean [message #328640] | Thu, 29 May 2008 07:46  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: lukas.myslivec.com 
 hello,
 
 i am trying to bind the selection of radio button to a single boolean
 value. there is no bean, just a single boolean.
 
 like:
 
 Button button1 = new Button(group1, SWT.RADIO);
 button1.setText("Name");
 
 DataBindingContext dbc = new DataBindingContext();
 
 dbc.indValue((SWTObservables.observeSelection(button1),
 OBSERVEMYBOOLEAN(selected) ,null,null);
 
 
 ---
 
 is that possible somehow?
 
 regards
 lukas
 |  |  |  | 
| 
| Re: jface databinding: bind radio selection to boolean [message #328654 is a reply to message #328640] | Fri, 30 May 2008 09:39  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: malloovidio.bluewin.ch 
 Hi Lukas,
 
 is your code below not working? I think it's pretty fine the way
 your are doing it.
 
 Regards,
 Ovidio
 
 lukas wrote:
 > hello,
 >
 > i am trying to bind the selection of radio button to a single boolean
 > value. there is no bean, just a single boolean.
 >
 > like:
 >
 > Button button1 = new Button(group1, SWT.RADIO);
 > button1.setText("Name");
 >
 > DataBindingContext dbc = new DataBindingContext();
 >       dbc.indValue((SWTObservables.observeSelection(button1),
 > OBSERVEMYBOOLEAN(selected) ,null,null);
 >
 >
 > ---
 >
 > is that possible somehow?
 >
 > regards
 > lukas
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.39854 seconds