API addition to SplitPane
zonski at googlemail.com
Thu Jan 12 12:22:07 PST 2012
Just wondering if there's a case for making it a weighting system (not sure
how useful this would be, but worth a quick thought):
resizeWeight(Node node, float weight)
Where the weight determines what percentage of the 'new' space the node
gets (and how much it loses when shrinking) and a weight of zero is
equivalent to your 'false'.
Also, need to handle the case when the parent gets so small that all the
'resizable' nodes are already at zero. I assume in this case the nodes with
resizable=false will actually start to shrink (alternatively the parent
pane should not be allowed to go any smaller).
On Fri, Jan 13, 2012 at 6:05 AM, Kinsley Wong <kinsley.wong at oracle.com>wrote:
> The Controls team would like to add the following new api below to
> public static void resizableWithParent(Node node, Boolean value);
> public static Boolean isResizableWithParent(Node node);
> resizableWithParent(Node node, Boolean value) will set a Boolean property
> on the node. If the Boolean value is false the panel will not be resized
> when the SplitPane is resized. By default all panels in a SplitPane are
> resized when the window is resized.
More information about the openjfx-dev