How to pause service when it's not visible in TabPane

2014-07-30 Thread Peter Penzov
Hi All, I have a TabPane with JavaFX service which displays some data. I'm interested is there a way to pause the service when I switch the tabs and the service is not visible? It 'will same me a lot of CPU resources if there is a way to implement this. BR, Peter

Re: Making a smaller ComboBox

2014-07-30 Thread Mikael Grev
So, I guess no one knows how to remove the gap between the text and the button in ComboBox? That probably means it’s a bug since padding can be removed from all sides except for between the text and the button. Cheers, Mikael Grev On 23 Jul 2014, at 16:11, Mikael Grev g...@miginfocom.com

[API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Tom Schindl
Hi, I'd like you to review the API proposed to make TabPane Tabs draggable. The proposed public API only allows to put the TabPane in DnD mode: public boolean isDndEnabled() public void setDndEnabled(boolean dndEnabled) public BooleanProperty dndEnabledProperty() Tom

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Tom Schindl
No - it allows also to drag the tab to another TabPane as well and in future outside the window to detach it. Tom On 30.07.14 10:07, Eric Le Ponner wrote: Hi Tom, I wonder if we should really use the wording « dnd ». The feature is really to enable the user to re-order the tabs inside a

hg: openjfx/8u-dev/rt: [TOYS] disable LocalDate and LocalTime spinners in HelloSpinner

2014-07-30 Thread jonathan . giles
Changeset: fd925446754b Author:jgiles Date: 2014-07-30 20:17 +1200 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/fd925446754b [TOYS] disable LocalDate and LocalTime spinners in HelloSpinner ! apps/toys/Hello/src/main/java/hello/HelloSpinner.java

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Mikael Grev
That is decidedly awesome! Is there some other way of deciding whether to to do one or the other? I mean one might want to reorder but not drag to another pane. Cheers, Mikael On 30 Jul 2014, at 10:09, Tom Schindl tom.schi...@bestsolution.at wrote: No - it allows also to drag the tab to

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Eric Le Ponner
Interesting. Then may be ‘drag’ wording would more consistent with remaining APIs. ‘dnd’ is currently used nowhere else. Eric Le 30 juil. 2014 à 10:09, Tom Schindl tom.schi...@bestsolution.at a écrit : No - it allows also to drag the tab to another TabPane as well and in future outside the

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Tom Schindl
Hi, The proposed API only allows to turn on/off dragging all together. For your usecase I'd envision a future API which would allow one to control the aspects you are asking for like. The API i currently have in mind is but I have not yet explored: // Would allow to cancel dragging of certain

hg: openjfx/8u-dev/rt: RT-37824 [Charts] Series: NPE when adding data items multiple times

2014-07-30 Thread martin . sladecek
Changeset: d515c3182f1c Author:Martin Sladecek martin.slade...@oracle.com Date: 2014-07-30 10:51 +0200 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/d515c3182f1c RT-37824 [Charts] Series: NPE when adding data items multiple times Reviewed by: snorthov, jgiles !

Re: How to pause service when it's not visible in TabPane

2014-07-30 Thread Tomas Mikula
What about tab.selectedProperty().addListener((obs, old, selected) - { if(selected) { service.restart(); } else { service.cancel(); } }); ? Best, Tomas On Wed, Jul 30, 2014 at 9:07 AM, Peter Penzov peter.pen...@gmail.com wrote: Hi All,

hg: openjfx/8u-dev/rt: Spinner CSS for Caspian - partial fix for RT-38028

2014-07-30 Thread mo . chicharro
Changeset: 562928b80d15 Author:mchicharro Date: 2014-07-30 11:30 +0100 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/562928b80d15 Spinner CSS for Caspian - partial fix for RT-38028 ! modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/caspian/caspian.css

hg: openjfx/8u-dev/rt: Spinner CSS for Caspian - removed pixel based padding - partial fix for RT-38028

2014-07-30 Thread mo . chicharro
Changeset: 59b63ebbd0be Author:mchicharro Date: 2014-07-30 11:43 +0100 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/59b63ebbd0be Spinner CSS for Caspian - removed pixel based padding - partial fix for RT-38028 !

hg: openjfx/8u-dev/rt: Added inner shadow grad for Editable ComboBox and DatePicker textfields - partial fix for RT-38028

2014-07-30 Thread mo . chicharro
Changeset: 78bac6b0c37e Author:mchicharro Date: 2014-07-30 12:02 +0100 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/78bac6b0c37e Added inner shadow grad for Editable ComboBox and DatePicker textfields - partial fix for RT-38028 !

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Mikael Grev
Wouldn’t you still need to specify the “kind” of drag you are moderating? With just a boolean on/off now, a later API where one needs to say what kinds of drags (reorder, between tabpanes and drag out) would be hard to create. One don’t want an API with a master switch AND one for each kind of

Re: Skin layoutChildren: when to get bounds of child nodes?

2014-07-30 Thread Werner Lehmann
Richard, since I need to get x and width of child1 (the one inside the hbox) I have to use boundsInParent. According to the docs layoutBounds.x/y are always zero for resizable nodes so it does not work here. As to the question whether the parent might be size 0: the HBox is indeed size 0

Re: How to pause service when it's not visible in TabPane

2014-07-30 Thread Peter Penzov
Hi Tomas, I'm not 100% sure but I tested the proposed code and it seems that it's working. One more question. I have too many Java Classes into which I need to implement this. Is there a quick and easy way to get the Tab Object into the service class where I need to implement this? BR, Peter

hg: openjfx/8u-dev/rt: Spinner CSS tweaks for Modena - partial fix for RT-38028

2014-07-30 Thread mo . chicharro
Changeset: ca0e03f527ba Author:mchicharro Date: 2014-07-30 14:59 +0100 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/ca0e03f527ba Spinner CSS tweaks for Modena - partial fix for RT-38028 ! .idea/copyright/profiles_settings.xml ! .idea/vcs.xml !

Re: Skin layoutChildren: when to get bounds of child nodes?

2014-07-30 Thread Werner Lehmann
Martin, thanks a lot for this elaborate explanation :) Here's an image of what I am talking about. http://postimg.org/image/t9a6esc71/ child1 is one of the labels in a hbox, e.g. Query or Result child2 is the blueish region. It needs to be positioned under one of those labels. I am doing

