Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Binding text on button(Binding text on button with string attribute)
Binding text on button [message #786417] Mon, 30 January 2012 11:53 Go to next message
Evgeny Ustimenko is currently offline Evgeny UstimenkoFriend
Messages: 2
Registered: January 2012
Junior Member
Hello, everyone. I need to bind my text attribute with radio-button text, what I should use? Can u give me an example
Re: Binding text on button [message #810369 is a reply to message #786417] Thu, 01 March 2012 02:37 Go to previous message
Patrik Dufresne is currently offline Patrik DufresneFriend
Messages: 10
Registered: July 2009
Junior Member
Either I don't understand your question or your question is too simple.

If you want to bind the text property of a button, you may proceed as follow:

Text text;
[...]
WritableValue observable = new WritableValue();
observable.setValue("the text value");
dbc.bindValue(WidgetProperties.text().observe(text), observable);

Previous Topic:[databinding] Whats is the minimum to bind a custom model
Next Topic:Why ErrorDialog is not showing exception's stack trace from IStatus?
Goto Forum:
  


Current Time: Fri Nov 21 20:41:30 GMT 2014

Powered by FUDForum. Page generated in 0.01517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software