Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p><span style="color: rgb(0,51,102);"><strong>Generated Object</strong></span></p> <p>javafx.scene.layout.GridPane</p> <h3>Attributes</h3> <p><span style="color: rgb(0,0,0);">This node accepts the attributes for a javafx.scene.layout.GridPane class. See the JavaDoc for </span><a href="http://download.oracle.com/javafx/2.0/api/javafx/scene/layout/GridPane.html">javafx.scene.layout.GridPane</a><span style="color: rgb(0,51,102);">.</span></p> <h3>Content</h3> <p>May contain javafx Nodes. Each node may have a grid constraint. Grid Pane may also contain row and column nodes.</p> <h3>Usage</h3> <p>Defines a container that lays out its children within a flexible grid of rows and columns.</p> <h3>Examples</h3> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> 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: "GridPane Example (Groovy)", width: 650, height:450, visible: true, ) { scene(fill: lightgreen ) { gridPane(hgap: 4, vgap: 4, padding: [18,18,18,18], alignment: "center", gridLinesVisible: true) { label (text: "Name: ") { constraint(row: 0, column: 0, halignment: "right") } label (text: "Jim Clarke") { constraint(row: 0, column:1, columnSpan: 5,halignment: "left") } label (text: "Address:") { constraint(row: 1, column:0, halignment: "right") } label (text: "123 Main St") { constraint(row: 1,column:1, columnSpan: 5,halignment: "left") } label (text: "City:") { constraint(row: 2,column:0, halignment: "right") } label (text: "Orlando") { constraint(row: 2,column:1, halignment: "left") } label (text: "State:") { constraint(row: 2,column:2, halignment: "right") } label (text: "FL") { constraint(row: 2,column:3, halignment: "left", hgrow: "never") } label (text: "Zipcode:") { constraint(row: 2,column:4, halignment: "right") } label (text: "32817") { constraint(row: 2,column:5, halignment: "left", hgrow: "never") } button(text: "Register") { constraint(row: 3,0,columnSpan: 6, halignment: "center") } row(index: 4) { label (text: "one") label (text: "two") label (text: "three") } column(index: 6) { label (text: "one") label (text: "two") label (text: "three") } } } }); </pre></td></tr></table>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced