The disableProperty / disabledProperty mess

2014-01-15 Thread Randahl Fink Isaksen
I keep thinking we need to fix the disableProperty / disabledProperty mess, so I have created a Jira issue, which I hope you will all vote for: Please see the description below Randahl ——— From https://javafx-jira.kenai.com/browse/RT-35349 I know I am late to the game with this request, but p

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Randahl Fink Isaksen
Hi Martin While I agree your proposed solution would work, I still don’t understand why JavaFX should keep on supporting duplicates in listener collections. Can anyone come up with just 1 example of an application that might be depending on having two listeners on the same Observable? E.g. this

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Randahl Fink Isaksen
ple : performance. You usually > don't (try to) add a listener twice, so in most cases it doesn't make sense > to check for duplicates every time a listener is added. So we currently leave > the burden of avoiding duplicates on the developer. > > -Martin > > On

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Randahl Fink Isaksen
I respect your point of view. Thank you for a thorough response. Randahl On 22 Jan 2014, at 12:18, Martin Sladecek wrote: > On 01/22/2014 11:38 AM, Randahl Fink Isaksen wrote: >> Hi Martin >> >> Then I respectfully disagree with this design decision. In my point

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Randahl Fink Isaksen
bscriber(observable, > listener); > > subscriber.subscribe(); // registers the listener > subscriber.subscribe(); // no-op > > Cheers, > Tomas > > [1] https://gist.github.com/TomasMikula/8557825 > > On Wed, Jan 22, 2014 at 11:23 AM, Randahl Fink Isaksen > wrote:

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Randahl Fink Isaksen
> subscriber.subscribe(); // registers the listener > subscriber.subscribe(); // no-op > > Cheers, > Tomas > > [1] https://gist.github.com/TomasMikula/8557825 > > On Wed, Jan 22, 2014 at 11:23 AM, Randahl Fink Isaksen > wrote: > Hi Martin > > While I ag

Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method

2014-01-22 Thread Randahl Fink Isaksen
us about is this > > "We still wanted to listen to a property of the spaceship, but now it was no > longer part of the group." > > Why would you want to keep listening to that spaceship after removal from the > group? > > Regards, > Tomas > > &

Backwards compatibility broken: Why was Color made final

2014-03-19 Thread Randahl Fink Isaksen
After upgrading to FX8, the framework I have been developing since the early access release of JavaFX three years ago is now broken. My framework has some really cool features for working with color, which relies on our own class PaletteColor which extends javafx.scene.paint.Color. Why would y

New skinning in FX8 – where do the style classes go

2014-06-10 Thread Randahl Fink Isaksen
Hi everybody I am a bit puzzled by the changes to the Skinnable API. With FX2 I created a couple of SkinBase based skins, and back then SkinBase was a descendant of Control. So I had Control ◀︎—— SkinBase ◀︎—— MySkin Now SkinBase is just a descendant of Object, which means I need to rewrite m

Double skin addition

2014-06-11 Thread Randahl Fink Isaksen
I have noticed that if I create a skin which adds a label like this public MySkin(MyControl control) { super(control); pane.getChildren().add(label); getChildren().add(pane); } the label is actually added twice in my application. I s

Is JavaFX keyboard event handling too rigid?

2014-06-13 Thread Randahl Fink Isaksen
I have noticed that quite many developers are having trouble avoiding triggering of focus navigation occurring when a user presses the UP and DOWN arrow keys. From a number of different forum posts I have seen how people are jumping through hoops to avoid this. I myself have the challenge, that

Does JavaFX lack a public Property.getObservable() method?

2014-09-12 Thread Randahl Fink Isaksen
I have noticed the lack of a getObservable() method of the property class, and I have come across a use case which might justify such a method, so I would like to discuss whether posting a new Jira issue for this is justified. I have implemented a simple toggle button with two states, on and off

Re: Does JavaFX lack a public Property.getObservable() method?

2014-09-12 Thread Randahl Fink Isaksen
achieved by > >button.setOnAction(event -> button.setValue(!button.getValue())); > > Best, > Tomas > > On Fri, Sep 12, 2014 at 1:08 PM, Martin Sladecek > wrote: >> Hi Randahl, >> why don't you use bidirectional binding for this purpose? >> >&

Re: JavaFX (1.7.0_45) and Applet: problem with layout

2014-09-19 Thread Randahl Fink Isaksen
Could you provide a screen shot? R. On 19 Sep 2014, at 12:07, Fabrizio Giudici wrote: > On Tue, 16 Sep 2014 11:55:26 +0200, Fabrizio Giudici > wrote: > >> Hello. >> >> A customer submitted me a problem concerning a Java WebStart applet made >> with JavaFX (JDK 1.7.0_45): the thing works,