12-31-2008 03:04 AM
I find I am a little muddy on how some elements of the API work together. For example, are the getPreferredWidth() & getPreferredHeight() merely "getters" which are primarly used to encapsulate any required calculations to make any setExtent() call in layout() cleaner???
Also, what exactly is the difference between layout() and sublayout() ? Is it that the sublayout() is used to layout contained fields, where layout() is used to layout the container?
Now, I notice that layout() is final in Manager, and thus cannot be overriden. So, if I want to fix the width of a HFM, I cannot override that method and setExtent( MAX_WIDTH, height).
Given that, can I fix the width of a HFM? How?
I've tried just returning the MAX_WIDTH in getPreferredWidth(), but this does not have the desired effect. So, I'm guessing that layout() does not call it and use the width I set. When (if at all) does the framework call/use getPrefferedWidth()??
01-05-2009 03:05 PM
Please see the following thread.
01-05-2009 04:40 PM
Unfortunately, that thread, nor any of the API docs answer my question, which is why I have posed it here.
I'd really like to have a clearer understanding of the framework, and so have asked the above.