[Logo] IT Mill Toolkit Forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
ITMill 5.0.0 beta and CustomLayout problems  XML
Forum Index -> General Help Go to Page: Previous  1, 2
Author Message
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)
 
 


dll


[Avatar]

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

[WWW]
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
Jouni Koivuviita


[Avatar]

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
[WWW]
dll


[Avatar]

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

[WWW]
 
Forum Index -> General Help Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7 © JForum Team