rhajamor / opal

Automatically exported from code.google.com/p/opal
2 stars 0 forks source link

Cannot customize image for disabled OButton #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Look at this page 
http://code.google.com/a/eclipselabs.org/p/opal/wiki/OButton
2. Read the following text:
"And voilà !

You can customize your buttons: selection image, image when not selected or 
disabled, font color, size..."
3. Try to do this using OButton. This is not possible nether from public 
methods nether from inherited classes.

I expect that AbstractButtonRenderer as minimum must have extractImage() method 
as protected not private, so I can implement myself customization of image when 
button is disabled.
Or you should provide appropriate public method such as setDisabledImage().

Opal 0.9.5, OS: Windows7 x64, jre 1.6_i386.

Original issue reported on code.google.com by temppo...@gmail.com on 2 Oct 2012 at 3:45

GoogleCodeExporter commented 9 years ago
Good point for you. 
I've decided to make the extractImage method protected, so you can customize 
the renderer for this case.

Thank you for this report

Original comment by laurent....@gmail.com on 7 Oct 2012 at 1:27