| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 20/12/2007 11:08:21
|
Matti Tahvonen
Joined: 27/03/2007 15:25:53
Messages: 32
Offline
|
Yes. To make it easier for component developers to implement size for their components the Sizable interface is to be removed. Components that has a controllable size will implement HasSize interface and use Size object to store very general size information. Previously all Sizeable components had similar logic in them. Usage example of new component resizing below.
Code:
component.getSize().setHeight(height, unit)
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 20/12/2007 12:36:35
|
dll
![[Avatar]](/images/avatar/c0c7c76d30bd3dcaefc96f40275bdc0a.jpg)
Joined: 15/12/2007 16:25:49
Messages: 33
Location: St.-Petersburg, Russia
Offline
|
Hm, now (with nightly build and corrected setWidth/height usages) it falls with NullPointerException on this line:
splitter.getSize().setSizeFull ();
, where splitter is a SplitPanel, looks like getSize() in SPlitPanel component returns null or not yet implemented
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 20/12/2007 13:12:01
|
Anonymous
|
dll wrote:
Hm, now (with nightly build and corrected setWidth/height usages) it falls with NullPointerException on this line:
splitter.getSize().setSizeFull ();
, where splitter is a SplitPanel, looks like getSize() in SPlitPanel component returns null or not yet implemented
Oops
Yep, that method (getSize() in SplitPanel) was unintentianally left undone (always returns null), but it's fixed now. The next nightly should have it fixed.
I guess this is the drawback of using IDE's like Eclipse, which do most of the coding for you. Or maybe I should check my TODO list more often
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 20/12/2007 13:13:44
|
Jouni Koivuviita
![[Avatar]](/images/avatar/1f0e3dad99908345f7439f8ffabdffc4.jpg)
Joined: 21/03/2007 11:56:21
Messages: 38
Location: Turku, Finland
Offline
|
Oops
And of course the forum crashed while I was typing the message, and my login information disappeared
|
_______________________________
Software Engineer at IT Mill
Client-side and theme specialist |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 20/12/2007 13:14:20
|
dll
![[Avatar]](/images/avatar/c0c7c76d30bd3dcaefc96f40275bdc0a.jpg)
Joined: 15/12/2007 16:25:49
Messages: 33
Location: St.-Petersburg, Russia
Offline
|
Regarding IDEs- yes, that's now almost terrible for me, when I sit to vi for quick fixes and begin expecting from it all those IDE featues like completion, suggestion, autoimorts, etc etc etc
|
|
|
 |
|
|