Skip to content

Commit

Permalink
Merge pull request groovyfx-project#61 from rich-coe/issue-60
Browse files Browse the repository at this point in the history
issue-60  add missing class Person and supporting imports
  • Loading branch information
aalmiray authored Sep 19, 2018
2 parents 2e34589 + 5f8f3dd commit 21af4e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/demo/groovy/TableView2Demo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,27 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import groovy.transform.Canonical
import groovyx.javafx.beans.FXBindable

import javafx.collections.FXCollections

import java.text.SimpleDateFormat

import static groovyx.javafx.GroovyFX.start

enum Gender {
MALE, FEMALE
}

@Canonical
class Person {
@FXBindable String name
@FXBindable int age
@FXBindable Gender gender
@FXBindable Date dob
}

people = FXCollections.observableList([])

def random = new Random()
Expand Down

0 comments on commit 21af4e8

Please sign in to comment.