View previous topic :: View next topic |
Author |
Message |
maksim
Joined: 03 Feb 2011 Posts: 4 Location: Russia
|
Posted: Fri Feb 18, 2011 5:44 pm Post subject: HButtonBox.createActionBox return type - bug or feature? |
|
|
Hello!
HButtonBox.createActionBox method creates HButtonBox object
but returns ButtonBox object:
Code: | static ButtonBox createActionBox()
{
ButtonBox bBox = new HButtonBox();
bBox.setLayout(ButtonBoxStyle.END);
bBox.setBorderWidth(5);
bBox.setSpacing(7);
return bBox;
} |
For VButtonBox it is the same.
Because of this I have to make a type cast.
Is it needed for some purpose? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sun Mar 06, 2011 9:19 am Post subject: |
|
|
I don't know why is't like this, it should probably be changed. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sat Mar 12, 2011 9:53 am Post subject: |
|
|
Changed in svn r806 |
|
Back to top |
|
|
|