HBox
type (joe.win
)
Extends: Pane
The HBox
type is a Pane
that manages a row of
widgets. Joe classes can extend the HBox
type.
- HBox.getHgrow(node) → Priority
- HBox.getMargin(node) → Insets
- HBox.setHgrow(node, priority)
- HBox.setMargin(node, insets)
- hBox.spacing(pixels) → this
Pane Methods
- pane.child(node) → this
- pane.children() → joe.List
Region Methods
- region.height(height) → this
- region.padding(pixels) → this
- region.padding(top, right, bottom, left) → this
- region.prefHeight(height) → this
- region.prefWidth(width) → this
- region.width(width) → this
Node Methods
- node.disable([flag]) → this
- node.getProperty(keyword) → value
- node.gridColumn(index) → this
- node.gridColumnSpan(span) → this
- node.gridHalignment(hpos) → this
- node.gridHgrow([priority]) → this
- node.gridMargin(insets) → this
- node.gridRow(index) → this
- node.gridRowSpan(span) → this
- node.gridValignment(vpos) → this
- node.gridVgrow([priority]) → this
- node.hgrow([priority]) → this
- node.id(id) → this
- node.isDisabled() → joe.Boolean
- node.listenTo(keyword, listener) → this
- node.properties() → joe.Set
- node.setProperty(keyword, value) → this
- node.splitResizeWithParent(flag) → this
- node.styleClasses() → joe.List
- node.styles(style, ...) → this
- node.toString() → joe.String
- node.vgrow([priority]) → this
Properties
HBox
widgets have the following properties, in addition to
those inherited from superclasses.
Property | Type | Description |
---|---|---|
#alignment | Pos | The default alignment for children |
#spacing | Number | The spacing between children in pixels |
Static Methods
HBox.getHgrow()
HBox.getHgrow(node) → Priority
Gets how the Node
will resize itself to the height of
its parent HBox
.
HBox.getMargin()
HBox.getMargin(node) → Insets
Gets the Node
's margin in its parent HBox
.
HBox.setHgrow()
HBox.setHgrow(node, priority)
Sets how the Node
will resize itself to the height of
its parent HBox
, given a Priority
value.
HBox.setMargin()
HBox.setMargin(node, insets)
Gets the Node
's margin in its parent HBox
given an
Insets
object.
HBox Initializer
HBox() → HBox
Returns a HBox
.
Methods
hBox.spacing()
hBox.spacing(pixels) → this
Sets the vertical space in pixels between each child.