Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Generated Object

Sets the divider position for the indexed divider in a SplitPane.

Attributes

index the index integer specifying which divider to set the position.

position the value of the position in a range of 0.0 to 1.0.

Content

There is no content for this node.

Usage

Used to set the divider position for the indexed divider.

Examples

Code Block
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)
        }
    }
}

});