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
<h3><strong>Generated Object</strong></h3> <p>javafx.scene.control.TableColumn</p> <h3>Attributes</h3> <p>This node takes the attributes of the javafx.scene.control.TableColumn see <a href="http://download.oracle.com/javafx/2.0/api/javafx/scene/control/TableColumn.html">javafx.scene.control.TableColumn</a>.</p> <h3>Content</h3> <p>There is no content for a TableColumn</p> <h3>Usage</h3> <p>Used to create a TableColumn for use in a TableView. A tableColumn ties a property from a data set to a specific column in a TableView and defines the column header.</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.*; import javafx.scene.control.table.*; import javafx.beans.property.StringProperty; class Person { public Person(String first, String last, String city, String state) { setFirstName(first); setLastName(last); setCity(city); setState(state); } private StringProperty firstName; public void setFirstName(String value) { firstNameProperty().set(value); } public String getFirstName() { return firstName == null? "" : firstName.get(); } public StringProperty firstNameProperty() { if (firstName == null) firstName = new StringProperty(); return firstName; } private StringProperty lastName; public void setLastName(String value) { lastNameProperty().set(value); } public String getLastName() { return lastName == null? "" : lastName.get(); } public StringProperty lastNameProperty() { if (lastName == null) lastName = new StringProperty(); return lastName; } private StringProperty city; public void setCity(String value) { cityProperty().set(value); } public String getCity() { return city == null? "" : city.get(); } public StringProperty cityProperty() { if (city == null) city = new StringProperty(); return city; } private StringProperty state; public void setState(String value) { stateProperty().set(value); } public String getState() { return state == null? "" : state.get(); } public StringProperty stateProperty() { if (state == null) state = new StringProperty(); return state; } } def data = [ new Person('Jim', 'Clarke', 'Orlando', 'Fl'), new Person('Jim', 'Connors', 'Long Island', 'NY'), new Person('Eric', 'Bruno', 'Long Island', 'NY'), ] //todo cell factory GroovyFX.start({ def sg = new SceneGraphBuilder(); sg.stage( title: "Table Example (Groovy)", width: 650, height:450, visible: true, ) { scene(fill: lightgreen ) { tableView(items: data) { tableColumn(text: "First Name", property: 'firstName') tableColumn(text: "Last Name", property: 'lastName') tableColumn(text: "City", property: 'city') tableColumn(text: "State", property: 'state') } } } }); </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