Generated Object

javafx.scene.control.SplitPane

Attributes

This node takes the attributes of the javafx.scene.control.SplitPane see javafx.scene.control.SplitPane.

Content

If the content is a tooltip, the theSplitPane's tooltip will be set to the Tooltip.

If the content is a JavaFX node, then it will be added to the SplitPane's items. 

If the content is a "dividerPosition", then the values of the dividierPosition will be used to set the SplitPane's divider positions. see SceneGraphBuilder.splitPane.dividerPosition

Usage

Used to create a SplitPane

Examples

GroovyFX.start({
def sg = new SceneGraphBuilder(it);

sg.stage(
    title: "SplitPane Example",
    x: 100, y: 100, width: 400, height:400,
    visible: true,
    style: "decorated",
) {

    scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
        splitPane ( orientation: "horizontal") {
            label(text: "This is Label 1\n\nAnd there were a few empty lines just there!") // left or top
            label(text: "This is Label 2\n\nAnd there were a few empty lines just there!") // right or bottom
            label(text: "This is Label 3\n\nAnd there were a few empty lines just there!")
            dividerPosition(index: 0, position: 0.25)
            dividerPosition(index: 1, position: 0.50)
            dividerPosition(index: 2, position: 1.0)
        }
    }
}

});