Table Input

Rony G. Flatscher Rony.Flatscher at wu.ac.at
Thu Jun 21 09:31:26 UTC 2018


José & Daniel,

thank you very much for the information and links!

---rony


On 20.06.2018 19:45, José Pereda wrote:
> As Daniel points out, the TableView2 control is a Gluon contribution that has been merged recently
> to ControlsFX, but it hasn't been released yet. Actually there is a pending PR to rename the new
> control to FixableTableView.
>
> Regarding commit on focus, it has been implemented in two new table cell factories, for TextField
> and ComboBox cells [2].
>
> You can use the snapshot to test it, and of course, you can clone the repository, there are two
> samples [1] available.
>
> Jose
>
>
> [1]
> https://bitbucket.org/controlsfx/controlsfx/src/default/controlsfx-samples/src/main/java/org/controlsfx/samples/tableview2
> [2] https://bitbucket.org/controlsfx/controlsfx/src/default/controlsfx/src/main/java/org/controlsfx/control/tableview2/cell/TextField2TableCell.java
>
>
> On Wed, Jun 20, 2018 at 7:06 PM, Daniel Peintner <daniel.peintner at gmail.com
> <mailto:daniel.peintner at gmail.com>> wrote:
>
>     Hi,
>
>     > I believe the last time I looked at the TableView2 contribution at
>     > > ControlsFX (which can be used as a TableView replacement), commit on
>     > focus
>     > > lost was implemented/supported.
>     > Do you have a link?
>     >
>
>     The PR has been merged but the contribution is not yet available as
>     ControlsFX release.
>     Note: I think the credits go to Jose Pereda (Gluon?)
>
>     The easist way to test it is using jpro demo [1] where you can find a
>     TableView2 section.
>
>     Having said that, I don't actually know how it is implemented. I just
>     noticed commit on focus lost support while playing with this demo.
>
>     -- Daniel
>
>     [1] https://demos.jpro.one/controlsfx.html <https://demos.jpro.one/controlsfx.html>
>
>
>
>     > <http://fxexperience.com/controlsfx/ <http://fxexperience.com/controlsfx/>> seems to not
>     have it.
>     >
>     > ---rony
>     >
>     > > Jonathan Giles <jonathan at jonathangiles.net <mailto:jonathan at jonathangiles.net>> schrieb am
>     Mi., 20. Juni
>     > 2018,
>     > > 10:28:
>     > >
>     > >> Yup,
>     > >>
>     > >> A great regret. I wish it were supported, but it isn't due to historical
>     > >> legacy. There are some small ways you can make some progress, e.g. add
>     > >> focus listeners on the editor node, but they are half solutions at best.
>     > >>
>     > >> -- Jonathan
>     > >> (Tapped on a touch device)
>     > >>
>     > >> On Wed, 20 Jun 2018, 10:25 AM , <fastegal at swingempire.de
>     <mailto:fastegal at swingempire.de>> wrote:
>     > >>
>     > >>> Zitat von Tom Eugelink <tbee at tbee.org <mailto:tbee at tbee.org>>:
>     > >>>
>     > >>>> This is a well known and already deeply discussed issue. I'm still
>     > >>>> not sure where we are with it, but Jonathan knows I believe.
>     > >>>>
>     > >>>>
>     > >>> https://bugs.openjdk.java.net/browse/JDK-8089514
>     <https://bugs.openjdk.java.net/browse/JDK-8089514>
>     > >>>
>     > >>> tbd_major ... since nearly 7 years :(( actually, it took 4 years to
>     > >>> get the necessity accepted, then another 2 years playing with
>     > >>> incomplete suggested fixes and then ...
>     > >>>
>     > >>> It's a complex problem, requires
>     > >>>
>     > >>> a) additional commit/cancel api on the virtual controls to allow
>     > >>> collaborators to cleanly terminate ongoing edits - this part has still
>     > >>> been debated
>     > >>> b) a major cleanup of cell implementations - this part was under way
>     > >>> (and evolving into the good direction) until Jonathan left
>     > >>>
>     > >>>
>     > >>> CU, Jeanette
>     > >>>
>     > >>>> On 19-6-2018 20:53, Ty Young wrote:
>     > >>>>> On 06/19/2018 10:51 AM, omniprof at gmail.com <mailto:omniprof at gmail.com> wrote:
>     > >>>>>
>     > >>>>>> A minor issue in the Table component existed in previous versions of
>     > >>> JavaFX
>     > >>>>>> when editing in a cell was turned on. Only if the Return key was
>     > >>>>>> pressed was
>     > >>>>>> the data entered into the backing bean. Leaving the cell with Tab or
>     > >> by
>     > >>>>>> mouse did not register the change. I thought just when a cell looses
>     > >>> focus
>     > >>>>>> it should trigger updating the bean. I have not looked at the recent
>     > >>> builds
>     > >>>>>> but I thought I'd ask if it has come up on anyone's radar. I
>     > >>>>>> noticed it when
>     > >>>>>> I moved from teaching Swing to FX.
>     > >>>>>>
>     > >>>>>>
>     > >>>>>> Ken Fogel
>     > >>>>>>
>     > >>>>>>
>     > >>>>>>
>     > >>>>> IIRC, this isn't specific to Table. A spinner with editing enabled
>     > >>>>> also does this and it breaks events(onKeyTyped does nothing).
>     >
>     >
>
>
>
>
> -- 
>



More information about the openjfx-dev mailing list