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 06:53 Go to next message
Evgeny Ustimenko is currently offline Evgeny Ustimenko
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] Wed, 29 February 2012 21:37 Go to previous message
Patrik Dufresne is currently offline Patrik Dufresne
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: Thu Apr 24 01:39:33 EDT 2014

Powered by FUDForum. Page generated in 0.03291 seconds