Re: [8u40] Review request: RT-38074: [macosx] Separate QTKit platform code from core media code so it can be removed for MAS

2014-07-30 Thread David DeHaven
JIRA Issue: https://javafx-jira.kenai.com/browse/RT-38074 Latest webrev: http://cr.openjdk.java.net/~ddehaven/RT-38074/rt.2/ Removed new makefile (eyesore), cleaned up/enhanced existing Makefile, fixed a compiler warning. Last iteration hopefully, I let it bake for 12 hours and haven't had

Re: [API REVIEW REQUEST] RT-19659 - [TabPane] Support for draggable tabs

2014-07-30 Thread Stephen F Northover
Thanks Tom, We'll take a look at the patch in the JIRA: https://javafx-jira.kenai.com/browse/RT-19659 Steve On 2014-07-30, 3:35 AM, Tom Schindl wrote: Hi, I'd like you to review the API proposed to make TabPane Tabs draggable. The proposed public API only allows to put the TabPane in DnD

[8u40] Review reequest: RT-38012 Date/time converters use unwanted format patterns

2014-07-30 Thread Leif Samuelsson
Hi Jonathan, Please review this fix which adds two new constructors to each of three converter classes. https://javafx-jira.kenai.com/browse/RT-38012 http://cr.openjdk.java.net/~leifs/rt38012/webrev.01/ Thanks, Leif

Re: openjfx-8u20-b23: Stuck in monocle build for armv7hf

2014-07-30 Thread Lisa Selle
How did you install your arm toolchain? https://wiki.openjdk.java.net/display/OpenJFX/Cross+Building+for+Arm+Hard+Float If it's installed according to these instructions pkg-config should get picked up from the correct place and there should be no need to set any environment variables.

hg: openjfx/8u-dev/rt: [Accessibility] implementing expand and collapse action for treeitem and tabletreeitem on Mac, use Control+Option+\

2014-07-30 Thread felipe . heidrich
Changeset: cf703edd10f2 Author:Felipe Heidrich felipe.heidr...@oracle.com Date: 2014-07-30 14:48 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/cf703edd10f2 [Accessibility] implementing expand and collapse action for treeitem and tabletreeitem on Mac, use

Re: How to pause service when it's not visible in TabPane

2014-07-30 Thread Tomas Mikula
I'm not sure I understand: you have many service subclasses, each of them associated with a tab? If so, they can take the tab as an argument to the constructor: abstract class TabService extends Service { protected MyAbstractService(Tab tab) {

Re: How to pause service when it's not visible in TabPane

2014-07-30 Thread Tomas Mikula
On Thu, Jul 31, 2014 at 12:51 AM, Tomas Mikula tomas.mik...@gmail.com wrote: I'm not sure I understand: you have many service subclasses, each of them associated with a tab? If so, they can take the tab as an argument to the constructor: abstract class TabService extends Service {

Re: openjfx-8u20-b23: Stuck in monocle build for armv7hf

2014-07-30 Thread Prasant J
On Wed, Jul 30, 2014 at 11:16 PM, Lisa Selle lisa.se...@oracle.com wrote: How did you install your arm toolchain? I'm using yocto (poky distribution) for my iMX6. I can build my own SDK (toolchain). I'm using that. I may have made some mistake is setting up the toolchain (I will look into that