I'm having some trouble figuring out the best way to layout
UIObjects. I'll provide a couple examples of some things I'm trying
to do.
Say I have a Custom Component whose top-level container is a Canvas.
The Canvas contains an HBox that should always fill the width of the
Canvas, even if the user resizes it. If I could give the Canvas an
id attribute, say "myCanvas", and I set the HBox's width
to "{myCanvas.width}", would this dynamically recalculate the width
after the user resizes the Canvas, or would it only calculate the
width once when the HBox is initially drawn? If dynamic resizing is
possible, how can I achieve this if I cannot give the Canvas an id
attribute since it is the top-level container?
Say I have three labels in this HBox (whose width changes
dynamically), and I want the first label to always be aligned left,
the second aligned center, and the third aligned right. What's the
easiest way to do this?
Thanks,
Josh