24 */
25
26 package javafx.scene.layout;
27
28 import java.util.ArrayList;
29 import java.util.Collections;
30 import java.util.List;
31 import javafx.beans.property.BooleanProperty;
32 import javafx.beans.property.DoubleProperty;
33 import javafx.beans.property.ObjectProperty;
34 import javafx.css.CssMetaData;
35 import javafx.css.StyleableBooleanProperty;
36 import javafx.css.StyleableDoubleProperty;
37 import javafx.css.StyleableObjectProperty;
38 import javafx.css.StyleableProperty;
39 import javafx.geometry.Insets;
40 import javafx.geometry.Orientation;
41 import javafx.geometry.Pos;
42 import javafx.geometry.VPos;
43 import javafx.scene.Node;
44 import com.sun.javafx.css.converters.BooleanConverter;
45 import com.sun.javafx.css.converters.EnumConverter;
46 import com.sun.javafx.css.converters.SizeConverter;
47 import java.util.Iterator;
48 import java.util.function.Function;
49 import javafx.css.Styleable;
50 import javafx.geometry.HPos;
51 import javafx.util.Callback;
52
53
54
55 /**
56 * HBox lays out its children in a single horizontal row.
57 * If the hbox has a border and/or padding set, then the contents will be layed
58 * out within those insets.
59 * <p>
60 * HBox example:
61 * <pre><code>
62 * HBox hbox = new HBox(8); // spacing = 8
63 * hbox.getChildren().addAll(new Label("Name:), new TextBox());
64 * </code></pre>
65 *
66 * HBox will resize children (if resizable) to their preferred widths and uses its
67 * fillHeight property to determine whether to resize their heights to
68 * fill its own height or keep their heights to their preferred (fillHeight defaults to true).
|
24 */
25
26 package javafx.scene.layout;
27
28 import java.util.ArrayList;
29 import java.util.Collections;
30 import java.util.List;
31 import javafx.beans.property.BooleanProperty;
32 import javafx.beans.property.DoubleProperty;
33 import javafx.beans.property.ObjectProperty;
34 import javafx.css.CssMetaData;
35 import javafx.css.StyleableBooleanProperty;
36 import javafx.css.StyleableDoubleProperty;
37 import javafx.css.StyleableObjectProperty;
38 import javafx.css.StyleableProperty;
39 import javafx.geometry.Insets;
40 import javafx.geometry.Orientation;
41 import javafx.geometry.Pos;
42 import javafx.geometry.VPos;
43 import javafx.scene.Node;
44 import javafx.css.converter.BooleanConverter;
45 import javafx.css.converter.EnumConverter;
46 import javafx.css.converter.SizeConverter;
47 import javafx.css.Styleable;
48 import javafx.geometry.HPos;
49 import javafx.util.Callback;
50
51
52
53 /**
54 * HBox lays out its children in a single horizontal row.
55 * If the hbox has a border and/or padding set, then the contents will be layed
56 * out within those insets.
57 * <p>
58 * HBox example:
59 * <pre><code>
60 * HBox hbox = new HBox(8); // spacing = 8
61 * hbox.getChildren().addAll(new Label("Name:), new TextBox());
62 * </code></pre>
63 *
64 * HBox will resize children (if resizable) to their preferred widths and uses its
65 * fillHeight property to determine whether to resize their heights to
66 * fill its own height or keep their heights to their preferred (fillHeight defaults to true).
|