Ok, so i've to use a workaround.
Would be nice in the future especially for TableView (ObservableLists).

Right now this is my solution for dynamically adding columns to a tableview.
But I don't know wich type of Variable the newValue in set() have to be. 
Any suggestions?

tableColumns.addAll(Stream.of(GRT_MEASUREMENTS.fields())
        .map(f -> {
            TableColumn<R, Object> column = new TableColumn<>(f.getName());
            column.setCellValueFactory(d -> new 
SimpleObjectProperty<>(d.getValue().get(f)));
            column.setCellFactory(columnCallback);
            column.setOnEditCommit(
                    t -> {
                        Field<R> columnField = (Field<R>) f;
                        Object newValue = t.getNewValue();

                        R a = records.get(0).get(columnField);
                        Class sdf = a.getClass();

                        
records.get(t.getTablePosition().getRow()).set(columnField, newValue); // Type 
of newValue?
                        this.refresh();
                    }
            );
            return column;
        })
        .collect(toList()));




Am Samstag, 29. April 2017 10:35:02 UTC+2 schrieb Julian Decker:
>
> Dear JOOQ Group,
>
> is there a solution to simply change the pojo variable types from e.x. 
> "String" to a JavaFX compatible "SimpleStringProperty" in JOOQ Generator 
> generated POJO classes?
> Thank you very much for your answer.
>
> Regrads,
> Julian
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to