Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334400 - Calling setSelected on ToogleButtonRidget has no effect on button state
Summary: Calling setSelected on ToogleButtonRidget has no effect on button state
Status: RESOLVED WORKSFORME
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0.0   Edit
Assignee: Elias Volanakis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 12:27 EST by Joerg Pacher CLA
Modified: 2011-01-23 15:41 EST (History)
0 users

See Also:


Attachments
Snippet (3.45 KB, text/plain)
2011-01-23 15:41 EST, Elias Volanakis CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Pacher CLA 2011-01-14 12:27:05 EST
Build Identifier: 3.0.0.v20101213_3_0_0_M4

When setSelected is called a property change event for property IToggleButtonRidget.PROPERTY_SELECTED is fired.
This is catched in the constructor of AbstractToggleButtonRidget but instead calling updateSelection, updateEnabled is called.

Reproducible: Always

Steps to Reproduce:
1. Create a checkbox with UIControlsFactory.createButtonCheck
2. Call setSelected(true) on the corresponding ridget
3. Checkbox does no go into selected state
Comment 1 Elias Volanakis CLA 2011-01-23 15:40:56 EST
Could not reproduce. See attached snippet. The "check" / "uncheck" button do modify the selected state successfully. 

It would be great if you can reopen this issue with a snippet that reproduces the bug. Feel free to use mine a starting point.
Comment 2 Elias Volanakis CLA 2011-01-23 15:41:39 EST
Created attachment 187389 [details]
Snippet

Snippet demonstrates correct working behavior.