Community
Participate
Working Groups
It would be nice if we could change the enabled-State of a LabelRidget automatically, when its corresponding TextRidgets enabled-State changes. For example if we have a SubModuleView with a LabelRidget "labelFirstName" and a TextRidget "textFirstName" and we disable the TextRidget, then the labelFirstName should get disabled too. This could be easily accomplished by using a naming convention like in the example above. Then we could add a PropertyChangeListener to the TextRidget and propagate the enabled-State to the LabelRidget.
Created attachment 144523 [details] rudimental implementation showing how to connect a TextRidget with a LabelRidget
Created attachment 146376 [details] Implementation + TestCase + Update for Riena ExampleClient The behaviour can be customized by extension points to provide a labelPrefix or to add a custom LabelFinderStrategy.
patch committed, thanks Steffen
Very cool - thanks Steffen! Could you please add an entry about it to the Riena New & Noteworthy for this milestone ? http://wiki.eclipse.org/Riena_New_And_Noteworthy Thanks again, Elias.