Generated Object
javafx.scene.layout.AnchorPaneHBox
Attributes
This node accepts the attributes for a javafx.scene.layout.AnchorPane HBox class. See the JavaDoc for javafx.scene.layout.AnchorPaneHBox.
Content
May contain javafx javafx Nodes. Each node may have attributes for topAnchor, bottomAnchor, leftAnchor and rightAnchor that contains a value representing the offset to the AnchorPane's edge.
Usage
Defines a container that lays out its children anchoring each node to the AnchorPane's edgeshorizontally.
Examples
| Code Block |
|---|
import groovyx.javafx.GroovyFX import javafx.scene.paint.Color; import groovyx.javafx.SceneGraphBuilder import javafx.scene.control.*; GroovyFX.start({ def sg = new SceneGraphBuilder(); sg.stage( title: "AnchorPaneHBox Example (Groovy)", width: 650, height:450, visible: true, ) { scene(fill: lightgreen ) { anchorPanehbox(spacing: 10 ) { button(text: "ONE", topAnchor: 10, bottomAnchor: 10, ) rightAnchorbutton(text: 110, leftAnchor: 10) "TWO") button(text: "TWOTHREE",) rightAnchor: 10, topAnchor: 10) button(text: "FOUR") } } } }); |