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:Where/How can I post my improvement suggestion
Next Topic:tree viewer, cell multi selection not highlighted.
Goto Forum:

Current Time: Mon Apr 23 17:52:11 GMT 2018

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

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