Versions Compared

Key

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

Generated Object

javafx.scene.control.TitledPane

Attributes

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

Content

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

The content may be a "title", "content" node or a JavaFX node. If the content is a JavaFX node, then the TitledPane's content attribute will be set to this node.

Usage

Used to create a Titled Pane

Examples

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

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

    scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
        vbox ( spacing: 10) {
            titledPane(id: "t1", ) {
                title() {
                    label(text: "Label 1")
                }
                content() {
                    label(text: "This is Label 1\n\nAnd there were a few empty lines just there!")
                }
            }
            titledPane(id: "t2") {
                title() {
                    label(text: "Label 2")
                }
                content() {
                    label(text: "This is Label 2\n\nAnd there were a few empty lines just there!")
                }
            }
            titledPane(id: "t3") {
                title() {
                    label(text: "Label 3")
                }
                // this is content
                label(text: "This is Label 3\n\nAnd there were a few empty lines just there!")
            }
        }
    }
}

});